Skip to content

Commit cb824b8

Browse files
carlosh-msft2025Carlos Hinojosa Cavada
andauthored
StandbyPool 2025-03-01 SDK release (#27616)
Co-authored-by: Carlos Hinojosa Cavada <[email protected]>
1 parent d7f209b commit cb824b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+648
-394
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StandbyPool")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/StandbyPool/StandbyPool.Autorest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ For information on how to develop for `Az.StandbyPool`, see [how-to.md](how-to.m
2828
2929
```yaml
3030
# pin the swagger version by using the commit id instead of branch name
31-
commit: 1866fc3609f55fad6a5e74a9b206ae4ca144c03a
32-
tag: package-2024-03
31+
commit: 88735540206d3393d194f4e1cc1aa2daac65af8a
32+
# tag: package-2024-03
3333
require:
3434
# readme.azure.noprofile.md is the common configuration file
3535
- $(this-folder)/../../readme.azure.noprofile.md

src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools-runtimeViews.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "standbyContainerGroupPools/runtimeViews",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
66
},

src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyContainerGroupPools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "standbyContainerGroupPools",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
66
},

src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools-runtimeViews.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "standbyVirtualMachinePools/runtimeViews",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
66
},

src/StandbyPool/StandbyPool.Autorest/UX/Microsoft.StandbyPool/standbyVirtualMachinePools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "standbyVirtualMachinePools",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-03-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.standbypool"
66
},

src/StandbyPool/StandbyPool.Autorest/custom/Az.StandbyPool.custom.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# region Generated
22
# Load the private module dll
3-
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.StandbyPool.private.dll')
3+
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.StandbyPool.private.dll')
44

55
# Load the internal module
6-
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.StandbyPool.internal.psm1'
6+
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.StandbyPool.internal.psm1'
77
if(Test-Path $internalModulePath) {
88
$null = Import-Module -Name $internalModulePath
99
}

src/StandbyPool/StandbyPool.Autorest/custom/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Custom
2-
This directory contains custom implementation for non-generated cmdlets for the `Az.StandbyPool` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.StandbyPool.custom.psm1`. This file should not be modified.
2+
This directory contains custom implementation for non-generated cmdlets for the `Az.StandbyPool` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.StandbyPool.custom.psm1`. This file should not be modified.
33

44
## Info
55
- Modifiable: yes
@@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle
1515
For script cmdlets, these are loaded via the `Az.StandbyPool.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
1616

1717
## Purpose
18-
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
18+
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder.
1919

2020
## Usage
21-
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
21+
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
2222
- Break
2323
- DefaultProfile
2424
- HttpPipelineAppend
@@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes:
3636
- `Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.StandbyPool`.
3838
- `Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.InternalExportAttribute`
39-
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.StandbyPool`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
39+
- Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.StandbyPool`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
4040
- `Microsoft.Azure.PowerShell.Cmdlets.StandbyPool.ProfileAttribute`
4141
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

src/StandbyPool/StandbyPool.Autorest/docs/Az.StandbyPool.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.StandbyPool
3-
Module Guid: bb1182ed-2a39-47be-8b39-46b13e973cea
3+
Module Guid: 906124f0-0d0b-43ea-a3f8-27a8a5ed0afa
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.standbypool
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -24,10 +24,10 @@ Get a StandbyVirtualMachinePoolResource
2424
Get a StandbyVirtualMachinePoolRuntimeViewResource
2525

2626
### [New-AzStandbyContainerGroupPool](New-AzStandbyContainerGroupPool.md)
27-
Create a StandbyContainerGroupPoolResource
27+
create a StandbyContainerGroupPoolResource
2828

2929
### [New-AzStandbyVMPool](New-AzStandbyVMPool.md)
30-
Create a StandbyVirtualMachinePoolResource
30+
create a StandbyVirtualMachinePoolResource
3131

3232
### [Remove-AzStandbyContainerGroupPool](Remove-AzStandbyContainerGroupPool.md)
3333
Delete a StandbyContainerGroupPoolResource
@@ -36,8 +36,8 @@ Delete a StandbyContainerGroupPoolResource
3636
Delete a StandbyVirtualMachinePoolResource
3737

3838
### [Update-AzStandbyContainerGroupPool](Update-AzStandbyContainerGroupPool.md)
39-
Update a StandbyContainerGroupPoolResource
39+
update a StandbyContainerGroupPoolResource
4040

4141
### [Update-AzStandbyVMPool](Update-AzStandbyVMPool.md)
42-
Update a StandbyVirtualMachinePoolResource
42+
update a StandbyVirtualMachinePoolResource
4343

src/StandbyPool/StandbyPool.Autorest/docs/Get-AzStandbyContainerGroupPool.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ SystemDataLastModifiedByType : User
7070
Tag : {
7171
}
7272
Type : microsoft.standbypool/standbycontainergrouppools
73+
Zone : {1}
7374
```
7475

7576
Above command is getting a standby container group pool.

0 commit comments

Comments
 (0)