Skip to content
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
4 changes: 2 additions & 2 deletions src/ElasticSan/ElasticSan.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ElasticSan")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.4.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.4.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
48 changes: 46 additions & 2 deletions src/ElasticSan/ElasticSan.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ For information on how to develop for `Az.ElasticSan`, see [how-to.md](how-to.md

``` yaml
# Please specify the commit id that includes your features to make sure generated codes stable.
commit: 72c69a0cf561d41ae99fe6810c426a874d3a8372
commit: bcacfd106d182630f9a9d1ee4837d1b32da5bc1b
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/elasticsan.json
- $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/ElasticSan/stable/2025-09-01/elasticsan.json

# Normally, title is the service name
title: ElasticSan
Expand Down Expand Up @@ -109,6 +109,18 @@ directive:
subject: VolumeSnapshot
verb: Update
remove: true
- where:
verb: Backup
subject: VolumePre
set:
verb: Test
subject: VolumeBackup
- where:
verb: Restore
subject: VolumePre
set:
verb: Test
subject: VolumeRestore
- where:
parameter-name: EncryptionIdentityEncryptionUserAssignedIdentity
set:
Expand All @@ -125,6 +137,38 @@ directive:
parameter-name: KeyVaultPropertyKeyVersion
set:
parameter-name: KeyVersion
- where:
parameter-name: ScaleUpPropertyAutoScalePolicyEnforcement
set:
parameter-name: AutoScalePolicyEnforcement
- where:
parameter-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
set:
parameter-name: CapacityUnitScaleUpLimitTiB
- where:
parameter-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
set:
parameter-name: IncreaseCapacityUnitByTiB
- where:
parameter-name: ScaleUpPropertyUnusedSizeTiB
set:
parameter-name: UnusedSizeTiB
- where:
property-name: ScaleUpPropertyAutoScalePolicyEnforcement
set:
property-name: AutoScalePolicyEnforcement
- where:
property-name: ScaleUpPropertyCapacityUnitScaleUpLimitTiB
set:
property-name: CapacityUnitScaleUpLimitTiB
- where:
property-name: ScaleUpPropertyIncreaseCapacityUnitByTiB
set:
property-name: IncreaseCapacityUnitByTiB
- where:
property-name: ScaleUpPropertyUnusedSizeTiB
set:
property-name: UnusedSizeTiB
# Change the description of cmdlets that correspond to multiple APIs
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}"].get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "elasticSans/volumegroups/snapshots",
"apiVersion": "2024-05-01",
"apiVersion": "2025-09-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/volumes",
"apiVersion": "2024-05-01",
"apiVersion": "2025-09-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": "2024-05-01",
"apiVersion": "2025-09-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": "2024-05-01",
"apiVersion": "2025-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.elasticsan"
},
Expand Down
25 changes: 25 additions & 0 deletions src/ElasticSan/ElasticSan.Autorest/custom/New-AzElasticSan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,31 @@ param(
# The sku name.
${SkuName},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.PSArgumentCompleterAttribute("None", "Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.String]
# Enable or Disable scale up setting on Elastic San Appliance.
${AutoScalePolicyEnforcement},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.Int64]
# Maximum scale up size on Elastic San appliance in TiB.
${CapacityUnitScaleUpLimitTiB},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.Int64]
# Unit to increase Capacity Unit on Elastic San appliance in TiB.
${IncreaseCapacityUnitByTiB},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
[System.Int64]
# Unused size on Elastic San appliance in TiB.
${UnusedSizeTiB},

[Parameter()]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')]
Expand Down
18 changes: 12 additions & 6 deletions src/ElasticSan/ElasticSan.Autorest/docs/Az.ElasticSan.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.ElasticSan
Module Guid: ffcb466a-f0cf-4285-bdad-8a1bbeebe0c4
Module Guid: 456b0445-36ce-4b34-8599-4a4c894f5d1d
Download Help Link: https://learn.microsoft.com/powershell/module/az.elasticsan
Help Version: 1.0.0.0
Locale: en-US
Expand Down Expand Up @@ -30,19 +30,19 @@ Get either a list of all volume groups from an Elastic SAN or get a single volum
Get a Volume Snapshot.

### [New-AzElasticSan](New-AzElasticSan.md)
create ElasticSan.
Create ElasticSan.

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

### [New-AzElasticSanVolume](New-AzElasticSanVolume.md)
create a Volume.
Create a Volume.

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

### [New-AzElasticSanVolumeSnapshot](New-AzElasticSanVolumeSnapshot.md)
create a Volume Snapshot.
Create a Volume Snapshot.

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

### [Test-AzElasticSanVolumeBackup](Test-AzElasticSanVolumeBackup.md)
Validate whether a disk snapshot backup can be taken for list of volumes.

### [Test-AzElasticSanVolumeRestore](Test-AzElasticSanVolumeRestore.md)
Validate whether a list of backed up disk snapshots can be restored into ElasticSan volumes.

### [Update-AzElasticSan](Update-AzElasticSan.md)
update a Elastic San.
Update a Elastic San.

### [Update-AzElasticSanVolume](Update-AzElasticSanVolume.md)
update an Volume.
Update an Volume.

### [Update-AzElasticSanVolumeGroup](Update-AzElasticSanVolumeGroup.md)
Update an VolumeGroup.
Expand Down
Loading
Loading