forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding SpotPlacementRecommender API cmdlets - version 2024-03-01-prev…
…iew (Azure#24352) * Initial commit * Update files after setting directives to add remove cmdlets * Add initial tests for Invoke-SpotPlacementRecommender cmdlet and some examples in the doc * Add examples to Invoke-Spot examples md file * Remove unnecessary test.ps1 files * Readding some removed files that should not be deleted (1) * Readding some removed files that should not be deleted (2) * Readding some removed files that should not be deleted (3) * Adding older deleted cmds to FunctionsToExport * Removing Get SpotPlacementRecommender files * Remove Get-AzSpotPlacementRecommender.Tests.ps1, update failing test and doc * Rever changes to docs/Az.Compute.md * Only remove new functions from diagnostic.json * Reverting changes to docs of other cmdlets * Update README.md to point to remote swagger * Readd removed Get-AzGalleryApplication Get-AzGalleryApplicationVersion descriptions from Az.Compute.md * Update README.md commit to the commit version that includes Spot Placement Recommender merge * Update Az.Compute.psd1 to remove Get-AzSpotPlacementRecommender function to export, add additional examples for SpotPlacementRecommenderInput parameter, update test to include SpotPlacementRecommenderInput example * Update test cases, response should not be null or empty, update env.json, localEnv.json values * Add recording file and fix invalid input desired size
- Loading branch information
Showing
10 changed files
with
819 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/Compute/Compute.Autorest/UX/Microsoft.Compute/locations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"resourceType": "locations", | ||
"apiVersion": "2021-06-01-preview", | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.compute" | ||
}, | ||
"commands": [ | ||
{ | ||
"name": "Invoke-AzSpotPlacementRecommender", | ||
"description": "Generates placement scores for Spot VM skus.", | ||
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/diagnostics/spotPlacementRecommender/generate", | ||
"help": { | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.compute/invoke-azspotplacementrecommender" | ||
}, | ||
"parameterSets": [ | ||
{ | ||
"parameters": [ | ||
"-Location <String>", | ||
"[-SubscriptionId <String>]" | ||
] | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"description": "Generates placement scores for Spot VM skus.", | ||
"parameters": [ | ||
{ | ||
"name": "-Location", | ||
"value": "[Path.location]" | ||
}, | ||
{ | ||
"name": "-SubscriptionId", | ||
"value": "[Path.subscriptionId]" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.