Share via


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

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

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

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--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.

Property Value
Default value: False