Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
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
[--acquire-policy-token]
[--availability-zones {0, 1, f, false, n, no, t, true, y, yes}]
[--change-reference]
[--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
The desired regions Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
| Property | Value |
|---|---|
| Parameter group: | SpotPlacementScoresInput Arguments |
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Desired instance count per region/zone based on the scope.
| Property | Value |
|---|---|
| Parameter group: | SpotPlacementScoresInput Arguments |
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. 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 |
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 |
Feedback
Was this page helpful?
