Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e75f709
Initial commit
Elina-L Mar 15, 2024
a615455
Update files after setting directives to add remove cmdlets
Elina-L Mar 15, 2024
ca118f4
Add initial tests for Invoke-SpotPlacementRecommender cmdlet and some…
Elina-L Mar 16, 2024
1f374cc
Add examples to Invoke-Spot examples md file
Elina-L Mar 16, 2024
223be11
Remove unnecessary test.ps1 files
Elina-L Mar 16, 2024
0ba5794
Readding some removed files that should not be deleted (1)
Elina-L Mar 16, 2024
465a952
Readding some removed files that should not be deleted (2)
Elina-L Mar 16, 2024
ae2f3ea
Readding some removed files that should not be deleted (3)
Elina-L Mar 16, 2024
31ad076
Adding older deleted cmds to FunctionsToExport
Elina-L Mar 18, 2024
a7c604b
Removing Get SpotPlacementRecommender files
Elina-L Mar 18, 2024
a2f3a9f
Remove Get-AzSpotPlacementRecommender.Tests.ps1, update failing test …
Elina-L Mar 18, 2024
827d4bd
Rever changes to docs/Az.Compute.md
Elina-L Mar 18, 2024
855624b
Only remove new functions from diagnostic.json
Elina-L Mar 18, 2024
ddf994e
Reverting changes to docs of other cmdlets
Elina-L Mar 18, 2024
b6aa52c
Update README.md to point to remote swagger
Elina-L Mar 18, 2024
db52c11
Readd removed Get-AzGalleryApplication Get-AzGalleryApplicationVersio…
Elina-L Mar 18, 2024
d08b128
Update README.md commit to the commit version that includes Spot Plac…
Elina-L Mar 18, 2024
4660338
Update Az.Compute.psd1 to remove Get-AzSpotPlacementRecommender funct…
Elina-L Mar 19, 2024
3c6028c
Update test cases, response should not be null or empty, update env.j…
Elina-L Mar 19, 2024
116b7b1
Add recording file and fix invalid input desired size
Elina-L Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compute/Compute.Autorest/Az.Compute.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Compute.private.dll'
FormatsToProcess = './Az.Compute.format.ps1xml'
FunctionsToExport = 'Get-AzGalleryApplication', 'Get-AzGalleryApplicationVersion', 'New-AzGalleryApplication', 'New-AzGalleryApplicationVersion', 'Remove-AzGalleryApplication', 'Remove-AzGalleryApplicationVersion', 'Remove-AzVMRunCommand', 'Remove-AzVmssVMRunCommand', 'Set-AzVMRunCommand', 'Set-AzVmssVMRunCommand', 'Update-AzGalleryApplication', 'Update-AzGalleryApplicationVersion', '*'
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', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
Expand Down
35 changes: 31 additions & 4 deletions src/Compute/Compute.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
This directory contains the PowerShell module for the Compute service.

---
## Status
[![Az.Compute](https://img.shields.io/powershellgallery/v/Az.Compute.svg?style=flat-square&label=Az.Compute "Az.Compute")](https://www.powershellgallery.com/packages/Az.Compute/)

## Info
- Modifiable: yes
- Generated: all
Expand All @@ -29,7 +26,7 @@ For information on how to develop for `Az.Compute`, see [how-to.md](how-to.md).
### AutoRest Configuration
> see https://aka.ms/autorest
``` yaml
commit: 1a925d1afe288a5f20d078bbc89214a36a0e4287
commit: 77c47a7fba8d8b900595966b81d6bb92a0308370
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
Expand All @@ -38,6 +35,7 @@ input-file:
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-01-03/gallery.json
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-07-01/runCommand.json
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/common-types/v1/common.json
- $(repo)/specification/compute/resource-manager/Microsoft.Compute/DiagnosticRP/preview/2024-03-01-preview/diagnostic.json
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
module-version: 0.3.0
# Normally, title is the service name
Expand Down Expand Up @@ -235,4 +233,33 @@ directive:
subject: VMRunCommand|VmssVMRunCommand
verb: Get
remove: true
### Remove All Diagnostic cmdlets aside from Invoke Spot Placement Recommender - generate ONLY SpotPlacementRecommender cmdlets
- where:
verb: Get
subject: Diagnostic
remove: true
- where:
verb: Get
subject: DiskInspection
remove: true
- where:
verb: New
subject: DiskInspection
remove: true
- where:
verb: Read
subject: DiagnosticOperation
remove: true
- where:
verb: Register
subject: DiskInspectionStorageConfiguration
remove: true
- where:
verb: Test
subject: DiskInspectionStorageConfiguration
remove: true
- where:
verb: Get
subject: SpotPlacementRecommender
remove: true
```
42 changes: 42 additions & 0 deletions src/Compute/Compute.Autorest/UX/Microsoft.Compute/locations.json
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]"
}
]
}
]
}
]
}
3 changes: 3 additions & 0 deletions src/Compute/Compute.Autorest/docs/Az.Compute.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Locale: en-US
Microsoft Azure PowerShell: Compute cmdlets

## Az.Compute Cmdlets
### [Invoke-AzSpotPlacementRecommender](Invoke-AzSpotPlacementRecommender.md)
Generates placement scores for Spot VM skus.

### [Get-AzGalleryApplication](Get-AzGalleryApplication.md)
Retrieves information about a gallery Application Definition.

Expand Down
Loading