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
Name | Description | Type | Status |
---|---|---|---|
az monitor autoscale profile create |
Create a fixed or recurring autoscale profile. |
Core | GA |
az monitor autoscale profile delete |
Delete an autoscale profile. |
Core | GA |
az monitor autoscale profile list |
List autoscale profiles. |
Core | GA |
az monitor autoscale profile list-timezones |
Look up time zone information. |
Core | GA |
az monitor autoscale profile show |
Show details of an autoscale profile. |
Core | GA |
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]
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
Name of the autoscale settings.
The numer of instances to use. If used with --min/max-count, the default number of instances to use.
Name of the autoscale profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Timezone name.
Optional Parameters
Name of an existing schedule from which to copy the scaling rules for the new schedule.
When the autoscale profile ends. Format depends on the type of profile.
Fixed: --end yyyy-mm-dd [hh:mm:ss] Weekly: [--end hh:mm].
The maximum number of instances.
The minimum number of instances.
When the profile recurs. If omitted, a fixed (non-recurring) profile is created.
Usage: --recurrence {week} [ARG ARG ...] Weekly: --recurrence week Sat Sun.
When the autoscale profile begins. Format depends on the type of profile.
Fixed: --start yyyy-mm-dd [hh:mm:ss] Weekly: [--start hh:mm].
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor autoscale profile delete
Delete an autoscale profile.
az monitor autoscale profile delete --autoscale-name
--name
--resource-group
Examples
Delete an autoscale profile. (autogenerated)
az monitor autoscale profile delete --autoscale-name MyAutoscale --name MyAutoscaleProfile --resource-group MyResourceGroup
Required Parameters
Name of the autoscale settings.
Name of the autoscale profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor autoscale profile list
List autoscale profiles.
az monitor autoscale profile list --autoscale-name
--resource-group
Examples
List autoscale profiles. (autogenerated)
az monitor autoscale profile list --autoscale-name MyAutoscale --resource-group MyResourceGroup
Required Parameters
Name of the autoscale settings.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor autoscale profile list-timezones
Look up time zone information.
az monitor autoscale profile list-timezones [--offset]
[--search-query]
Optional Parameters
Filter results based on UTC hour offset.
Query text to find.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az monitor autoscale profile show
Show details of an autoscale profile.
az monitor autoscale profile show --autoscale-name
--name
--resource-group
Required Parameters
Name of the autoscale settings.
Name of the autoscale profile.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI