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.
Feature standbypool powershell init (Azure#24604)
* new standby pool cmdlets. * change cmdlets and fix ci issue. * fix ci. * documentation.
- Loading branch information
1 parent
f11b1c3
commit eaf2ecf
Showing
43 changed files
with
3,988 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
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,16 @@ | ||
bin | ||
obj | ||
.vs | ||
generated | ||
internal | ||
exports | ||
tools | ||
custom/*.psm1 | ||
custom/autogen-model-cmdlets | ||
test/*-TestResults.xml | ||
/*.ps1 | ||
/*.ps1xml | ||
/*.psm1 | ||
/*.snk | ||
/*.csproj | ||
/*.nuspec |
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,23 @@ | ||
@{ | ||
GUID = 'bb1182ed-2a39-47be-8b39-46b13e973cea' | ||
RootModule = './Az.StandbyPool.psm1' | ||
ModuleVersion = '0.1.0' | ||
CompatiblePSEditions = 'Core', 'Desktop' | ||
Author = 'Microsoft Corporation' | ||
CompanyName = 'Microsoft Corporation' | ||
Copyright = 'Microsoft Corporation. All rights reserved.' | ||
Description = 'Microsoft Azure PowerShell: StandbyPool cmdlets' | ||
PowerShellVersion = '5.1' | ||
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' | ||
PrivateData = @{ | ||
PSData = @{ | ||
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StandbyPool' | ||
LicenseUri = 'https://aka.ms/azps-license' | ||
ProjectUri = 'https://github.com/Azure/azure-powershell' | ||
ReleaseNotes = '' | ||
} | ||
} | ||
} |
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,151 @@ | ||
<!-- region Generated --> | ||
# Az.StandbyPool | ||
This directory contains the PowerShell module for the StandbyPool service. | ||
|
||
--- | ||
## Info | ||
- Modifiable: yes | ||
- Generated: all | ||
- Committed: yes | ||
- Packaged: yes | ||
|
||
--- | ||
## Detail | ||
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension. | ||
|
||
## Module Requirements | ||
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater | ||
|
||
## Authentication | ||
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent. | ||
|
||
## Development | ||
For information on how to develop for `Az.StandbyPool`, see [how-to.md](how-to.md). | ||
<!-- endregion --> | ||
|
||
### AutoRest Configuration | ||
> see https://aka.ms/autorest | ||
```yaml | ||
# pin the swagger version by using the commit id instead of branch name | ||
commit: 5cbd7c23897da22f52da4f02534b2819abe9f761 | ||
require: | ||
# readme.azure.noprofile.md is the common configuration file | ||
- $(this-folder)/../../readme.azure.noprofile.md | ||
- $(repo)/specification/standbypool/resource-manager/readme.md | ||
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally | ||
# - (this-folder)/relative-path-to-your-local-readme.md | ||
|
||
try-require: | ||
- $(repo)/specification/standbypool/resource-manager/readme.powershell.md | ||
|
||
# For new RP, the version is 0.1.0 | ||
module-version: 0.1.0 | ||
# Normally, title is the service name | ||
title: StandbyPool | ||
subject-prefix: Standby | ||
|
||
directive: | ||
# Following are common directives which are normally required in all the RPs | ||
# 1. Remove the unexpanded parameter set | ||
# 2. For New-* cmdlets, ViaIdentity is not required | ||
# Following two directives are v4 specific | ||
- where: | ||
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) | ||
remove: true | ||
- where: | ||
variant: ^CreateViaIdentity.*$ | ||
remove: true | ||
|
||
# Rename StandbyVirtualMachinePool to StandbyVMPool | ||
- where: | ||
verb: Get|New|Update|Remove | ||
subject: StandbyVirtualMachinePool | ||
set: | ||
subject: StandbyVMPool | ||
|
||
# Rename StandbyVirtualMachine to StandbyVM | ||
- where: | ||
verb: Get | ||
subject: StandbyVirtualMachine | ||
set: | ||
subject: StandbyVMPoolVM | ||
|
||
# Rename standby container group pool parameters | ||
- where: | ||
verb: New|Update | ||
subject: StandbyContainerGroupPool | ||
parameter-name: ContainerGroupProfileId | ||
set: | ||
parameter-name: ContainerProfileId | ||
|
||
- where: | ||
verb: New|Update | ||
subject: StandbyContainerGroupPool | ||
parameter-name: ContainerGroupProfileRevision | ||
set: | ||
parameter-name: ProfileRevision | ||
|
||
- where: | ||
verb: New|Update | ||
subject: StandbyContainerGroupPool | ||
parameter-name: ElasticityProfileMaxReadyCapacity | ||
set: | ||
parameter-name: MaxReadyCapacity | ||
|
||
- where: | ||
verb: New|Update | ||
subject: StandbyContainerGroupPool | ||
parameter-name: ElasticityProfileRefillPolicy | ||
set: | ||
parameter-name: RefillPolicy | ||
|
||
- where: | ||
verb: New|Update | ||
subject: StandbyContainerGroupPool | ||
parameter-name: ContainerGroupPropertySubnetId | ||
set: | ||
parameter-name: SubnetId | ||
|
||
# Rename standby virtual machine pool parameters | ||
- where: | ||
verb: New|Update | ||
subject: StandbyVMPool | ||
parameter-name: AttachedVirtualMachineScaleSetId | ||
set: | ||
parameter-name: VMSSId | ||
|
||
- where: | ||
verb: New|Update | ||
subject: StandbyVMPool | ||
parameter-name: ElasticityProfileMaxReadyCapacity | ||
set: | ||
parameter-name: MaxReadyCapacity | ||
|
||
- 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 | ||
|
||
# Remove the set-* cmdlet | ||
- where: | ||
verb: Set | ||
remove: true | ||
``` |
85 changes: 85 additions & 0 deletions
85
...StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.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,85 @@ | ||
{ | ||
"resourceType": "standbyContainerGroupPools", | ||
"apiVersion": "2023-12-01-preview", | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.standbypool" | ||
}, | ||
"commands": [ | ||
{ | ||
"name": "Get-AzStandbyContainerGroupPool", | ||
"description": "Get a StandbyContainerGroupPoolResource", | ||
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}", | ||
"help": { | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbycontainergrouppool" | ||
}, | ||
"parameterSets": [ | ||
{ | ||
"parameters": [ | ||
"-Name <String>", | ||
"-ResourceGroupName <String>", | ||
"[-SubscriptionId <String[]>]" | ||
] | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"description": "Get a StandbyContainerGroupPoolResource", | ||
"parameters": [ | ||
{ | ||
"name": "-Name", | ||
"value": "[Path.standbyContainerGroupPoolName]" | ||
}, | ||
{ | ||
"name": "-ResourceGroupName", | ||
"value": "[Path.resourceGroupName]" | ||
}, | ||
{ | ||
"name": "-SubscriptionId", | ||
"value": "[Path.subscriptionId]" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "Remove-AzStandbyContainerGroupPool", | ||
"description": "Delete a StandbyContainerGroupPoolResource", | ||
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyContainerGroupPoolName}", | ||
"help": { | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.standbypool/remove-azstandbycontainergrouppool" | ||
}, | ||
"parameterSets": [ | ||
{ | ||
"parameters": [ | ||
"-Name <String>", | ||
"-ResourceGroupName <String>", | ||
"[-SubscriptionId <String>]" | ||
] | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"description": "Delete a StandbyContainerGroupPoolResource", | ||
"parameters": [ | ||
{ | ||
"name": "-Name", | ||
"value": "[Path.standbyContainerGroupPoolName]" | ||
}, | ||
{ | ||
"name": "-ResourceGroupName", | ||
"value": "[Path.resourceGroupName]" | ||
}, | ||
{ | ||
"name": "-SubscriptionId", | ||
"value": "[Path.subscriptionId]" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
52 changes: 52 additions & 0 deletions
52
....Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-standbyVirtualMachines.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,52 @@ | ||
{ | ||
"resourceType": "standbyVirtualMachinePools/standbyVirtualMachines", | ||
"apiVersion": "2023-12-01-preview", | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.standbypool" | ||
}, | ||
"commands": [ | ||
{ | ||
"name": "Get-AzStandbyVMPoolVM", | ||
"description": "Get a StandbyVirtualMachineResource", | ||
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}/standbyVirtualMachines/{standbyVirtualMachineName}", | ||
"help": { | ||
"learnMore": { | ||
"url": "https://learn.microsoft.com/powershell/module/az.standbypool/get-azstandbyvmpoolvm" | ||
}, | ||
"parameterSets": [ | ||
{ | ||
"parameters": [ | ||
"-Name <String>", | ||
"-ResourceGroupName <String>", | ||
"[-SubscriptionId <String[]>]", | ||
"-VMName <String>" | ||
] | ||
} | ||
] | ||
}, | ||
"examples": [ | ||
{ | ||
"description": "Get a StandbyVirtualMachineResource", | ||
"parameters": [ | ||
{ | ||
"name": "-Name", | ||
"value": "[Path.standbyVirtualMachinePoolName]" | ||
}, | ||
{ | ||
"name": "-ResourceGroupName", | ||
"value": "[Path.resourceGroupName]" | ||
}, | ||
{ | ||
"name": "-SubscriptionId", | ||
"value": "[Path.subscriptionId]" | ||
}, | ||
{ | ||
"name": "-VMName", | ||
"value": "[Path.standbyVirtualMachineName]" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.