az monitor autoscale profile

Manage autoscaling profiles.

For more information on autoscaling, visit: https://docs.microsoft.com/azure/monitoring-and-diagnostics/monitoring-understanding-autoscale-settings.

Commands

az monitor autoscale profile create

Create a fixed or recurring autoscale profile.

az monitor autoscale profile delete

Delete an autoscale profile.

az monitor autoscale profile list

List autoscale profiles.

az monitor autoscale profile list-timezones

Look up time zone information.

az monitor autoscale profile show

Show details of an autoscale profile.

az monitor autoscale profile create

Create a fixed or recurring autoscale profile.

For more information on autoscaling, visit: https://docs.microsoft.com/azure/monitoring-and-diagnostics/monitoring-understanding-autoscale-settings.

az monitor autoscale profile create --autoscale-name
                                    --count
                                    --name
                                    --resource-group
                                    --timezone
                                    [--copy-rules]
                                    [--end]
                                    [--max-count]
                                    [--min-count]
                                    [--recurrence]
                                    [--start]
                                    [--subscription]

Examples

Create a fixed date profile, inheriting the default scaling rules but changing the capacity.

az monitor autoscale create -g {myrg} --resource {resource-id} --min-count 2 --count 3 \
  --max-count 5

az monitor autoscale rule create -g {myrg} --autoscale-name {name} --scale out 1 \
  --condition "Percentage CPU > 75 avg 5m"

az monitor autoscale rule create -g {myrg} --autoscale-name {name} --scale in 1 \
  --condition "Percentage CPU < 25 avg 5m"

az monitor autoscale profile create -g {myrg} --autoscale-name {name} -n Christmas \
  --copy-rules default --min-count 3 --count 6 --max-count 10 --start 2018-12-24 \
  --end 2018-12-26 --timezone "Pacific Standard Time"

Create a recurring weekend profile, inheriting the default scaling rules but changing the capacity.

az monitor autoscale create -g {myrg} --resource {resource-id} --min-count 2 --count 3 \
  --max-count 5

az monitor autoscale rule create -g {myrg} --autoscale-name {name} --scale out 1 \
  --condition "Percentage CPU > 75 avg 5m"

az monitor autoscale rule create -g {myrg} --autoscale-name {name} --scale in 1 \
  --condition "Percentage CPU < 25 avg 5m"

az monitor autoscale profile create -g {myrg} --autoscale-name {name} -n weeekend \
  --copy-rules default --min-count 1 --count 2 --max-count 2 \
  --recurrence week sat sun --timezone "Pacific Standard Time"

Create a fixed or recurring autoscale profile. (autogenerated)

az monitor autoscale profile create --autoscale-name MyAutoscale --copy-rules default --count 2 --end 2018-12-26 --max-count 10 --min-count 1 --name Christmas --recurrence week sat sun --resource-group MyResourceGroup --start 2018-12-24 --timezone "Pacific Standard Time"

Create a fixed or recurring autoscale profile. (autogenerated)

az monitor autoscale profile create --autoscale-name MyAutoscale --count 2 --max-count 10 --min-count 1 --name Christmas --recurrence week sat sun --resource-group MyResourceGroup --start 2018-12-24 --subscription MySubscription --timezone "Pacific Standard Time"

Required Parameters

--autoscale-name

Name of the autoscale settings.

--count

The numer of instances to use. If used with --min/max-count, the default number of instances to use.

--name -n

Name of the autoscale profile.

--resource-group -g

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

--timezone

Timezone name.

value from: az monitor autoscale profile list-timezones

Optional Parameters

--copy-rules

Name of an existing schedule from which to copy the scaling rules for the new schedule.

--end

When the autoscale profile ends. Format depends on the type of profile.

--max-count

The maximum number of instances.

--min-count

The minimum number of instances.

--recurrence -r

When the profile recurs. If omitted, a fixed (non-recurring) profile is created.

--start

When the autoscale profile begins. Format depends on the type of profile.

--subscription

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

az monitor autoscale profile delete

Delete an autoscale profile.

az monitor autoscale profile delete --autoscale-name
                                    --name
                                    --resource-group
                                    [--subscription]

Examples

Delete an autoscale profile. (autogenerated)

az monitor autoscale profile delete --autoscale-name MyAutoscale --name MyAutoscaleProfile --resource-group MyResourceGroup

Required Parameters

--autoscale-name

Name of the autoscale settings.

--name -n

Name of the autoscale profile.

--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 profile list

List autoscale profiles.

az monitor autoscale profile list --autoscale-name
                                  --resource-group
                                  [--query-examples]
                                  [--subscription]

Examples

List autoscale profiles. (autogenerated)

az monitor autoscale profile list --autoscale-name MyAutoscale --resource-group MyResourceGroup

Required Parameters

--autoscale-name

Name of the autoscale settings.

--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 monitor autoscale profile list-timezones

Look up time zone information.

az monitor autoscale profile list-timezones [--offset]
                                            [--search-query]
                                            [--subscription]

Optional Parameters

--offset

Filter results based on UTC hour offset.

--search-query -q

Query text to find.

--subscription

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

az monitor autoscale profile show

Show details of an autoscale profile.

az monitor autoscale profile show --autoscale-name
                                  --name
                                  --resource-group
                                  [--query-examples]
                                  [--subscription]

Required Parameters

--autoscale-name

Name of the autoscale settings.

--name -n

Name of the autoscale profile.

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