az monitor autoscale-settings

Manage autoscale settings.

Commands

az monitor autoscale-settings create Creates or updates an autoscale setting.
az monitor autoscale-settings delete Deletes and autoscale setting.
az monitor autoscale-settings get-parameters-template Scaffold fully formed autoscale-settings' parameters as json template.
az monitor autoscale-settings list Lists the autoscale settings for a resource group.
az monitor autoscale-settings show Gets an autoscale setting.
az monitor autoscale-settings update Updates an autoscale setting.

az monitor autoscale-settings create

Creates or updates an autoscale setting.

az monitor autoscale-settings create --name
--parameters
--resource-group
[--subscription]

Required Parameters

--name -n

The autoscale setting name.

--parameters

JSON encoded parameters configuration. Use @{file} to load from a file. Use az autoscale-settings get-parameters-template to export json template.

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

az monitor autoscale-settings delete

Deletes and autoscale setting.

az monitor autoscale-settings delete [--ids]
[--name]
[--resource-group]
[--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--name -n

The autoscale setting name.

--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 monitor autoscale-settings get-parameters-template

Scaffold fully formed autoscale-settings' parameters as json template.

az monitor autoscale-settings get-parameters-template [--subscription]

Optional Parameters

--subscription

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

az monitor autoscale-settings list

Lists the autoscale settings for a resource group.

az monitor autoscale-settings list --resource-group
[--subscription]

Required Parameters

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

az monitor autoscale-settings show

Gets an autoscale setting.

az monitor autoscale-settings show [--ids]
[--name]
[--resource-group]
[--subscription]

Optional Parameters

--ids

One or more resource IDs (space-delimited). If provided, no other 'Resource Id' arguments should be specified.

--name -n

The autoscale setting name.

--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 monitor autoscale-settings update

Updates an autoscale setting.

az monitor autoscale-settings update --name
--resource-group
[--add]
[--force-string]
[--remove]
[--set]
[--subscription]

Examples

Updates an autoscale setting. (autogenerated)

az monitor autoscale-settings update --name MyAutoscaleSetting --resource-group MyResourceGroup --set retentionPolicy.days=365

Required Parameters

--name -n

The autoscale setting name.

--resource-group -g

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

Optional Parameters

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--subscription

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