Skip to content

Commit 2b72fe9

Browse files
azure-pipelines[bot]azure-powershell-botvidai-msft
authored
Migrate ElasticSan from generation to main (#26615)
* Move ElasticSan to main * Update ChangeLog.md --------- Co-authored-by: azure-powershell-bot <[email protected]> Co-authored-by: Vincent Dai <[email protected]>
1 parent 693e5da commit 2b72fe9

File tree

62 files changed

+501
-214
lines changed

Some content is hidden

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

62 files changed

+501
-214
lines changed

src/ElasticSan/ElasticSan.Autorest/build-module.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) {
7575
$binFolder = Join-Path $PSScriptRoot 'bin'
7676
$objFolder = Join-Path $PSScriptRoot 'obj'
7777

78+
$isAzure = [System.Convert]::ToBoolean('true')
79+
7880
if(-not $Debugger) {
7981
Write-Host -ForegroundColor Green 'Cleaning build folders...'
8082
$null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
@@ -151,7 +153,7 @@ if($NoDocs) {
151153
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
152154
}
153155
$null = New-Item -ItemType Directory -Force -Path $docsFolder
154-
$addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true')
156+
$addComplexInterfaceInfo = !$isAzure
155157
Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo
156158
}
157159

@@ -186,5 +188,4 @@ if (-not $DisableAfterBuildTasks){
186188
}
187189
}
188190

189-
190-
Write-Host -ForegroundColor Green '-------------Done-------------'
191+
Write-Host -ForegroundColor Green '-------------Done-------------'

src/ElasticSan/ElasticSan.Autorest/custom/New-AzElasticSanVolumeGroup.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ function New-AzElasticSanVolumeGroup {
125125
${EncryptionUserAssignedIdentity},
126126

127127
[Parameter()]
128-
[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.")]
129128
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned")]
130129
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
131130
[System.String]

src/ElasticSan/ElasticSan.Autorest/custom/Update-AzElasticSanVolumeGroup.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ function Update-AzElasticSanVolumeGroup {
125125
${EncryptionUserAssignedIdentity},
126126

127127
[Parameter()]
128-
[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.")]
129128
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "SystemAssigned", "UserAssigned")]
130129
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
131130
[System.String]

src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Create ElasticSan.
19+
create ElasticSan.
2020
.Description
21-
Create ElasticSan.
21+
create ElasticSan.
2222
.Example
2323
New-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 1 -ExtendedCapacitySizeTib 6 -Location eastus -SkuName 'Premium_LRS' -Tag @{tag1="value1";tag2="value2"}
2424

src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Create a Volume.
19+
create a Volume.
2020
.Description
21-
Create a Volume.
21+
create a Volume.
2222
.Example
2323
New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolumegroup -SizeGib 100 -CreationDataSourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnapshot'
2424

src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Create a Volume Snapshot.
19+
create a Volume Snapshot.
2020
.Description
21-
Create a Volume Snapshot.
21+
create a Volume Snapshot.
2222
.Example
2323
$volume = New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGiB 1
2424
New-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -CreationDataSourceId $volume.Id -Name mysnapshot

src/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@ end {
11281128

11291129
<#
11301130
.Synopsis
1131-
Create a Volume Snapshot.
1131+
create a Volume Snapshot.
11321132
.Description
1133-
Create a Volume Snapshot.
1133+
create a Volume Snapshot.
11341134
.Example
11351135
$volume = New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGiB 1
11361136
New-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -CreationDataSourceId $volume.Id -Name mysnapshot
@@ -1394,9 +1394,9 @@ end {
13941394

13951395
<#
13961396
.Synopsis
1397-
Create a Volume.
1397+
create a Volume.
13981398
.Description
1399-
Create a Volume.
1399+
create a Volume.
14001400
.Example
14011401
New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolumegroup -SizeGib 100 -CreationDataSourceId '/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnapshot'
14021402
@@ -1673,9 +1673,9 @@ end {
16731673

16741674
<#
16751675
.Synopsis
1676-
Create ElasticSan.
1676+
create ElasticSan.
16771677
.Description
1678-
Create ElasticSan.
1678+
create ElasticSan.
16791679
.Example
16801680
New-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 1 -ExtendedCapacitySizeTib 6 -Location eastus -SkuName 'Premium_LRS' -Tag @{tag1="value1";tag2="value2"}
16811681
@@ -2935,9 +2935,9 @@ end {
29352935

29362936
<#
29372937
.Synopsis
2938-
Update an Volume.
2938+
update an Volume.
29392939
.Description
2940-
Update an Volume.
2940+
update an Volume.
29412941
.Example
29422942
$volume = Update-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGib 120
29432943
@@ -3199,9 +3199,9 @@ end {
31993199

32003200
<#
32013201
.Synopsis
3202-
Update a Elastic San.
3202+
update a Elastic San.
32033203
.Description
3204-
Update a Elastic San.
3204+
update a Elastic San.
32053205
.Example
32063206
$elasticSan = Update-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 64 -ExtendedCapacitySizeTib 128 -Tag @{"tag3" = "value3"}
32073207

src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Update a Elastic San.
19+
update a Elastic San.
2020
.Description
21-
Update a Elastic San.
21+
update a Elastic San.
2222
.Example
2323
$elasticSan = Update-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 64 -ExtendedCapacitySizeTib 128 -Tag @{"tag3" = "value3"}
2424

src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
<#
1818
.Synopsis
19-
Update an Volume.
19+
update an Volume.
2020
.Description
21-
Update an Volume.
21+
update an Volume.
2222
.Example
2323
$volume = Update-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGib 120
2424

0 commit comments

Comments
 (0)