Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
4 changes: 2 additions & 2 deletions src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@{
GUID = 'bb1182ed-2a39-47be-8b39-46b13e973cea'
RootModule = './Az.StandbyPool.psm1'
ModuleVersion = '0.1.0'
ModuleVersion = '0.2.0'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Expand All @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.StandbyPool.private.dll'
FormatsToProcess = './Az.StandbyPool.format.ps1xml'
FunctionsToExport = 'Get-AzStandbyContainerGroupPool', 'Get-AzStandbyVMPool', 'Get-AzStandbyVMPoolVM', 'New-AzStandbyContainerGroupPool', 'New-AzStandbyVMPool', 'Remove-AzStandbyContainerGroupPool', 'Remove-AzStandbyVMPool', 'Update-AzStandbyContainerGroupPool', 'Update-AzStandbyVMPool'
FunctionsToExport = 'Get-AzStandbyContainerGroupPool', 'Get-AzStandbyContainerGroupPoolStatus', 'Get-AzStandbyVMPool', 'Get-AzStandbyVMPoolStatus', 'New-AzStandbyContainerGroupPool', 'New-AzStandbyVMPool', 'Remove-AzStandbyContainerGroupPool', 'Remove-AzStandbyVMPool', 'Update-AzStandbyContainerGroupPool', 'Update-AzStandbyVMPool'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StandbyPool'
Expand Down
83 changes: 75 additions & 8 deletions src/StandbyPool/StandbyPool.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ For information on how to develop for `Az.StandbyPool`, see [how-to.md](how-to.m

```yaml
# pin the swagger version by using the commit id instead of branch name
commit: 5cbd7c23897da22f52da4f02534b2819abe9f761
commit: 1866fc3609f55fad6a5e74a9b206ae4ca144c03a
tag: package-2024-03
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
Expand Down Expand Up @@ -63,14 +64,21 @@ directive:
subject: StandbyVirtualMachinePool
set:
subject: StandbyVMPool
# Rename StandbyVirtualMachine to StandbyVM

# Rename Get-AzStandbyVirtualMachinePoolRuntimeView to Get-AzStandbyVMPoolStatus
- where:
verb: Get
subject: StandbyVirtualMachine
subject: StandbyVirtualMachinePoolRuntimeView
set:
subject: StandbyVMPoolVM
subject: StandbyVMPoolStatus

# Rename Get-AzStandbyContainerGroupPoolRuntimeView to Get-AzStandbyContainerGroupPoolStatus
- where:
verb: Get
subject: StandbyContainerGroupPoolRuntimeView
set:
subject: StandbyContainerGroupPoolStatus

# Rename standby container group pool parameters
- where:
verb: New|Update
Expand Down Expand Up @@ -99,13 +107,27 @@ directive:
parameter-name: ElasticityProfileRefillPolicy
set:
parameter-name: RefillPolicy

- where:
verb: New|Update
subject: StandbyContainerGroupPool
parameter-name: ContainerGroupPropertySubnetId
set:
parameter-name: SubnetId

- where:
verb: Get
subject: StandbyContainerGroupPoolStatus
parameter-name: StandbyContainerGroupPoolName
set:
parameter-name: Name

- where:
verb: Get
subject: StandbyContainerGroupPoolStatus
parameter-name: RuntimeView
set:
parameter-name: Version

# Rename standby virtual machine pool parameters
- where:
Expand All @@ -122,28 +144,73 @@ directive:
set:
parameter-name: MaxReadyCapacity

- where:
verb: New|Update
subject: StandbyVMPool
parameter-name: ElasticityProfileMinReadyCapacity
set:
parameter-name: MinReadyCapacity

- where:
verb: New|Update
subject: StandbyVMPool
parameter-name: VirtualMachineState
set:
parameter-name: VMState

# Rename standby virtual machine parameters
- where:
verb: Get
subject: StandbyVMPoolVM
parameter-name: Name
set:
parameter-name: VMName

- where:
verb: Get
subject: StandbyVMPoolVM
parameter-name: PoolName
set:
parameter-name: Name

- where:
verb: Get
subject: StandbyVMPoolStatus
parameter-name: StandbyVirtualMachinePoolName
set:
parameter-name: Name

- where:
verb: Get
subject: StandbyVMPoolStatus
parameter-name: RuntimeView
set:
parameter-name: Version

# Hide parameters from cmdlets
- where:
verb: Get
subject: StandbyVMPoolStatus
parameter-name: Version
hide: true
set:
default:
script: "'latest'"

- where:
verb: Get
subject: StandbyContainerGroupPoolStatus
parameter-name: Version
hide: true
set:
default:
script: "'latest'"

# Rename Get-StandbyVirtualMachine to StandbyVM
- where:
verb: Get
subject: StandbyVirtualMachine
remove: true

# Remove the set-* cmdlet
- where:
verb: Set
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"resourceType": "standbyContainerGroupPools/runtimeViews",
"apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
"commands": [
{
"name": "Get-AzStandbyContainerGroupPoolStatus",
"description": "Get a StandbyContainerGroupPoolRuntimeViewResource",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}/runtimeViews/{runtimeView}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbycontainergrouppoolstatus"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get a StandbyContainerGroupPoolRuntimeViewResource",
"parameters": [
{
"name": "-Name",
"value": "[Path.standbyContainerGroupPoolName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "standbyContainerGroupPools",
"apiVersion": "2023-12-01-preview",
"apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"resourceType": "standbyVirtualMachinePools/runtimeViews",
"apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
"commands": [
{
"name": "Get-AzStandbyVMPoolStatus",
"description": "Get a StandbyVirtualMachinePoolRuntimeViewResource",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/runtimeViews/{runtimeView}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolstatus"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Get a StandbyVirtualMachinePoolRuntimeViewResource",
"parameters": [
{
"name": "-Name",
"value": "[Path.standbyVirtualMachinePoolName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "standbyVirtualMachinePools",
"apiVersion": "2023-12-01-preview",
"apiVersion": "2024-03-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
},
Expand Down
7 changes: 5 additions & 2 deletions src/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ Microsoft Azure PowerShell: StandbyPool cmdlets
### [Get-AzStandbyContainerGroupPool](Get-AzStandbyContainerGroupPool.md)
Get a StandbyContainerGroupPoolResource

### [Get-AzStandbyContainerGroupPoolStatus](Get-AzStandbyContainerGroupPoolStatus.md)
Get a StandbyContainerGroupPoolRuntimeViewResource

### [Get-AzStandbyVMPool](Get-AzStandbyVMPool.md)
Get a StandbyVirtualMachinePoolResource

### [Get-AzStandbyVMPoolVM](Get-AzStandbyVMPoolVM.md)
Get a StandbyVirtualMachineResource
### [Get-AzStandbyVMPoolStatus](Get-AzStandbyVMPoolStatus.md)
Get a StandbyVirtualMachinePoolRuntimeViewResource

### [New-AzStandbyContainerGroupPool](New-AzStandbyContainerGroupPool.md)
Create a StandbyContainerGroupPoolResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Get a StandbyContainerGroupPoolResource

## EXAMPLES

### Example 1: Get a standby container pool
### Example 1: Get a standby container group pool
```powershell
Get-AzStandbyContainerGroupPool `
-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
Expand Down Expand Up @@ -72,7 +72,7 @@ Tag : {
Type : microsoft.standbypool/standbycontainergrouppools
```

Above command is getting a standby container pool.
Above command is getting a standby container group pool.

## PARAMETERS

Expand Down
Loading