Home
%3CLINGO-SUB%20id%3D%22lingo-sub-1170564%22%20slang%3D%22en-US%22%3EAzure%20CLI%20Tip%20-%20Use%20AI%20to%20find%20az%20commands%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1170564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EThe%20Azure%20command-line%20interface%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Fwhat-is-azure-cli%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20CLI%3C%2FA%3E)%20is%20a%20great%20way%20to%20create%20and%20manage%20Azure%20resources.%20Azure%20CLI%20is%20available%20on%20Windows%2C%20macOS%2C%20and%20Linux%2C%20and%20it%20supports%20managing%20resources%20across%20Azure%20services%20and%20gets%20you%20working%20quickly%20with%20Azure%2C%20with%20an%20emphasis%20on%20automation.%20If%20you%20did%20use%20the%20Azure%20CLI%2C%20you%20might%20find%20this%20tip%20very%20handy.%20I%20am%20talking%20about%20the%20az%20find%20command.%20The%20az%20find%20command%20provides%20you%20with%20example%20commands%20based%20on%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%3FWT.mc_id%3Ditopstalk-blog-thmaure%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAzure%20documentation%3C%2FA%3E%20and%20usage%20patterns%20of%20the%20Azure%20CLI%20and%20Azure%20Resource%20Manager%20users.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20example%2C%20if%20you%20want%20to%20see%20the%20most%20popular%20commands%20within%20an%20Azure%20CLI%20group.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eaz%20find%20%22az%20container%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Azure%20Find%20Azure%20CLI%20Group.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170986i6A53F193507FB1B0%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Azure%20Find%20Azure%20CLI%20Group.jpg%22%20alt%3D%22Azure%20Find%20Azure%20CLI%20Group%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAzure%20Find%20Azure%20CLI%20Group%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BYou%20can%20also%20use%20az%20find%20to%20find%20the%20most%20popular%20parameters%20and%20subcommands.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eaz%20find%20%22az%20monitor%20activity-log%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Search%20for%20popular%20parameters.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170987iB1E977979424AAC4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Search%20for%20popular%20parameters.jpg%22%20alt%3D%22Search%20for%20popular%20parameters%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ESearch%20for%20popular%20parameters%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3BAnd%20the%20best%2C%20you%20can%20also%20use%20search%20terms%2C%20and%20Azure%20CLI%20will%20help%20you%20find%20the%20best%20commands.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eaz%20find%20%22delete%20azure%20backup%20vault%22%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Azure%20Find%20Azure%20CLI%20Search%20Term.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170988i60D88330B87AFB4B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Azure%20Find%20Azure%20CLI%20Search%20Term.jpg%22%20alt%3D%22Azure%20Find%20Azure%20CLI%20Search%20Term%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EAzure%20Find%20Azure%20CLI%20Search%20Term%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20see%20that%20I%20was%20looking%20for%20how%20I%20can%20delete%20an%20Azure%20backup%20or%20recovery%20service%20vault.%20Since%20the%20Azure%20CLI%20find%20command%20learn%20form%20documentation%20and%20usage%2C%20I%20not%20only%20get%20the%20example%20to%20delete%20an%20existing%20Recovery%20service%20vault%2C%20it%20also%20lets%20me%20know%20of%20other%20related%20examples%20that%20might%20come%20in%20handy.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20want%20to%20learn%20more%20about%20the%20az%20find%20command%2C%20check%20out%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fcli%2Fazure%2Freference-index%3FWT.mc_id%3Ditopstalk-blog-thmaure%23az-find%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Docs%3C%2FA%3E.%20And%20if%20you%20want%20to%20install%20the%20Azure%20CLI%2C%20check%20out%20the%20following%20%3CA%20href%3D%22https%3A%2F%2Fwww.thomasmaurer.ch%2F2019%2F07%2Fhow-to-install-azure-cli-on-windows-one-liner%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eblog%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDid%20you%20know%20about%20the%20az%20find%20command%20and%20that%20it%20uses%20AI%20and%20Machine%20Learning%20to%20give%20you%20recommendations%20based%20on%20Microsoft%20Docs%20and%20usage%3F%20Or%20if%20you%20have%20a%20question%2C%20feel%20free%20to%20leave%20a%20comment%20below.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1170564%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Azure%20CLI.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F170990i4AB1FF244BCF336E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Azure%20CLI.jpg%22%20alt%3D%22Azure%20CLI.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Azure%20CLI%20is%20great%20to%20manage%20Azure%20resources%20from%20the%20command-line.%20It%20also%20has%20some%20secret%20commands%20to%20find%20examples%20from%20Microsoft%20Docs%20using%20AI.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1170564%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EThomas%20Maurer%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

The Azure command-line interface (Azure CLI) is a great way to create and manage Azure resources. Azure CLI is available on Windows, macOS, and Linux, and it supports managing resources across Azure services and gets you working quickly with Azure, with an emphasis on automation. If you did use the Azure CLI, you might find this tip very handy. I am talking about the az find command. The az find command provides you with example commands based on Azure documentation and usage patterns of the Azure CLI and Azure Resource Manager users.

 

For example, if you want to see the most popular commands within an Azure CLI group.

 

 

 

az find "az container"

 

 

 

Azure Find Azure CLI GroupAzure Find Azure CLI Group

 You can also use az find to find the most popular parameters and subcommands.

 

 

az find "az monitor activity-log"

 

 

Search for popular parametersSearch for popular parameters

 And the best, you can also use search terms, and Azure CLI will help you find the best commands.

 

 

az find "delete azure backup vault"

 

 

Azure Find Azure CLI Search TermAzure Find Azure CLI Search Term

You can see that I was looking for how I can delete an Azure backup or recovery service vault. Since the Azure CLI find command learn form documentation and usage, I not only get the example to delete an existing Recovery service vault, it also lets me know of other related examples that might come in handy. 

 

If you want to learn more about the az find command, check out the Microsoft Docs. And if you want to install the Azure CLI, check out the following blog

Did you know about the az find command and that it uses AI and Machine Learning to give you recommendations based on Microsoft Docs and usage? Or if you have a question, feel free to leave a comment below.