แชร์ผ่าน


az deployment-scripts

Manage deployment scripts at subscription or resource group scope.

Commands

Name Description Type Status
az deployment-scripts delete

Delete a deployment script.

Core GA
az deployment-scripts list

List all deployment scripts.

Core GA
az deployment-scripts show

Retrieve a deployment script.

Core GA
az deployment-scripts show-log

Show deployment script logs.

Core GA

az deployment-scripts delete

Delete a deployment script.

az deployment-scripts delete --name
                             --resource-group
                             [--yes]

Examples

Delete a deployment script found in the user's logged-in default subscription.

az deployment-scripts delete --resource-group contoso-rg --name contosoBashScript

Required Parameters

--name

Deployment script resource name.

--resource-group -g

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

Optional Parameters

--yes -y

Do not prompt for confirmation.

Default value: False
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.

az deployment-scripts list

List all deployment scripts.

az deployment-scripts list [--resource-group]

Examples

Retrieve all deployment scripts found in the user's logged-in default subscription.

az deployment-scripts list

Retrieve all deployment scripts found in a resource group

az deployment-scripts list --resource-group contoso-rg

Optional Parameters

--resource-group -g

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

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.

az deployment-scripts show

Retrieve a deployment script.

az deployment-scripts show --name
                           --resource-group

Examples

Retrieve a deployment script found in the user's logged-in default subscription.

az deployment-scripts show --resource-group contoso-rg --name contosoBashScript

Required Parameters

--name

Deployment script resource name.

--resource-group -g

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

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.

az deployment-scripts show-log

Show deployment script logs.

az deployment-scripts show-log --name
                               --resource-group

Examples

Retrieve deployment script logs found in the user's logged-in default subscription, max limit is 4MB.

az deployment-scripts show-log --resource-group contoso-rg --name contosoBashScript

Required Parameters

--name

Deployment script resource name.

--resource-group -g

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

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.