Skip to content

Commit f517394

Browse files
authored
Update spot-placement-score.md
Added PowerShell and CLI sections.
1 parent 1338c85 commit f517394

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

articles/virtual-machines/spot-placement-score.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Spot Placement Score will assist you by evaluating the likelihood of success for
1616

1717
Using Spot Placement Score, you can achieve the following:
1818

19-
- A clear evaluation of how likely your Spot deployments is to succeed based on specified parameters.
19+
- A clear evaluation of how likely your Spot deployment is to succeed based on specified parameters.
2020

2121
- Identify the most suitable combination of regions and VM sizes to maximize Spot VM availability and survivability based on placement scores.
2222

@@ -84,3 +84,27 @@ POST https://management.azure.com/subscriptions/{subscription}/providers/Microso
8484

8585
}
8686

87+
### [Azure CLI](#tab/cli)
88+
You can use Spot Placement Score using Azure CLI by using the following:
89+
90+
az compute-recommender spot-placement-recommender [--availability-zones {0, 1, f, false, n, no, t, true, y, yes}]
91+
[--desired-count]
92+
[--desired-locations]
93+
[--desired-sizes]
94+
[--ids]
95+
[--location]
96+
[--subscription]
97+
98+
### [Azure PowerShell](#tab/powershell)
99+
You can use Spot Placement Score using Azure PowerShell by utilizing the Invoke-AzSpotPlacementScore cmdlet to call the API endpoint. Replace <SubscriptionId>, <Location>, <DesiredCount>, <DesiredSize> and <AvailabilityZone> with your specific details:
100+
101+
Invoke-AzSpotPlacementScore
102+
-Location <String>
103+
[-SubscriptionId <String>]
104+
[-AvailabilityZone]
105+
[-DesiredCount <Int32>]
106+
[-DesiredLocation <String[]>]
107+
[-DesiredSize <IResourceSize[]>]
108+
109+
## Examples
110+

0 commit comments

Comments
 (0)