Skip to content

Commit

Permalink
Add breaking change warnings for MI changes (#25889)
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanz7 authored Aug 21, 2024
1 parent 94ffdec commit f0cc3c1
Show file tree
Hide file tree
Showing 22 changed files with 118 additions and 36 deletions.
3 changes: 0 additions & 3 deletions src/ElasticSan/ElasticSan.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 ElasticSan service.

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

## Info
- Modifiable: yes
- Generated: all
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"resourceType": "elasticSans/volumegroups/snapshots",
"apiVersion": "2023-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
},
"commands": [
{
"name": "Get-AzElasticSanVolumeSnapshot",
"description": "Get a Volume Snapshot.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolumesnapshot"
},
"parameterSets": [
{
"parameters": [
"-ElasticSanName <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]",
"-VolumeGroupName <String>"
]
}
]
},
"examples": [
{
"description": "Get a Volume Snapshot.",
"parameters": [
{
"name": "-ElasticSanName",
"value": "[Path.elasticSanName]"
},
{
"name": "-Name",
"value": "[Path.snapshotName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
},
{
"name": "-VolumeGroupName",
"value": "[Path.volumeGroupName]"
}
]
}
]
},
{
"name": "Remove-AzElasticSanVolumeSnapshot",
"description": "Delete a Volume Snapshot.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/snapshots/{snapshotName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumesnapshot"
},
"parameterSets": [
{
"parameters": [
"-ElasticSanName <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]",
"-VolumeGroupName <String>"
]
}
]
},
"examples": [
{
"description": "Delete a Volume Snapshot.",
"parameters": [
{
"name": "-ElasticSanName",
"value": "[Path.elasticSanName]"
},
{
"name": "-Name",
"value": "[Path.snapshotName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
},
{
"name": "-VolumeGroupName",
"value": "[Path.volumeGroupName]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "elasticSans/volumegroups/volumes",
"apiVersion": "2022-12-01-preview",
"apiVersion": "2023-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "elasticSans/volumegroups",
"apiVersion": "2022-12-01-preview",
"apiVersion": "2023-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "elasticSans",
"apiVersion": "2022-12-01-preview",
"apiVersion": "2023-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function New-AzElasticSanVolumeGroup {
${EncryptionUserAssignedIdentity},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function Update-AzElasticSanVolumeGroup {
${EncryptionUserAssignedIdentity},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.ParameterBreakingChange("IdentityType", "13.0.0", "2.0.0", "2024/11/19", ChangeDescription="IdentityType will be removed. EnableSystemAssignedIdentity will be used to enable/disable system assigned identity and UserAssignedIdentity will be used to specify user assigned identities.")]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned")]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.String]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -175,7 +174,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -237,7 +235,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -156,7 +155,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -215,7 +214,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -277,7 +275,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -172,7 +171,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -264,7 +262,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -152,7 +151,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -229,7 +227,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -152,7 +151,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -244,7 +242,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -109,7 +108,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -116,7 +115,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -208,7 +206,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ Accept wildcard characters: False
### -ElasticSanInputObject
Identity Parameter
To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -137,7 +136,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down Expand Up @@ -229,7 +227,6 @@ Accept wildcard characters: False
### -VolumegroupInputObject
Identity Parameter
To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity
Expand Down
2 changes: 1 addition & 1 deletion src/ElasticSan/ElasticSan.Autorest/test/loadEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
$env = @{}
if (Test-Path -Path $envFilePath) {
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
$PSDefaultParameterValues=@{"*:SubscriptionId"=$env.SubscriptionId; "*:Tenant"=$env.Tenant}
$PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant}
}
Loading

0 comments on commit f0cc3c1

Please sign in to comment.