az deployment-scripts

Manage deployment scripts at subscription or resource group scope.

Commands

az deployment-scripts delete

Delete a deployment script.

az deployment-scripts list

List all deployment scripts.

az deployment-scripts show

Retrieve a deployment script.

az deployment-scripts show-log

Show deployment script logs.

az deployment-scripts delete

Delete a deployment script.

az deployment-scripts delete --name
                             --resource-group
                             [--subscription]
                             [--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

--subscription

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

--yes -y

Do not prompt for confirmation.

az deployment-scripts list

List all deployment scripts.

az deployment-scripts list [--query-examples]
                           [--resource-group]
                           [--subscription]

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

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--resource-group -g

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

--subscription

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

az deployment-scripts show

Retrieve a deployment script.

az deployment-scripts show --name
                           --resource-group
                           [--query-examples]
                           [--subscription]

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

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

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

az deployment-scripts show-log

Show deployment script logs.

az deployment-scripts show-log --name
                               --resource-group
                               [--subscription]

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

Optional Parameters

--subscription

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