Skip to content

Commit cfa2efa

Browse files
Elina-LNoriZC
andauthored
SpotPlacementRecommender resource split (#25361)
* Initial commit - target latest swagger commit 6f498e0646e1bb978b8b6f8b4e701938dd79df2b and new swagger file specification/compute/resource-manager/Microsoft.Compute/DiagnosticRP/preview/2024-06-01-preview/diagnostic.json * Generate test files, remove Invoke-SpotPlacementRecommender files, flesh out example files and add all auto generated changes * Adding Example 4: Zonally scoped Spot Placement scores using SpotPlacementScoresInput parameter as argument * Adding Invoke-AzSpotPlacementRecommender back in * Adding fixed test files for AzSpotPlacementRecommender * test alias * test alias * test alias * test alias * test alias * param alias * supress false positive * Update BreakingChangeIssues.csv * Revert all auto-generated changes to files outside of Spot API cmdlets * Adding link to Spot API public doc in description * Added same message in Synopsis section --------- Co-authored-by: Nori Zhang <norizhang@microsoft.com> Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
1 parent 6dd0522 commit cfa2efa

13 files changed

+286
-224
lines changed

src/Compute/Compute.Autorest/Az.Compute.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Compute.private.dll'
1313
FormatsToProcess = './Az.Compute.format.ps1xml'
14-
FunctionsToExport = 'Get-AzGalleryApplication', 'Get-AzGalleryApplicationVersion', 'Invoke-AzSpotPlacementRecommender', 'New-AzGalleryApplication', 'New-AzGalleryApplicationVersion', 'Remove-AzGalleryApplication', 'Remove-AzGalleryApplicationVersion', 'Remove-AzVMRunCommand', 'Remove-AzVmssVMRunCommand', 'Set-AzVMRunCommand', 'Set-AzVmssVMRunCommand', 'Update-AzGalleryApplication', 'Update-AzGalleryApplicationVersion', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzGalleryApplication', 'Get-AzGalleryApplicationVersion', 'Invoke-AzSpotPlacementScore', 'New-AzGalleryApplication', 'New-AzGalleryApplicationVersion', 'Remove-AzGalleryApplication', 'Remove-AzGalleryApplicationVersion', 'Remove-AzVMRunCommand', 'Remove-AzVmssVMRunCommand', 'Set-AzVMRunCommand', 'Set-AzVmssVMRunCommand', 'Update-AzGalleryApplication', 'Update-AzGalleryApplicationVersion', '*'
15+
AliasesToExport = 'Invoke-AzSpotPlacementRecommender', '*'
1616
PrivateData = @{
1717
PSData = @{
1818
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Compute'

src/Compute/Compute.Autorest/README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For information on how to develop for `Az.Compute`, see [how-to.md](how-to.md).
2626
### AutoRest Configuration
2727
> see https://aka.ms/autorest
2828
``` yaml
29-
commit: 77c47a7fba8d8b900595966b81d6bb92a0308370
29+
commit: 6f498e0646e1bb978b8b6f8b4e701938dd79df2b
3030
require:
3131
# readme.azure.noprofile.md is the common configuration file
3232
- $(this-folder)/../../readme.azure.noprofile.md
@@ -35,7 +35,7 @@ input-file:
3535
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-01-03/gallery.json
3636
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-07-01/runCommand.json
3737
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/common-types/v1/common.json
38-
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/DiagnosticRP/preview/2024-03-01-preview/diagnostic.json
38+
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/DiagnosticRP/preview/2024-06-01-preview/diagnostic.json
3939
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
4040
module-version: 0.3.0
4141
# Normally, title is the service name
@@ -233,7 +233,7 @@ directive:
233233
subject: VMRunCommand|VmssVMRunCommand
234234
verb: Get
235235
remove: true
236-
### Remove All Diagnostic cmdlets aside from Invoke Spot Placement Recommender - generate ONLY SpotPlacementRecommender cmdlets
236+
### Remove All Diagnostic cmdlets aside from Invoke Spot Placement Recommender - generate ONLY SpotPlacementScore cmdlets
237237
- where:
238238
verb: Get
239239
subject: Diagnostic
@@ -262,4 +262,23 @@ directive:
262262
verb: Get
263263
subject: SpotPlacementRecommender
264264
remove: true
265+
- where:
266+
verb: Get
267+
subject: SpotPlacementScore
268+
remove: true
269+
270+
## Add Alias for Invoke-AzSpotPlacementScore
271+
- where:
272+
verb: Invoke
273+
subject: SpotPlacementRecommender
274+
remove: true
275+
- where:
276+
verb: Invoke
277+
subject: SpotPlacementScore
278+
set:
279+
alias: Invoke-AzSpotPlacementRecommender
280+
- where:
281+
parameter-name: SpotPlacementScoresInput
282+
set:
283+
alias: SpotPlacementRecommenderInput
265284
```

src/Compute/Compute.Autorest/UX/Microsoft.Compute/locations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"resourceType": "locations",
3-
"apiVersion": "2021-06-01-preview",
3+
"apiVersion": "2024-06-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.compute"
66
},
77
"commands": [
88
{
9-
"name": "Invoke-AzSpotPlacementRecommender",
9+
"name": "Invoke-AzSpotPlacementScore",
1010
"description": "Generates placement scores for Spot VM skus.",
11-
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate",
11+
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/placementScores/spot/generate",
1212
"help": {
1313
"learnMore": {
14-
"url": "https://learn.microsoft.com/powershell/module/az.compute/invoke-azspotplacementrecommender"
14+
"url": "https://learn.microsoft.com/powershell/module/az.compute/invoke-azspotplacementscore"
1515
},
1616
"parameterSets": [
1717
{

src/Compute/Compute.Autorest/docs/Az.Compute.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ Locale: en-US
1111
Microsoft Azure PowerShell: Compute cmdlets
1212

1313
## Az.Compute Cmdlets
14-
### [Invoke-AzSpotPlacementRecommender](Invoke-AzSpotPlacementRecommender.md)
15-
Generates placement scores for Spot VM skus.
16-
1714
### [Get-AzGalleryApplication](Get-AzGalleryApplication.md)
1815
Retrieves information about a gallery Application Definition.
1916

2017
### [Get-AzGalleryApplicationVersion](Get-AzGalleryApplicationVersion.md)
2118
Retrieves information about a gallery Application Version.
2219

20+
### [Invoke-AzSpotPlacementScore](Invoke-AzSpotPlacementScore.md)
21+
Generates placement scores for Spot VM skus.
22+
2323
### [New-AzGalleryApplication](New-AzGalleryApplication.md)
2424
Create or update a gallery Application Definition.
2525

src/Compute/Compute.Autorest/docs/Invoke-AzSpotPlacementRecommender.md renamed to src/Compute/Compute.Autorest/docs/Invoke-AzSpotPlacementScore.md

Lines changed: 60 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,59 @@
11
---
22
external help file:
33
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
55
schema: 2.0.0
66
---
77

8-
# Invoke-AzSpotPlacementRecommender
8+
# Invoke-AzSpotPlacementScore
99

1010
## 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+
1213

1314
## SYNTAX
1415

1516
### PostExpanded (Default)
1617
```
17-
Invoke-AzSpotPlacementRecommender -Location <String> [-SubscriptionId <String>] [-AvailabilityZone]
18+
Invoke-AzSpotPlacementScore -Location <String> [-SubscriptionId <String>] [-AvailabilityZone]
1819
[-DesiredCount <Int32>] [-DesiredLocation <String[]>] [-DesiredSize <IResourceSize[]>]
1920
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2021
```
2122

2223
### Post
2324
```
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>]
2741
```
2842

2943
## 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).
3145

3246
## EXAMPLES
3347

34-
### Example 1: Regionally scoped Spot Placement Recommender scores
48+
### Example 1: Regionally scoped Spot Placement scores
3549
```powershell
3650
$resourceSku1 = @{sku = "Standard_D2_v3"}
3751
$resourceSku2 = @{sku = "Standard_D2_v2"}
3852
$resourceSku3 = @{sku = "Standard_D4_v3"}
3953
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
4054
$desiredLocations = 'japaneast','southcentralus','centralus'
4155
42-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
56+
$response = Invoke-AzSpotPlacementScore -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
4357
$response.PlacementScore
4458
```
4559

@@ -57,17 +71,17 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
5771
True centralus RestrictedSkuNotAvailable Standard_D4_v3
5872
```
5973

60-
Returns regionally scoped spot placement recommender scores for the input.
74+
Returns regionally scoped spot placement scores for the input.
6175

62-
### Example 2: Zonally scoped Spot Placement Recommender scores
76+
### Example 2: Zonally scoped Spot Placement Scores
6377
```powershell
6478
$resourceSku1 = @{sku = "Standard_D2_v3"}
6579
$resourceSku2 = @{sku = "Standard_D2_v2"}
6680
$resourceSku3 = @{sku = "Standard_D4_v3"}
6781
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
6882
$desiredLocations = 'japaneast','southcentralus','centralus'
6983
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
7185
$response.PlacementScore
7286
```
7387

@@ -103,9 +117,9 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
103117
3 True centralus High Standard_D4_v3
104118
```
105119

106-
Returns zonally scoped spot placement recommender scores for the input.
120+
Returns zonally scoped spot placement scores for the input.
107121

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
109123
```powershell
110124
$resourceSku1 = @{sku = "Standard_D2_v3"}
111125
$resourceSku2 = @{sku = "Standard_D2_v2"}
@@ -114,9 +128,9 @@ $desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
114128
$desiredLocations = 'japaneast','southcentralus','centralus'
115129
$desiredCount = 1
116130
117-
$spotPlacementRecommenderInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
131+
$spotPlacementScoresInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
118132
119-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -SpotPlacementRecommenderInput $spotPlacementRecommenderInput
133+
$response = Invoke-AzSpotPlacementScore -Location eastus -SpotPlacementScoresInput $spotPlacementScoresInput
120134
$response.PlacementScore
121135
```
122136

@@ -134,20 +148,18 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
134148
True centralus RestrictedSkuNotAvailable Standard_D4_v3
135149
```
136150

137-
Returns regionally scoped spot placement recommender scores for the input.
151+
Returns regionally scoped spot placement scores for the input.
138152

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
140154
```powershell
141155
$resourceSku1 = @{sku = "Standard_D2_v3"}
142156
$resourceSku2 = @{sku = "Standard_D2_v2"}
143157
$resourceSku3 = @{sku = "Standard_D4_v3"}
144158
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
145159
$desiredLocations = 'japaneast','southcentralus','centralus'
146160
$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
151163
$response.PlacementScore
152164
```
153165

@@ -183,7 +195,7 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
183195
3 True centralus High Standard_D4_v3
184196
```
185197

186-
Returns zonally scoped spot placement recommender scores for the input.
198+
Returns zonally scoped spot placement scores for the input.
187199

188200
## PARAMETERS
189201

@@ -253,7 +265,7 @@ The desired resource SKUs.
253265
To construct, see NOTES section for DESIREDSIZE properties and create a hash table.
254266
255267
```yaml
256-
Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210601Preview.IResourceSize[]
268+
Type: Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.IResourceSize[]
257269
Parameter Sets: PostExpanded, PostViaIdentityExpanded
258270
Aliases:
259271

@@ -295,6 +307,22 @@ Accept pipeline input: False
295307
Accept wildcard characters: False
296308
```
297309
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+
298326
### -SubscriptionId
299327
Subscription credentials which uniquely identify Microsoft Azure subscription.
300328
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
347375
348376
## INPUTS
349377
378+
### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.ISpotPlacementScoresInput
379+
350380
### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IComputeIdentity
351381
352382
## OUTPUTS
353383
354-
### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210601Preview.ISpotPlacementRecommenderResponse
384+
### Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20240601Preview.ISpotPlacementScoresResponse
355385
356386
## NOTES
357387
388+
ALIASES
389+
390+
Invoke-AzSpotPlacementRecommender
391+
358392
## RELATED LINKS
359393

src/Compute/Compute.Autorest/examples/Invoke-AzSpotPlacementRecommender.md renamed to src/Compute/Compute.Autorest/examples/Invoke-AzSpotPlacementScore.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
### Example 1: Regionally scoped Spot Placement Recommender scores
1+
### Example 1: Regionally scoped Spot Placement scores
22
```powershell
33
$resourceSku1 = @{sku = "Standard_D2_v3"}
44
$resourceSku2 = @{sku = "Standard_D2_v2"}
55
$resourceSku3 = @{sku = "Standard_D4_v3"}
66
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
77
$desiredLocations = 'japaneast','southcentralus','centralus'
88
9-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
9+
$response = Invoke-AzSpotPlacementScore -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes
1010
$response.PlacementScore
1111
```
1212

@@ -24,17 +24,17 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
2424
True centralus RestrictedSkuNotAvailable Standard_D4_v3
2525
```
2626

27-
Returns regionally scoped spot placement recommender scores for the input.
27+
Returns regionally scoped spot placement scores for the input.
2828

29-
### Example 2: Zonally scoped Spot Placement Recommender scores
29+
### Example 2: Zonally scoped Spot Placement Scores
3030
```powershell
3131
$resourceSku1 = @{sku = "Standard_D2_v3"}
3232
$resourceSku2 = @{sku = "Standard_D2_v2"}
3333
$resourceSku3 = @{sku = "Standard_D4_v3"}
3434
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
3535
$desiredLocations = 'japaneast','southcentralus','centralus'
3636
37-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes -AvailabilityZone
37+
$response = Invoke-AzSpotPlacementScore -Location eastus -DesiredCount 1 -DesiredLocation $desiredLocations -DesiredSize $desiredSizes -AvailabilityZone
3838
$response.PlacementScore
3939
```
4040

@@ -70,9 +70,9 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
7070
3 True centralus High Standard_D4_v3
7171
```
7272

73-
Returns zonally scoped spot placement recommender scores for the input.
73+
Returns zonally scoped spot placement scores for the input.
7474

75-
### Example 3: Regionally scoped Spot Placement Recommender scores using SpotPlacementRecommenderInput parameter as argument
75+
### Example 3: Regionally scoped Spot Placement Scores using SpotPlacementScoresInput parameter as argument
7676
```powershell
7777
$resourceSku1 = @{sku = "Standard_D2_v3"}
7878
$resourceSku2 = @{sku = "Standard_D2_v2"}
@@ -81,9 +81,9 @@ $desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
8181
$desiredLocations = 'japaneast','southcentralus','centralus'
8282
$desiredCount = 1
8383
84-
$spotPlacementRecommenderInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
84+
$spotPlacementScoresInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $false}
8585
86-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -SpotPlacementRecommenderInput $spotPlacementRecommenderInput
86+
$response = Invoke-AzSpotPlacementScore -Location eastus -SpotPlacementScoresInput $spotPlacementScoresInput
8787
$response.PlacementScore
8888
```
8989

@@ -101,20 +101,18 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
101101
True centralus RestrictedSkuNotAvailable Standard_D4_v3
102102
```
103103

104-
Returns regionally scoped spot placement recommender scores for the input.
104+
Returns regionally scoped spot placement scores for the input.
105105

106-
### Example 2: Zonally scoped Spot Placement Recommender scores using SpotPlacementRecommenderInput parameter as argument
106+
### Example 4: Zonally scoped Spot Placement scores using SpotPlacementScoresInput parameter as argument
107107
```powershell
108108
$resourceSku1 = @{sku = "Standard_D2_v3"}
109109
$resourceSku2 = @{sku = "Standard_D2_v2"}
110110
$resourceSku3 = @{sku = "Standard_D4_v3"}
111111
$desiredSizes = $resourceSku1,$resourceSku2,$resourceSku3
112112
$desiredLocations = 'japaneast','southcentralus','centralus'
113113
$desiredCount = 1
114-
115-
$spotPlacementRecommenderInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $true}
116-
117-
$response = Invoke-AzSpotPlacementRecommender -Location eastus -SpotPlacementRecommenderInput $spotPlacementRecommenderInput
114+
$spotPlacementScoresInput = @{desiredLocation = $desiredLocations; desiredSize = $desiredSizes; desiredCount = $desiredCount; availabilityZone = $true}
115+
$response = Invoke-AzSpotPlacementScore -Location eastus -SpotPlacementScoresInput $spotPlacementScoresInput
118116
$response.PlacementScore
119117
```
120118

@@ -150,4 +148,4 @@ AvailabilityZone IsQuotaAvailable Region Score Sku
150148
3 True centralus High Standard_D4_v3
151149
```
152150

153-
Returns zonally scoped spot placement recommender scores for the input.
151+
Returns zonally scoped spot placement scores for the input.

0 commit comments

Comments
 (0)