Skip to content

Commit 90b0632

Browse files
authored
Update spot-placement-score.md
Added Examples and Troubleshooting section.
1 parent 66b6c9b commit 90b0632

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

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

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,64 @@ Invoke-AzSpotPlacementScore
108108
[-DesiredLocation <String[]>]
109109
[-DesiredSize <IResourceSize[]>]
110110

111+
111112
## Examples
112113

114+
The following examples have scenario assumptions, a table of results to help you understand how Spot Placement Score works.
115+
116+
Some important terminology to notice before referring to these examples:
117+
118+
- **sku.capacity** is the total number of VMs in the Virtual Machine Scale Set
119+
- **Base (standard) VMs** are the number of standard non-Spot VMs, akin to a minimum VM number
120+
121+
### Scenario 1
122+
Example of a request returning regionally scoped placement scores for multiple desired sizes and multiple desired regions.
123+
124+
The following scenario assumptions apply to this example:
125+
- **Desired Locations:** westus", "eastus"
126+
- **Desired Sizes":** Standard_D2_v2", Standard_D4_v2
127+
- **Desired Count:** 100
128+
- **Availability Zones:** False
129+
130+
| sku | region | Availability Zone | Is Quota Available? | Placement Score |
131+
|-----------------------------------|-------------|---------------------|--------------------|-------------------|
132+
| Standard_D2_v2 | westus | False | True | High |
133+
| Standard_D4_v2 | westus | False | True | Low |
134+
| Standard_D2_v2 | eastus | False | True | Medium |
135+
| Standard_D4_v2 | eastus | False | True | High |
136+
137+
### Scenario 2
138+
Example of a request returning zonally scoped placement scores for multiple desired sizes and multiple desired regions.
139+
140+
The following scenario assumptions apply to this example:
141+
- **Desired Locations:** westus", "eastus"
142+
- **Desired Sizes":** Standard_D2_v2", Standard_D4_v2
143+
- **Desired Count:** 100
144+
- **Availability Zones:** True
145+
146+
| sku | region | Availability Zone | Is Quota Available? | Placement Score |
147+
|-----------------------------------|-------------|---------------------|--------------------|-------------------|
148+
| Standard_D2_v2 | westus | 1 | True | Medium |
149+
| Standard_D2_v2 | westus | 2 | True | Medium |
150+
| Standard_D2_v2 | westus | 3 | True | Medium |
151+
| Standard_D4_v2 | westus | 1 | True | High |
152+
| Standard_D4_v2 | westus | 2 | True | High |
153+
| Standard_D4_v2 | westus | 3 | True | High |
154+
| Standard_D2_v2 | eastus | 1 | True | Low |
155+
| Standard_D2_v2 | eastus | 2 | True | Low |
156+
| Standard_D2_v2 | eastus | 3 | True | Low |
157+
| Standard_D4_v2 | eastus | 1 | True | Medium |
158+
| Standard_D4_v2 | eastus | 2 | True | Medium |
159+
| Standard_D4_v2 | eastus | 3 | True | Medium |
160+
161+
162+
## Troubleshooting
163+
164+
| Status Code | Type | Condition
165+
|-----------------------------------|-------------|---------------------|--------------------|
166+
| 200 | OK | Placement score generation operations complete successfully. |
167+
| 400 | Bad Error Request| If any required input parameters are not present or if the values of the provided parameters are invalid. There will be a detailed error message about the failed request. |
168+
| 429 | Too Many Requests | Unable to generate placement score due to hitting rate limit|
169+
| 500 | Internal Server Error | The placement score generation failed. The error message should have detailed error information.
170+
171+

0 commit comments

Comments
 (0)