Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature standbypool powershell init #24604

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions documentation/azure-powershell-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Service Bus | `Az.ServiceBus`
Service Fabric | `Az.ServiceFabric` | [![ServiceFabric]][ServiceFabricGallery]
SignalR | `Az.SignalR` | [![SignalR]][SignalRGallery]
SQL | `Az.Sql` | [![Sql]][SqlGallery]
Standby Pool | `Az.StandbyPool` | [![StandbyPool]][StandbyPoolGallery]
Storage | `Az.Storage` | [![Storage]][StorageGallery]
File Sync | `Az.StorageSync` | [![StorageSync]][StorageSyncGallery]
Stream Analytics | `Az.StreamAnalytics` | [![StreamAnalytics]][StreamAnalyticsGallery]
Expand Down Expand Up @@ -127,6 +128,7 @@ Web App Service | `Az.Websites`
[ServiceFabric]: https://img.shields.io/powershellgallery/v/Az.ServiceFabric.svg?style=flat-square&label=Az.ServiceFabric
[SignalR]: https://img.shields.io/powershellgallery/v/Az.SignalR.svg?style=flat-square&label=Az.SignalR
[Sql]: https://img.shields.io/powershellgallery/v/Az.Sql.svg?style=flat-square&label=Az.Sql
[StandbyPool]: https://img.shields.io/powershellgallery/v/Az.StandbyPool.svg?style=flat-square&label=Az.StandbyPool
[Storage]: https://img.shields.io/powershellgallery/v/Az.Storage.svg?style=flat-square&label=Az.Storage
[StorageSync]: https://img.shields.io/powershellgallery/v/Az.StorageSync.svg?style=flat-square&label=Az.StorageSync
[StreamAnalytics]: https://img.shields.io/powershellgallery/v/Az.StreamAnalytics.svg?style=flat-square&label=Az.StreamAnalytics
Expand Down Expand Up @@ -189,6 +191,7 @@ Web App Service | `Az.Websites`
[ServiceFabricGallery]: https://www.powershellgallery.com/packages/Az.ServiceFabric/
[SignalRGallery]: https://www.powershellgallery.com/packages/Az.SignalR/
[SqlGallery]: https://www.powershellgallery.com/packages/Az.Sql/
[StandbyPoolGallery]: https://www.powershellgallery.com/packages/Az.StandbyPool/
[StorageGallery]: https://www.powershellgallery.com/packages/Az.Storage/
[StorageSyncGallery]: https://www.powershellgallery.com/packages/Az.StorageSync/
[StreamAnalyticsGallery]: https://www.powershellgallery.com/packages/Az.StreamAnalytics/
Expand Down
1 change: 1 addition & 0 deletions src/StandbyPool/StandbyPool.Autorest/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
16 changes: 16 additions & 0 deletions src/StandbyPool/StandbyPool.Autorest/.gitignore
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
23 changes: 23 additions & 0 deletions src/StandbyPool/StandbyPool.Autorest/Az.StandbyPool.psd1
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 = ''
}
}
}
151 changes: 151 additions & 0 deletions src/StandbyPool/StandbyPool.Autorest/README.md
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
```
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]"
}
]
}
]
}
]
}
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]"
}
]
}
]
}
]
}
Loading