לקריאה באנגלית

שתף באמצעות


az compute-recommender

This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

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

Commands

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

Generate placement scores for Spot VM skus.

Core Preview

az compute-recommender spot-placement-recommender

Preview

Command group 'az compute-recommender' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

Generate placement scores for Spot VM skus.

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

Examples

generate spot vm placement score example

az compute-recommender spot-placement-recommender -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-count
Preview

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

--desired-locations
Preview

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

--desired-sizes
Preview

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

Optional Parameters

--availability-zones
Preview

Defines if the scope is zonal or regional.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--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
Preview

The Azure region where the recommendation will be generated.

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