When you work with the Azure CLI reference commands, there are arguments that are available for most
commands. These arguments are called "global parameters," as they're common to almost all Azure CLI
reference commands.
--help global parameter
To get information about a reference group or command, use the --help global parameter. The
--help parameter displays Azure CLI reference information in your console including available
subgroup and parameter lists.
Azure CLI
az group create --name myResourceGroup --location eastus --help
The following console output shown here has fields omitted for brevity:
Output
Command
az group create : Create a new resource group.
Arguments
--location -l [Required] : Location. Values from: `az account list-locations`.
You can configure the default location using `az
configure --defaults location=<location>`.
--name --resource-group -g -n [Required] : Name of the new resource group.
--managed-by : The ID of the resource that manages this resource
group.
--tags : Space-separated tags: key[=value] [key[=value] ...].
Use "" to clear existing tags.
Global Arguments
--debug : Increase logging verbosity to show all debug logs.
--help -h : Show this help message and exit.
--only-show-errors : Only show errors, suppressing warnings.
Examples
Create a new resource group in the West US region.
az group create -l westus -n MyResourceGroup
--verbose global parameter
Learn more in-depth details about logging by adding the --verbose global parameter to your
reference command. Verbose output is helpful when trying to understand why certain commands take
longer than others to execute.
Azure CLI
az group create --name myResourceGroup --location eastus --verbose
The following console output shown here has fields omitted for brevity, but note the additional
information on the execution time.
Output
{...}
Command ran in 1.413 seconds (init: 0.487, invoke: 0.926)
--debug global parameter
If the extra details from the --verbose parameter aren't enough and you wish to view the entire
log, use the --debug global parameter. Also provide the output generated with --debug when
submitting a bug report.
Azure CLI
az group create --name myrResourceGroup --location eastus --debug
The following console output shown here has fields omitted for brevity:
**This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus**
Any comments or concerns? You can use the 'feedback' command! We would greatly appreciate it.
A new Recommender is added which can make the completion ability more intelligent and provide the scenario completion!
If you want to disable this feature, you can use 'az config set interactive.enable_recommender=False' to disable it.
A command preload mechanism was added to prevent lagging and command run errors.
You can skip preloading in a single pass by CTRL+C or turn it off by setting 'az config set interactive.enable_preloading=False'
Loading command table... Expected time around 1 minute.
Azure CLI
az interactive --only-show-errors
In this output, the warning of "This command is in preview..." hasn't been returned.
Output
Any comments or concerns? You can use the 'feedback' command! We would greatly appreciate it.
A new Recommender is added which can make the completion ability more intelligent and provide the scenario completion!
If you want to disable this feature, you can use 'az config set interactive.enable_recommender=False' to disable it.
A command preload mechanism was added to prevent lagging and command run errors.
You can skip preloading in a single pass by CTRL+C or turn it off by setting 'az config set interactive.enable_preloading=False'
Loading command table... Expected time around 1 minute.
--subscription global parameter
You can use the --subscription global parameter to set a specific subscription for a command. The
following example changes the active subscription using the subscription ID:
Azure CLI
az account set --subscription"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
--output global parameter
To show the output of a command in a specific format, specify the --output global parameter. In
this example, the output is shown as a table:
ملاحظة
The accepted values for output are: json, jsonc, none, table, tsv, yaml, and yamlc. The default output value is json.
Azure CLI
az vm list --resource-group myResourceGroup --output table
Output console:
Output
Name ResourceGroup Location
------ --------------- ----------
myVm myResourceGroup eastus
There are times the output console might display extensive amounts of information that you need to
filter through. To do so, use the --query global parameter to execute a JMESPath query
on the results of commands. JMESPath is a query language for JSON, which gives you the ability to
select and modify data from Azure CLI output.
This example returns the SSH public keys authorized to connect to the virtual machine by adding --query:
Azure CLI
az vm show --resource-group myResourceGroup --name myVm --query"osProfile.linuxConfigurat
ion.ssh.publicKeys"
Azure HPC هو قدرة سحابية مُصممة لغرض مُعين لحمل عمل الذكاء الاصطناعي وHPC، باستخدام مُعالجات رائدة والربط بين InfiniBand من فئة HPC، لتقديم أفضل أداء للتطبيق وقابلية التوسع والقيمة. تُمكن Azure HPC المستخدمين من إطلاق العنان للابتكار والإنتاجية ومرونة الأعمال التجارية، من خلال مجموعة متاحة بكثرة من تقنيات الذكاء الاصطناعي وHPC التي يمكن تخصيصها ديناميكيًا مع تغير احتياجاتك التجارية والتقنية. مسار التعلم هذا عبارة عن سلسلة من الوحدات التي تساعدك على البدء في Azure HPC - يمكنك اختيار الموضوعات التي تُهمك أو ا