Share via


az compute-diagnostic spot-placement-recommender

Note

This reference is part of the compute-diagnostic-rp extension for the Azure CLI (version 2.56.0 or higher). The extension will automatically install the first time you run an az compute-diagnostic spot-placement-recommender command. Learn more about extensions.

Manage spot vm placement score info.

Commands

Name Description Type Status
az compute-diagnostic spot-placement-recommender generate

Generates placement scores for Spot VM skus.

Extension GA

az compute-diagnostic spot-placement-recommender generate

Generates placement scores for Spot VM skus.

az compute-diagnostic spot-placement-recommender generate [--availability-zones {0, 1, f, false, n, no, t, true, y, yes}]
                                                          [--desired-count]
                                                          [--desired-locations]
                                                          [--desired-sizes]
                                                          [--ids]
                                                          [--location]
                                                          [--subscription]

Examples

generate spot vm placement score example

az compute diagnostic spot-placement-recommender generate -l eastus --subscription ffffffff-ffff-ffff-ffff-ffffffffffff --availability-zones true --desired-locations '["eastus", "eastus2"]' --desired-count 1 --desired-sizes '[{"sku": "Standard_D2_v2"}]'

Optional Parameters

--availability-zones

Defines if the scope is zonal or regional.

accepted values: 0, 1, f, false, n, no, t, true, y, yes
--desired-count

Desired instance count per region/zone based on the scope.

--desired-locations

The desired regions Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--desired-sizes

The desired resource SKUs. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

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

--verbose

Increase logging verbosity. Use --debug for full debug logs.