@@ -108,5 +108,64 @@ Invoke-AzSpotPlacementScore
108
108
[-DesiredLocation <String[ ]>]
109
109
[-DesiredSize <IResourceSize[ ]>]
110
110
111
+
111
112
## Examples
112
113
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