Find commands
Azure CLI commands are organized as command groups. Each group represents an area
of an Azure service. There are two options to find command groups:
Use the az find command. For example, to search for command names containing vm,
use the following command:
Azure CLI
Copy
Open Cloud Shell
az find vm
Use the --help argument to get a complete list of subgroups within a reference
group. This example returns all the subgroups for virtual machines:
Azure CLI
Copy
Open Cloud Shell
az vm --help
Here is example output with lines omitted for brevity:
Output
Copy
Subgroups:
application : Manage applications for VM.
availability-set : Group resources into availability sets.
boot-diagnostics : Troubleshoot the startup of an Azure Virtual Machine.
...
Here's another example that finds the Azure CLI commands for grouping virtual
machines into availability sets, a subgroup of az vm:
Azure CLI
Copy
Open Cloud Shell
az vm availability-set --help
Also use --help to get parameter lists and command examples for a reference
command.
Azure CLI
Copy
Open Cloud Shell
az vm create --help
Here is example output with lines omitted for brevity:
Output
Copy
Arguments
--name [Required] : Name of the virtual machine.
...
Authentication Arguments
--admin-password : Password for the VM if authentication type is 'Password'.
--admin-username : Username for the VM...
...
Managed Service Identity Arguments
...
Examples
Create a VM from a custom managed image.
az vm create -g MyResourceGroup -n MyVm --image MyImage
...
Use the A to Z reference index that lists all command groups alphabetically.