שתף באמצעות


az cli-translator arm

Note

This reference is part of the cli-translator extension for the Azure CLI (version 2.13.0 or higher). The extension will automatically install the first time you run an az cli-translator arm command. Learn more about extensions.

Command group 'cli-translator' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Translate ARM template to CLI scripts(Currently only support Compute, Network and Storage).

Commands

Name Description Type Status
az cli-translator arm translate

Translate ARM template to CLI scripts(Currently only support Compute, Network and Storage).

Extension Experimental

az cli-translator arm translate

Experimental

Command group 'cli-translator' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Translate ARM template to CLI scripts(Currently only support Compute, Network and Storage).

az cli-translator arm translate --parameters
                                --resource-group
                                --template
                                [--target-subscription]

Examples

Translate ARM template.json and parameters.json to CLI scripts

az cli-translator arm translate --target-subscription 00000000-0000-0000-0000-000000000000 --resource-group groupName --template /path/to/local/template --parameters /path/to/local/parameters

Required Parameters

--parameters

The local path or url of parameters.json file.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--template

The local path or url of template.json file.

Optional Parameters

--target-subscription

The target subscription id. If omit, the current subscription id will be used.

Global Parameters
--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.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.