Skip to content

Commit ed61c52

Browse files
authored
[ElasticSan] Support autoscale, prerestore, and prebackup (#28772)
1 parent 987d3cd commit ed61c52

File tree

54 files changed

+4688
-2077
lines changed

Some content is hidden

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

54 files changed

+4688
-2077
lines changed

src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ElasticSan")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/ElasticSan/ElasticSan.Autorest/README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ For information on how to develop for `Az.ElasticSan`, see [how-to.md](how-to.md
2828
2929
``` yaml
3030
# Please specify the commit id that includes your features to make sure generated codes stable.
31-
commit: 72c69a0cf561d41ae99fe6810c426a874d3a8372
31+
commit: bcacfd106d182630f9a9d1ee4837d1b32da5bc1b
3232
require:
3333
- $(this-folder)/../../readme.azure.noprofile.md
3434
input-file:
35-
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/elasticsan.json
35+
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/ElasticSan/stable/2025-09-01/elasticsan.json
3636

3737
# Normally, title is the service name
3838
title: ElasticSan
@@ -109,6 +109,18 @@ directive:
109109
subject: VolumeSnapshot
110110
verb: Update
111111
remove: true
112+
- where:
113+
verb: Backup
114+
subject: VolumePre
115+
set:
116+
verb: Test
117+
subject: VolumeBackup
118+
- where:
119+
verb: Restore
120+
subject: VolumePre
121+
set:
122+
verb: Test
123+
subject: VolumeRestore
112124
- where:
113125
parameter-name: EncryptionIdentityEncryptionUserAssignedIdentity
114126
set:
@@ -125,6 +137,38 @@ directive:
125137
parameter-name: KeyVaultPropertyKeyVersion
126138
set:
127139
parameter-name: KeyVersion
140+
- where:
141+
parameter-name: ScaleUpPropertyAutoScalePolicyEnforcement
142+
set:
143+
parameter-name: AutoScalePolicyEnforcement
144+
- where:
145+
parameter-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
146+
set:
147+
parameter-name: CapacityUnitScaleUpLimitTiB
148+
- where:
149+
parameter-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
150+
set:
151+
parameter-name: IncreaseCapacityUnitByTiB
152+
- where:
153+
parameter-name: ScaleUpPropertyUnusedSizeTiB
154+
set:
155+
parameter-name: UnusedSizeTiB
156+
- where:
157+
property-name: ScaleUpPropertyAutoScalePolicyEnforcement
158+
set:
159+
property-name: AutoScalePolicyEnforcement
160+
- where:
161+
property-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
162+
set:
163+
property-name: CapacityUnitScaleUpLimitTiB
164+
- where:
165+
property-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
166+
set:
167+
property-name: IncreaseCapacityUnitByTiB
168+
- where:
169+
property-name: ScaleUpPropertyUnusedSizeTiB
170+
set:
171+
property-name: UnusedSizeTiB
128172
# Change the description of cmdlets that correspond to multiple APIs
129173
- from: swagger-document
130174
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}"].get

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups-snapshots.json

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

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups-volumes.json

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

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans-volumegroups.json

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

src/ElasticSan/ElasticSan.Autorest/UX/Microsoft.ElasticSan/elasticSans.json

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

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,31 @@ param(
8787
# The sku name.
8888
${SkuName},
8989

90+
[Parameter()]
91+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "Enabled", "Disabled")]
92+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
93+
[System.String]
94+
# Enable or Disable scale up setting on Elastic San Appliance.
95+
${AutoScalePolicyEnforcement},
96+
97+
[Parameter()]
98+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
99+
[System.Int64]
100+
# Maximum scale up size on Elastic San appliance in TiB.
101+
${CapacityUnitScaleUpLimitTiB},
102+
103+
[Parameter()]
104+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
105+
[System.Int64]
106+
# Unit to increase Capacity Unit on Elastic San appliance in TiB.
107+
${IncreaseCapacityUnitByTiB},
108+
109+
[Parameter()]
110+
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
111+
[System.Int64]
112+
# Unused size on Elastic San appliance in TiB.
113+
${UnusedSizeTiB},
114+
90115
[Parameter()]
91116
[AllowEmptyCollection()]
92117
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]

src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.ElasticSan
3-
Module Guid: ffcb466a-f0cf-4285-bdad-8a1bbeebe0c4
3+
Module Guid: 456b0445-36ce-4b34-8599-4a4c894f5d1d
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.elasticsan
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -30,19 +30,19 @@ Get either a list of all volume groups from an Elastic SAN or get a single volum
3030
Get a Volume Snapshot.
3131

3232
### [New-AzElasticSan](New-AzElasticSan.md)
33-
create ElasticSan.
33+
Create ElasticSan.
3434

3535
### [New-AzElasticSanVirtualNetworkRuleObject](New-AzElasticSanVirtualNetworkRuleObject.md)
3636
Create an in-memory object for VirtualNetworkRule.
3737

3838
### [New-AzElasticSanVolume](New-AzElasticSanVolume.md)
39-
create a Volume.
39+
Create a Volume.
4040

4141
### [New-AzElasticSanVolumeGroup](New-AzElasticSanVolumeGroup.md)
4242
Create a Volume Group.
4343

4444
### [New-AzElasticSanVolumeSnapshot](New-AzElasticSanVolumeSnapshot.md)
45-
create a Volume Snapshot.
45+
Create a Volume Snapshot.
4646

4747
### [Remove-AzElasticSan](Remove-AzElasticSan.md)
4848
Delete a Elastic San.
@@ -59,11 +59,17 @@ Remove a list of virtual network rules from a VolumeGroup
5959
### [Remove-AzElasticSanVolumeSnapshot](Remove-AzElasticSanVolumeSnapshot.md)
6060
Delete a Volume Snapshot.
6161

62+
### [Test-AzElasticSanVolumeBackup](Test-AzElasticSanVolumeBackup.md)
63+
Validate whether a disk snapshot backup can be taken for list of volumes.
64+
65+
### [Test-AzElasticSanVolumeRestore](Test-AzElasticSanVolumeRestore.md)
66+
Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.
67+
6268
### [Update-AzElasticSan](Update-AzElasticSan.md)
63-
update a Elastic San.
69+
Update a Elastic San.
6470

6571
### [Update-AzElasticSanVolume](Update-AzElasticSanVolume.md)
66-
update an Volume.
72+
Update an Volume.
6773

6874
### [Update-AzElasticSanVolumeGroup](Update-AzElasticSanVolumeGroup.md)
6975
Update an VolumeGroup.

0 commit comments

Comments
 (0)