1
1
---
2
2
external help file :
3
3
Module Name : Az.Compute
4
- online version : https://learn.microsoft.com/powershell/module/az.compute/invoke-azspotplacementrecommender
4
+ online version : https://learn.microsoft.com/powershell/module/az.compute/invoke-azspotplacementscore
5
5
schema : 2.0.0
6
6
---
7
7
8
- # Invoke-AzSpotPlacementRecommender
8
+ # Invoke-AzSpotPlacementScore
9
9
10
10
## SYNOPSIS
11
- Generates placement scores for Spot VM skus.
11
+ Generates placement scores for Spot VM skus. This cmdlet calls the Spot Placement Scores API which is in preview. More information about this API can be found [ here] ( https://learn.microsoft.com/rest/api/compute/spot-placement-scores/post ) .
12
+
12
13
13
14
## SYNTAX
14
15
15
16
### PostExpanded (Default)
16
17
```
17
- Invoke-AzSpotPlacementRecommender -Location <String> [-SubscriptionId <String>] [-AvailabilityZone]
18
+ Invoke-AzSpotPlacementScore -Location <String> [-SubscriptionId <String>] [-AvailabilityZone]
18
19
[-DesiredCount <Int32>] [-DesiredLocation <String[]>] [-DesiredSize <IResourceSize[]>]
19
20
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
20
21
```
21
22
22
23
### Post
23
24
```
24
- Invoke-AzSpotPlacementRecommender -Location <String>
25
- -SpotPlacementRecommenderInput <ISpotPlacementRecommenderInput> [-SubscriptionId <String>]
26
- [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
25
+ Invoke-AzSpotPlacementScore -Location <String> -SpotPlacementScoresInput <ISpotPlacementScoresInput>
26
+ [-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
27
+ ```
28
+
29
+ ### PostViaIdentity
30
+ ```
31
+ Invoke-AzSpotPlacementScore -InputObject <IComputeIdentity>
32
+ -SpotPlacementScoresInput <ISpotPlacementScoresInput> [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
33
+ [<CommonParameters>]
34
+ ```
35
+
36
+ ### PostViaIdentityExpanded
37
+ ```
38
+ Invoke-AzSpotPlacementScore -InputObject <IComputeIdentity> [-AvailabilityZone] [-DesiredCount <Int32>]
39
+ [-DesiredLocation <String[]>] [-DesiredSize <IResourceSize[]>] [-DefaultProfile <PSObject>] [-Confirm]
40
+ [-WhatIf] [<CommonParameters>]
27
41
```
28
42
29
43
## DESCRIPTION
30
- Generates placement scores for Spot VM skus.
44
+ Generates placement scores for Spot VM skus. This cmdlet calls the Spot Placement Scores API which is in preview. More information about this API can be found [ here ] ( https://learn.microsoft.com/rest/api/compute/spot-placement-scores/post ) .
31
45
32
46
## EXAMPLES
33
47
34
- ### Example 1: Regionally scoped Spot Placement Recommender scores
48
+ ### Example 1: Regionally scoped Spot Placement scores
35
49
``` powershell
36
50
$resourceSku1 = @{sku = "Standard_D2_v3"}
37
51
$resourceSku2 = @{sku = "Standard_D2_v2"}
38
52
$resourceSku3 = @{sku = "Standard_D4_v3"}
39
53
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
40
54
$desiredLocations = 'japaneast','southcentralus','centralus'
41
55
42
- $response = Invoke-AzSpotPlacementRecommender -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
56
+ $response = Invoke-AzSpotPlacementScore -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
43
57
$response.PlacementScore
44
58
```
45
59
@@ -57,17 +71,17 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
57
71
True centralus RestrictedSkuNotAvailable Standard_D4_v3
58
72
```
59
73
60
- Returns regionally scoped spot placement recommender scores for the input.
74
+ Returns regionally scoped spot placement scores for the input.
61
75
62
- ### Example 2: Zonally scoped Spot Placement Recommender scores
76
+ ### Example 2: Zonally scoped Spot Placement Scores
63
77
``` powershell
64
78
$resourceSku1 = @{sku = "Standard_D2_v3"}
65
79
$resourceSku2 = @{sku = "Standard_D2_v2"}
66
80
$resourceSku3 = @{sku = "Standard_D4_v3"}
67
81
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
68
82
$desiredLocations = 'japaneast','southcentralus','centralus'
69
83
70
- $response = Invoke-AzSpotPlacementRecommender -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes -AvailabilityZone
84
+ $response = Invoke-AzSpotPlacementScore -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes -AvailabilityZone
71
85
$response.PlacementScore
72
86
```
73
87
@@ -103,9 +117,9 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
103
117
3 True centralus High Standard_D4_v3
104
118
```
105
119
106
- Returns zonally scoped spot placement recommender scores for the input.
120
+ Returns zonally scoped spot placement scores for the input.
107
121
108
- ### Example 3: Regionally scoped Spot Placement Recommender scores using SpotPlacementRecommenderInput parameter as argument
122
+ ### Example 3: Regionally scoped Spot Placement Scores using SpotPlacementScoresInput parameter as argument
109
123
``` powershell
110
124
$resourceSku1 = @{sku = "Standard_D2_v3"}
111
125
$resourceSku2 = @{sku = "Standard_D2_v2"}
@@ -114,9 +128,9 @@ $desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
114
128
$desiredLocations = 'japaneast','southcentralus','centralus'
115
129
$desiredCount = 1
116
130
117
- $spotPlacementRecommenderInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
131
+ $spotPlacementScoresInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
118
132
119
- $response = Invoke-AzSpotPlacementRecommender -Location eastus -SpotPlacementRecommenderInput $spotPlacementRecommenderInput
133
+ $response = Invoke-AzSpotPlacementScore -Location eastus -SpotPlacementScoresInput $spotPlacementScoresInput
120
134
$response.PlacementScore
121
135
```
122
136
@@ -134,20 +148,18 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
134
148
True centralus RestrictedSkuNotAvailable Standard_D4_v3
135
149
```
136
150
137
- Returns regionally scoped spot placement recommender scores for the input.
151
+ Returns regionally scoped spot placement scores for the input.
138
152
139
- ### Example 2 : Zonally scoped Spot Placement Recommender scores using SpotPlacementRecommenderInput parameter as argument
153
+ ### Example 4 : Zonally scoped Spot Placement scores using SpotPlacementScoresInput parameter as argument
140
154
``` powershell
141
155
$resourceSku1 = @{sku = "Standard_D2_v3"}
142
156
$resourceSku2 = @{sku = "Standard_D2_v2"}
143
157
$resourceSku3 = @{sku = "Standard_D4_v3"}
144
158
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
145
159
$desiredLocations = 'japaneast','southcentralus','centralus'
146
160
$desiredCount = 1
147
-
148
- $spotPlacementRecommenderInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $true}
149
-
150
- $response = Invoke-AzSpotPlacementRecommender -Location eastus -SpotPlacementRecommenderInput $spotPlacementRecommenderInput
161
+ $spotPlacementScoresInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $true}
162
+ $response = Invoke-AzSpotPlacementScore -Location eastus -SpotPlacementScoresInput $spotPlacementScoresInput
151
163
$response.PlacementScore
152
164
```
153
165
@@ -183,7 +195,7 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
183
195
3 True centralus High Standard_D4_v3
184
196
```
185
197
186
- Returns zonally scoped spot placement recommender scores for the input.
198
+ Returns zonally scoped spot placement scores for the input.
187
199
188
200
## PARAMETERS
189
201
@@ -253,7 +265,7 @@ The desired resource SKUs.
253
265
To construct, see NOTES section for DESIREDSIZE properties and create a hash table.
254
266
255
267
` ` ` yaml
256
- Type : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210601Preview .IResourceSize[]
268
+ Type : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview .IResourceSize[]
257
269
Parameter Sets : PostExpanded, PostViaIdentityExpanded
258
270
Aliases :
259
271
@@ -295,6 +307,22 @@ Accept pipeline input: False
295
307
Accept wildcard characters : False
296
308
` ` `
297
309
310
+ ### -SpotPlacementScoresInput
311
+ SpotPlacementScores API Input.
312
+ To construct, see NOTES section for SPOTPLACEMENTSCORESINPUT properties and create a hash table.
313
+
314
+ ` ` ` yaml
315
+ Type : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.ISpotPlacementScoresInput
316
+ Parameter Sets : Post, PostViaIdentity
317
+ Aliases : SpotPlacementRecommenderInput
318
+
319
+ Required : True
320
+ Position : Named
321
+ Default value : None
322
+ Accept pipeline input : True (ByValue)
323
+ Accept wildcard characters : False
324
+ ` ` `
325
+
298
326
### -SubscriptionId
299
327
Subscription credentials which uniquely identify Microsoft Azure subscription.
300
328
The subscription ID forms part of the URI for every service call.
@@ -347,13 +375,19 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
347
375
348
376
## INPUTS
349
377
378
+ ### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.ISpotPlacementScoresInput
379
+
350
380
### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
351
381
352
382
## OUTPUTS
353
383
354
- ### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210601Preview.ISpotPlacementRecommenderResponse
384
+ ### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.ISpotPlacementScoresResponse
355
385
356
386
## NOTES
357
387
388
+ ALIASES
389
+
390
+ Invoke-AzSpotPlacementRecommender
391
+
358
392
## RELATED LINKS
359
393
0 commit comments