Share via


az compute-recommender

Manage sku/zone/region recommender info for compute resources.

Commands

Name Description Type Status
az compute-recommender spot-placement-score

Generate placement scores for Spot VM skus.

Core GA

az compute-recommender spot-placement-score

Generate placement scores for Spot VM skus.

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

Examples

generate spot vm placement score example

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

Required Parameters

--desired-locations

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

Property Value
Parameter group: SpotPlacementScoresInput Arguments
--desired-sizes

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

Property Value
Parameter group: SpotPlacementScoresInput Arguments

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--availability-zones

Defines if the scope is zonal or regional.

Property Value
Parameter group: SpotPlacementScoresInput Arguments
Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--desired-count

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

Property Value
Parameter group: SpotPlacementScoresInput Arguments
--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.

Property Value
Parameter group: Resource Id Arguments
--location -l

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

Property Value
Parameter group: Resource Id Arguments
--subscription

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

Property Value
Parameter group: Resource Id Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

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

--verbose

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

Property Value
Default value: False