az batch pool autoscale
Manage automatic scaling of Batch pools.
Commands
Name | Description | Type | Status |
---|---|---|---|
az batch pool autoscale disable |
Disables automatic scaling for a Pool. |
Core | GA |
az batch pool autoscale enable |
Enables automatic scaling for a Pool. |
Core | GA |
az batch pool autoscale evaluate |
Gets the result of evaluating an automatic scaling formula on the Pool. |
Core | GA |
az batch pool autoscale disable
Disables automatic scaling for a Pool.
az batch pool autoscale disable --pool-id
[--account-endpoint]
[--account-key]
[--account-name]
Required Parameters
The ID of the Pool on which to disable automatic scaling. Required.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az batch pool autoscale enable
Enables automatic scaling for a Pool.
You cannot enable automatic scaling on a Pool if a resize operation is in progress on the Pool. If automatic scaling of the Pool is currently disabled, you must specify a valid autoscale formula as part of the request. If automatic scaling of the Pool is already enabled, you may specify a new autoscale formula and/or a new evaluation interval. You cannot call this API for the same Pool more than once every 30 seconds.
az batch pool autoscale enable --pool-id
[--account-endpoint]
[--account-key]
[--account-name]
[--auto-scale-evaluation-interval]
[--auto-scale-formula]
[--if-match]
[--if-modified-since]
[--if-none-match]
[--if-unmodified-since]
Required Parameters
The ID of the Pool to get. Required.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
The time interval at which to automatically adjust the Pool size according to the autoscale formula. The default value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, with its starting time being the time when this request was issued.
The formula for the desired number of Compute Nodes in the Pool. The formula is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error information. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://learn.microsoft.com/azure/batch/batch-automatic-scaling).
An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service exactly matches the value specified by the client.
Property | Value |
---|---|
Parameter group: | Pre-condition and Query Arguments |
A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.
Property | Value |
---|---|
Parameter group: | Pre-condition and Query Arguments |
An ETag value associated with the version of the resource known to the client. The operation will be performed only if the resource's current ETag on the service does not match the value specified by the client.
Property | Value |
---|---|
Parameter group: | Pre-condition and Query Arguments |
A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.
Property | Value |
---|---|
Parameter group: | Pre-condition and Query Arguments |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |
az batch pool autoscale evaluate
Gets the result of evaluating an automatic scaling formula on the Pool.
This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
az batch pool autoscale evaluate --pool-id
[--account-endpoint]
[--account-key]
[--account-name]
[--auto-scale-formula]
[--json-file]
Required Parameters
The ID of the Pool on which to evaluate the automatic scaling formula. Required.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Batch service endpoint. Alternatively, set by environment variable: AZURE_BATCH_ENDPOINT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account key. Alternatively, set by environment variable: AZURE_BATCH_ACCESS_KEY.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
Batch account name. Alternatively, set by environment variable: AZURE_BATCH_ACCOUNT.
Property | Value |
---|---|
Parameter group: | Batch Account Arguments |
The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). Required.
Property | Value |
---|---|
Parameter group: | Content Arguments |
A file containing the content specification in JSON (formatted to match the respective REST API body). If this parameter is specified, all 'Content Arguments' are ignored.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
Property | Value |
---|---|
Default value: | False |