diff --git a/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psd1 b/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psd1 index 1378d8c6c7e8..df670c3e3189 100644 --- a/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psd1 +++ b/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psd1 @@ -1,141 +1,23 @@ -# -# Module manifest for module 'Az.ElasticSan' -# -# Generated by: Microsoft Corporation -# -# Generated on: 10/12/2023 -# - @{ - -# Script module or binary module file associated with this manifest. -RootModule = './Az.ElasticSan.psm1' - -# Version number of this module. -ModuleVersion = '0.1.2' - -# Supported PSEditions -CompatiblePSEditions = 'Core', 'Desktop' - -# ID used to uniquely identify this module -GUID = 'ed90c36c-f150-4ad2-96ae-57e0ebb0a376' - -# Author of this module -Author = 'Microsoft Corporation' - -# Company or vendor of this module -CompanyName = 'Microsoft Corporation' - -# Copyright statement for this module -Copyright = 'Microsoft Corporation. All rights reserved.' - -# Description of the functionality provided by this module -Description = 'Microsoft Azure PowerShell: ElasticSan cmdlets' - -# Minimum version of the PowerShell engine required by this module -PowerShellVersion = '5.1' - -# Name of the PowerShell host required by this module -# PowerShellHostName = '' - -# Minimum version of the PowerShell host required by this module -# PowerShellHostVersion = '' - -# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -DotNetFrameworkVersion = '4.7.2' - -# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. -# ClrVersion = '' - -# Processor architecture (None, X86, Amd64) required by this module -# ProcessorArchitecture = '' - -# Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.13.1'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = './bin/Az.ElasticSan.private.dll' - -# Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() - -# Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() - -# Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = './Az.ElasticSan.format.ps1xml' - -# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess -# NestedModules = @() - -# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Add-AzElasticSanVolumeGroupNetworkRule', 'Get-AzElasticSan', - 'Get-AzElasticSanSkuList', 'Get-AzElasticSanVolume', - 'Get-AzElasticSanVolumeGroup', 'Get-AzElasticSanVolumeSnapshot', - 'New-AzElasticSan', 'New-AzElasticSanVirtualNetworkRuleObject', - 'New-AzElasticSanVolume', 'New-AzElasticSanVolumeGroup', - 'New-AzElasticSanVolumeSnapshot', 'Remove-AzElasticSan', - 'Remove-AzElasticSanVolume', 'Remove-AzElasticSanVolumeGroup', - 'Remove-AzElasticSanVolumeGroupNetworkRule', - 'Remove-AzElasticSanVolumeSnapshot', 'Update-AzElasticSan', - 'Update-AzElasticSanVolume', 'Update-AzElasticSanVolumeGroup' - -# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. -CmdletsToExport = @() - -# Variables to export from this module -# VariablesToExport = @() - -# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. -AliasesToExport = @() - -# DSC resources to export from this module -# DscResourcesToExport = @() - -# List of all modules packaged with this module -# ModuleList = @() - -# List of all files packaged with this module -# FileList = @() - -# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. -PrivateData = @{ - + GUID = 'ed90c36c-f150-4ad2-96ae-57e0ebb0a376' + RootModule = './Az.ElasticSan.psm1' + ModuleVersion = '0.3.0' + CompatiblePSEditions = 'Core', 'Desktop' + Author = 'Microsoft Corporation' + CompanyName = 'Microsoft Corporation' + Copyright = 'Microsoft Corporation. All rights reserved.' + Description = 'Microsoft Azure PowerShell: ElasticSan cmdlets' + PowerShellVersion = '5.1' + DotNetFrameworkVersion = '4.7.2' + RequiredAssemblies = './bin/Az.ElasticSan.private.dll' + FormatsToProcess = './Az.ElasticSan.format.ps1xml' + FunctionsToExport = 'Add-AzElasticSanVolumeGroupNetworkRule', 'Get-AzElasticSan', 'Get-AzElasticSanSkuList', 'Get-AzElasticSanVolume', 'Get-AzElasticSanVolumeGroup', 'Get-AzElasticSanVolumeSnapshot', 'New-AzElasticSan', 'New-AzElasticSanVirtualNetworkRuleObject', 'New-AzElasticSanVolume', 'New-AzElasticSanVolumeGroup', 'New-AzElasticSanVolumeSnapshot', 'Remove-AzElasticSan', 'Remove-AzElasticSanVolume', 'Remove-AzElasticSanVolumeGroup', 'Remove-AzElasticSanVolumeGroupNetworkRule', 'Remove-AzElasticSanVolumeSnapshot', 'Update-AzElasticSan', 'Update-AzElasticSanVolume', 'Update-AzElasticSanVolumeGroup' + PrivateData = @{ PSData = @{ - - # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ElasticSan' - - # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' - - # A URL to the main website for this project. - ProjectUri = 'https://github.com/Azure/azure-powershell' - - # A URL to an icon representing this module. - # IconUri = '' - - # ReleaseNotes of this module - ReleaseNotes = '* Added support for CMK and volume snapshots' - - # Prerelease string of this module - # Prerelease = '' - - # Flag to indicate whether the module requires explicit user acceptance for install/update/save - # RequireLicenseAcceptance = $false - - # External dependent modules of this module - # ExternalModuleDependencies = @() - - } # End of PSData hashtable - - } # End of PrivateData hashtable - -# HelpInfo URI of this module -# HelpInfoURI = '' - -# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. -# DefaultCommandPrefix = '' - + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ElasticSan' + LicenseUri = 'https://aka.ms/azps-license' + ProjectUri = 'https://github.com/Azure/azure-powershell' + ReleaseNotes = '' + } + } } - diff --git a/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psm1 b/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psm1 index 29d559a20258..71fe7e3b7a0d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psm1 +++ b/src/ElasticSan/ElasticSan.Autorest/Az.ElasticSan.psm1 @@ -47,37 +47,41 @@ # Ask for the shared functionality table $VTable = Register-AzModule - + # Tweaks the pipeline on module load $instance.OnModuleLoad = $VTable.OnModuleLoad # Following two delegates are added for telemetry $instance.GetTelemetryId = $VTable.GetTelemetryId $instance.Telemetry = $VTable.Telemetry - + + # Delegate to sanitize the output object + $instance.SanitizeOutput = $VTable.SanitizerHandler + + # Delegate to get the telemetry info + $instance.GetTelemetryInfo = $VTable.GetTelemetryInfo # Tweaks the pipeline per call $instance.OnNewRequest = $VTable.OnNewRequest - + # Gets shared parameter values $instance.GetParameterValue = $VTable.GetParameterValue - + # Allows shared module to listen to events from this module $instance.EventListener = $VTable.EventListener - + # Gets shared argument completers $instance.ArgumentCompleter = $VTable.ArgumentCompleter - + # The name of the currently selected Azure profile $instance.ProfileName = $VTable.ProfileName - # Load the custom module $customModulePath = Join-Path $PSScriptRoot './custom/Az.ElasticSan.custom.psm1' if(Test-Path $customModulePath) { $null = Import-Module -Name $customModulePath } - + # Export nothing to clear implicit exports Export-ModuleMember @@ -97,12 +101,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/ElasticSan/ElasticSan.Autorest/README.md b/src/ElasticSan/ElasticSan.Autorest/README.md index 3c57da5ca391..baba70552657 100644 --- a/src/ElasticSan/ElasticSan.Autorest/README.md +++ b/src/ElasticSan/ElasticSan.Autorest/README.md @@ -3,7 +3,6 @@ This directory contains the PowerShell module for the ElasticSan service. --- - ## Info - Modifiable: yes - Generated: all @@ -29,9 +28,9 @@ 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. -branch: 9770615578c920dad8cb6fce33d79c7e112824c0 +commit: 9770615578c920dad8cb6fce33d79c7e112824c0 require: - - $(this-folder)/../readme.azure.noprofile.md + - $(this-folder)/../../readme.azure.noprofile.md input-file: - $(repo)/specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/elasticsan.json @@ -40,12 +39,12 @@ title: ElasticSan # For new RP, the version is 0.1.0 module-version: 0.3.0 subject-prefix: $(service-name) +disable-transform-identity-type: true +flatten-userassignedidentity: false -use-extension: - "@autorest/powershell": "4.x" enable-parent-pipeline-input: true -# If there are post APIs for some kinds of actions in the RP, you may need to +# If there are post APIs for some kinds of actions in the RP, you may need to # uncomment following line to support viaIdentity for these post APIs # identity-correction-for-post: true @@ -68,12 +67,12 @@ directive: alias: ElasticSanName - where: subject: VolumeGroup - parameter-name: Name + parameter-name: Name set: alias: VolumeGroupName - where: subject: Volume - parameter-name: Name + parameter-name: Name set: alias: VolumeName - where: @@ -85,7 +84,7 @@ directive: set: parameter-name: ForceDelete - where: - parameter-name: SnapshotName + parameter-name: SnapshotName set: parameter-name: Name - where: @@ -106,7 +105,7 @@ directive: parameter-name: GroupName set: parameter-name: VolumeGroupName - - where: + - where: subject: VolumeSnapshot verb: Update remove: true @@ -139,14 +138,14 @@ directive: - where: subject: ^PrivateEndpointConnection$|^PrivateLinkResource$ hide: true - - where: + - where: verb: ^New$|^Update$ subject: ^VolumeGroup$ hide: true - - where: + - where: verb: New - subject: Volume - parameter-name: ManagedByResourceId + subject: Volume + parameter-name: ManagedByResourceId hide: true - from: IdentityUserAssignedIdentities.dictionary.cs where: $ diff --git a/src/ElasticSan/ElasticSan.Autorest/build-module.ps1 b/src/ElasticSan/ElasticSan.Autorest/build-module.ps1 index 04faf5bc6d58..7c562247f4a5 100644 --- a/src/ElasticSan/ElasticSan.Autorest/build-module.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/build-module.ps1 @@ -171,4 +171,10 @@ Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFol Write-Host -ForegroundColor Green 'Creating example stubs...' Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder +if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')) +{ + Write-Host -ForegroundColor Green 'Creating ux metadata...' + . (Join-Path $PSScriptRoot 'generate-portal-ux.ps1') +} + Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 index b3e32f1a8b83..4373e972606c 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Add-AzElasticSanVolumeGroupNetworkRule.ps1 @@ -39,7 +39,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -179,7 +179,13 @@ begin { NetworkRuleResourceId = 'Az.ElasticSan.custom\Add-AzElasticSanVolumeGroupNetworkRule'; } if (('NetworkRuleObject', 'NetworkRuleResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 index dee533919017..0c2000aca588 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSan.ps1 @@ -79,7 +79,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -163,7 +162,13 @@ begin { List1 = 'Az.ElasticSan.private\Get-AzElasticSan_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 index e05c6627c962..652233c4e769 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanSkuList.ps1 @@ -122,7 +122,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanSkuList_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 index bb6be0cdf930..79dc81e48e18 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolume.ps1 @@ -113,21 +113,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='GetViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -212,7 +209,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolume_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 index 517005d00fde..2f39b61fb7c7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeGroup.ps1 @@ -94,14 +94,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter()] @@ -185,7 +183,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolumeGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 index 82575c61207a..d37e3d8d278d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Get-AzElasticSanVolumeSnapshot.ps1 @@ -114,21 +114,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='GetViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(ParameterSetName='List')] @@ -219,7 +216,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolumeSnapshot_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 index 05aed6986217..944b299233bc 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSan.ps1 @@ -72,7 +72,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(Mandatory)] @@ -220,7 +219,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.private\New-AzElasticSan_CreateViaIdentityExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 index cbc83a7e2523..56845512250e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolume.ps1 @@ -107,21 +107,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(Mandatory)] @@ -238,7 +235,13 @@ begin { CreateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolume_CreateViaIdentityVolumegroupExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 index 24955c61dcc0..63c2231500c6 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeGroup.ps1 @@ -47,7 +47,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ELASTICSANINPUTOBJECT : Identity Parameter +ELASTICSANINPUTOBJECT : Identity Parameter To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -57,7 +57,7 @@ ELASTICSANINPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -INPUTOBJECT : Identity Parameter +INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -67,7 +67,7 @@ INPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -271,7 +271,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.custom\New-AzElasticSanVolumeGroup'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 index 97d55fccf46e..3e16192aaf95 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/New-AzElasticSanVolumeSnapshot.ps1 @@ -107,21 +107,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(Mandatory)] @@ -225,7 +222,13 @@ begin { CreateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 index fd38e3c941cd..77874e477e54 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -122,7 +122,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanSkuList_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -254,14 +260,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter()] @@ -345,7 +349,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolumeGroup_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -497,21 +507,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='GetViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(ParameterSetName='List')] @@ -602,7 +609,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolumeSnapshot_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -753,21 +766,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='GetViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -852,7 +862,13 @@ begin { List = 'Az.ElasticSan.private\Get-AzElasticSanVolume_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -969,7 +985,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -1053,7 +1068,13 @@ begin { List1 = 'Az.ElasticSan.private\Get-AzElasticSan_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1198,21 +1219,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(Mandatory)] @@ -1316,7 +1334,13 @@ begin { CreateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1461,21 +1485,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter(Mandatory)] @@ -1592,7 +1613,13 @@ begin { CreateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolume_CreateViaIdentityVolumegroupExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1702,7 +1729,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(Mandatory)] @@ -1850,7 +1876,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.private\New-AzElasticSan_CreateViaIdentityExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -1977,14 +2009,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter()] @@ -2085,7 +2115,13 @@ begin { DeleteViaIdentityElasticSan = 'Az.ElasticSan.private\Remove-AzElasticSanVolumeGroup_DeleteViaIdentityElasticSan'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2229,21 +2265,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -2345,7 +2378,13 @@ begin { DeleteViaIdentityVolumegroup = 'Az.ElasticSan.private\Remove-AzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2490,21 +2529,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -2624,7 +2660,13 @@ begin { DeleteViaIdentityVolumegroup = 'Az.ElasticSan.private\Remove-AzElasticSanVolume_DeleteViaIdentityVolumegroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2734,7 +2776,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -2834,7 +2875,13 @@ begin { DeleteViaIdentity = 'Az.ElasticSan.private\Remove-AzElasticSan_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -2979,21 +3026,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -3095,7 +3139,13 @@ begin { UpdateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\Update-AzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3205,7 +3255,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -3326,7 +3375,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.private\Update-AzElasticSan_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3403,7 +3458,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -3543,7 +3598,13 @@ begin { NetworkRuleResourceId = 'Az.ElasticSan.custom\Add-AzElasticSanVolumeGroupNetworkRule'; } if (('NetworkRuleObject', 'NetworkRuleResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -3737,7 +3798,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ELASTICSANINPUTOBJECT : Identity Parameter +ELASTICSANINPUTOBJECT : Identity Parameter To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -3747,7 +3808,7 @@ ELASTICSANINPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -INPUTOBJECT : Identity Parameter +INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -3757,7 +3818,7 @@ INPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -3961,7 +4022,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.custom\New-AzElasticSanVolumeGroup'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4049,7 +4116,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -4189,7 +4256,13 @@ begin { NetworkRuleResourceId = 'Az.ElasticSan.custom\Remove-AzElasticSanVolumeGroupNetworkRule'; } if (('NetworkRuleObject', 'NetworkRuleResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -4274,7 +4347,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ELASTICSANINPUTOBJECT : Identity Parameter +ELASTICSANINPUTOBJECT : Identity Parameter To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -4284,7 +4357,7 @@ ELASTICSANINPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -INPUTOBJECT : Identity Parameter +INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -4294,7 +4367,7 @@ INPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -4498,7 +4571,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.custom\Update-AzElasticSanVolumeGroup'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 index 4382bd7102c8..1abaca742789 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSan.ps1 @@ -72,7 +72,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -172,7 +171,13 @@ begin { DeleteViaIdentity = 'Az.ElasticSan.private\Remove-AzElasticSan_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 index 73ef4ebd440f..0c6d08819a00 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolume.ps1 @@ -107,21 +107,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -241,7 +238,13 @@ begin { DeleteViaIdentityVolumegroup = 'Az.ElasticSan.private\Remove-AzElasticSanVolume_DeleteViaIdentityVolumegroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 index d4e171da63d6..be5424bd7856 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroup.ps1 @@ -89,14 +89,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter()] @@ -197,7 +195,13 @@ begin { DeleteViaIdentityElasticSan = 'Az.ElasticSan.private\Remove-AzElasticSanVolumeGroup_DeleteViaIdentityElasticSan'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 index 269dfd5f2b77..979592a2c87a 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeGroupNetworkRule.ps1 @@ -50,7 +50,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -190,7 +190,13 @@ begin { NetworkRuleResourceId = 'Az.ElasticSan.custom\Remove-AzElasticSanVolumeGroupNetworkRule'; } if (('NetworkRuleObject', 'NetworkRuleResourceId') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 index c28106244219..34b05fc408f2 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Remove-AzElasticSanVolumeSnapshot.ps1 @@ -106,21 +106,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityElasticSan', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityVolumegroup', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -222,7 +219,13 @@ begin { DeleteViaIdentityVolumegroup = 'Az.ElasticSan.private\Remove-AzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 index 1d7910417b4f..0235f3adea82 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSan.ps1 @@ -72,7 +72,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -193,7 +192,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.private\Update-AzElasticSan_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 index 5b8195a6792e..12d7d8379eb1 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolume.ps1 @@ -107,21 +107,18 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter(ParameterSetName='UpdateViaIdentityVolumegroupExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for VOLUMEGROUPINPUTOBJECT properties and create a hash table. ${VolumegroupInputObject}, [Parameter()] @@ -223,7 +220,13 @@ begin { UpdateViaIdentityVolumegroupExpanded = 'Az.ElasticSan.private\Update-AzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 index dc5a454fafd5..8e84bb110674 100644 --- a/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/exports/Update-AzElasticSanVolumeGroup.ps1 @@ -47,7 +47,7 @@ COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. -ELASTICSANINPUTOBJECT : Identity Parameter +ELASTICSANINPUTOBJECT : Identity Parameter To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -57,7 +57,7 @@ ELASTICSANINPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -INPUTOBJECT : Identity Parameter +INPUTOBJECT : Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table. [ElasticSanName ]: The name of the ElasticSan. [Id ]: Resource identity path [PrivateEndpointConnectionName ]: The name of the Private Endpoint connection. @@ -67,7 +67,7 @@ INPUTOBJECT : Identity Parameter [VolumeGroupName ]: The name of the VolumeGroup. [VolumeName ]: The name of the Volume. -NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. +NETWORKACLSVIRTUALNETWORKRULE : The list of virtual network rules. To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. VirtualNetworkResourceId : Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. [Action ]: The action of virtual network rule. .Link @@ -271,7 +271,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.custom\Update-AzElasticSanVolumeGroup'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/generate-portal-ux.ps1 b/src/ElasticSan/ElasticSan.Autorest/generate-portal-ux.ps1 index 79de9be6b22c..06392955c23f 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generate-portal-ux.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/generate-portal-ux.ps1 @@ -11,6 +11,9 @@ # limitations under the License. # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. +# +# This Script will create a folder dedicated to Azure-specific content and includes metadata files essential for enhancing the user experience (UX) within the Azure portal. +# These files are utilized by the Azure portal to effectively present the usage of cmdlets related to specific resources on portal pages. # ---------------------------------------------------------------------------------- param([switch]$NotIsolated) $ErrorActionPreference = 'Stop' @@ -22,23 +25,6 @@ if(-not $NotIsolated) { return } -$exportsFolder = Join-Path $PSScriptRoot 'exports' -if(-not (Test-Path $exportsFolder)) { - Write-Error "Exports folder '$exportsFolder' was not found." -} - -$directories = Get-ChildItem -Directory -Path $exportsFolder -$hasProfiles = ($directories | Measure-Object).Count -gt 0 -if(-not $hasProfiles) { - $directories = Get-Item -Path $exportsFolder -} - -$docsFolder = Join-Path $PSScriptRoot 'docs' -if(Test-Path $docsFolder) { - $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue -} -$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue - $moduleName = 'Az.ElasticSan' $rootModuleName = '' if ($rootModuleName -eq "") @@ -56,8 +42,6 @@ $instance = [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module]::Instance $moduleInfo = Get-Module -Name $moduleName $parameterSetsInfo = Get-Module -Name "$moduleName.private" -$buildinFunctions = @("Export-CmdletSurface", "Export-ExampleStub", "Export-FormatPs1xml", "Export-HelpMarkdown", "Export-ModelSurface", "Export-ProxyCmdlet", "Export-Psd1", "Export-TestStub", "Get-CommonParameter", "Get-ModuleGuid", "Get-ScriptCmdlet") - function Test-FunctionSupported() { [CmdletBinding()] @@ -67,12 +51,12 @@ function Test-FunctionSupported() $FunctionName ) - If ($buildinfunctions.Contains($FunctionName)) { + If (-not $FunctionName.Contains("_")) { return $false } $cmdletName, $parameterSetName = $FunctionName.Split("_") - If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity")) { + If ($parameterSetName.Contains("List") -or $parameterSetName.Contains("ViaIdentity") -or $parameterSetName.Contains("ViaJson")) { return $false } If ($cmdletName.StartsWith("New") -or $cmdletName.StartsWith("Set") -or $cmdletName.StartsWith("Update")) { @@ -325,7 +309,7 @@ function New-MetadataForCmdlet() return $result } -$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-functionSupported($_) } +$parameterSets = $parameterSetsInfo.ExportedCmdlets.Keys | Where-Object { Test-FunctionSupported($_) } $resourceTypes = @{} foreach ($parameterSetName in $parameterSets) { diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/Module.cs b/src/ElasticSan/ElasticSan.Autorest/generated/Module.cs index ac2c05a28227..d2dea8df374e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/Module.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/Module.cs @@ -17,6 +17,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ElasticSan using SignalDelegate = global::System.Func, global::System.Threading.Tasks.Task>; using EventListenerDelegate = global::System.Func, global::System.Func, global::System.Threading.Tasks.Task>, global::System.Management.Automation.InvocationInfo, string, string, string, global::System.Exception, global::System.Threading.Tasks.Task>; using NextDelegate = global::System.Func, global::System.Threading.Tasks.Task>, global::System.Threading.Tasks.Task>; + using SanitizerDelegate = global::System.Action; + using GetTelemetryInfoDelegate = global::System.Func>; /// A class that contains the module-common code and data. public partial class Module @@ -26,12 +28,20 @@ public partial class Module public global::System.Net.Http.HttpClientHandler _handler = new global::System.Net.Http.HttpClientHandler(); + private static bool _init = false; + + private static readonly global::System.Object _initLock = new global::System.Object(); + + private static Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module _instance; + /// the ISendAsync pipeline instance private Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.HttpPipeline _pipeline; /// the ISendAsync pipeline instance (when proxy is enabled) private Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.HttpPipeline _pipelineWithProxy; + private static readonly global::System.Object _singletonLock = new global::System.Object(); + public bool _useProxy = false; public global::System.Net.WebProxy _webProxy = new global::System.Net.WebProxy(); @@ -51,11 +61,11 @@ public partial class Module /// The delegate to get the telemetry Id. public GetTelemetryIdDelegate GetTelemetryId { get; set; } - /// Backing field for property. - private static Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module _instance; + /// The delegate to get the telemetry info. + public GetTelemetryInfoDelegate GetTelemetryInfo { get; set; } /// the singleton of this module class - public static Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module Instance => Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module._instance?? (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module._instance = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module()); + public static Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module Instance { get { if (_instance == null) { lock (_singletonLock) { if (_instance == null) { _instance = new Module(); }}} return _instance; } } /// The Name of this module public string Name => @"Az.ElasticSan"; @@ -72,6 +82,9 @@ public partial class Module /// The ResourceID for this module (azure arm). public string ResourceId => @"Az.ElasticSan"; + /// The delegate to call in WriteObject to sanitize the output object. + public SanitizerDelegate SanitizeOutput { get; set; } + /// The delegate for creating a telemetry. public TelemetryDelegate Telemetry { get; set; } @@ -117,9 +130,17 @@ public Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.HttpPipeline Create /// Initialization steps performed after the module is loaded. public void Init() { - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); - OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); - CustomInit(); + if (_init == false) + { + lock (_initLock) { + if (_init == false) { + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipeline.Prepend(step); } , (step)=> { _pipeline.Append(step); } ); + OnModuleLoad?.Invoke( ResourceId, Name ,(step)=> { _pipelineWithProxy.Prepend(step); } , (step)=> { _pipelineWithProxy.Append(step); } ); + CustomInit(); + _init = true; + } + } + } } /// Creates the module instance. diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSan.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSan.json.cs index 052b6f38a687..bad8b8390e5a 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSan.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSan.json.cs @@ -66,7 +66,7 @@ internal ElasticSan(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.J return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanIdentity.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanIdentity.json.cs index f5b71deeb6d2..7a1144b9a545 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanIdentity.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanIdentity.json.cs @@ -64,14 +64,14 @@ internal ElasticSanIdentity(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)SubscriptionId;} - {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)ResourceGroupName;} - {_elasticSanName = If( json?.PropertyT("elasticSanName"), out var __jsonElasticSanName) ? (string)__jsonElasticSanName : (string)ElasticSanName;} - {_volumeGroupName = If( json?.PropertyT("volumeGroupName"), out var __jsonVolumeGroupName) ? (string)__jsonVolumeGroupName : (string)VolumeGroupName;} - {_volumeName = If( json?.PropertyT("volumeName"), out var __jsonVolumeName) ? (string)__jsonVolumeName : (string)VolumeName;} - {_privateEndpointConnectionName = If( json?.PropertyT("privateEndpointConnectionName"), out var __jsonPrivateEndpointConnectionName) ? (string)__jsonPrivateEndpointConnectionName : (string)PrivateEndpointConnectionName;} - {_snapshotName = If( json?.PropertyT("snapshotName"), out var __jsonSnapshotName) ? (string)__jsonSnapshotName : (string)SnapshotName;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_subscriptionId = If( json?.PropertyT("subscriptionId"), out var __jsonSubscriptionId) ? (string)__jsonSubscriptionId : (string)_subscriptionId;} + {_resourceGroupName = If( json?.PropertyT("resourceGroupName"), out var __jsonResourceGroupName) ? (string)__jsonResourceGroupName : (string)_resourceGroupName;} + {_elasticSanName = If( json?.PropertyT("elasticSanName"), out var __jsonElasticSanName) ? (string)__jsonElasticSanName : (string)_elasticSanName;} + {_volumeGroupName = If( json?.PropertyT("volumeGroupName"), out var __jsonVolumeGroupName) ? (string)__jsonVolumeGroupName : (string)_volumeGroupName;} + {_volumeName = If( json?.PropertyT("volumeName"), out var __jsonVolumeName) ? (string)__jsonVolumeName : (string)_volumeName;} + {_privateEndpointConnectionName = If( json?.PropertyT("privateEndpointConnectionName"), out var __jsonPrivateEndpointConnectionName) ? (string)__jsonPrivateEndpointConnectionName : (string)_privateEndpointConnectionName;} + {_snapshotName = If( json?.PropertyT("snapshotName"), out var __jsonSnapshotName) ? (string)__jsonSnapshotName : (string)_snapshotName;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanList.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanList.json.cs index 8cb5b02e65fd..51bd4077b86f 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanList.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanList.json.cs @@ -65,8 +65,8 @@ internal ElasticSanList(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Js { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSan) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSan.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSan) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSan.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanProperties.json.cs index 220fc07f51ab..f71d282b6f1e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanProperties.json.cs @@ -65,18 +65,18 @@ internal ElasticSanProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runt { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Sku.FromJson(__jsonSku) : Sku;} - {_availabilityZone = If( json?.PropertyT("availabilityZones"), out var __jsonAvailabilityZones) ? If( __jsonAvailabilityZones as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : AvailabilityZone;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_baseSizeTiB = If( json?.PropertyT("baseSizeTiB"), out var __jsonBaseSizeTiB) ? (long)__jsonBaseSizeTiB : BaseSizeTiB;} - {_extendedCapacitySizeTiB = If( json?.PropertyT("extendedCapacitySizeTiB"), out var __jsonExtendedCapacitySizeTiB) ? (long)__jsonExtendedCapacitySizeTiB : ExtendedCapacitySizeTiB;} - {_totalVolumeSizeGiB = If( json?.PropertyT("totalVolumeSizeGiB"), out var __jsonTotalVolumeSizeGiB) ? (long?)__jsonTotalVolumeSizeGiB : TotalVolumeSizeGiB;} - {_volumeGroupCount = If( json?.PropertyT("volumeGroupCount"), out var __jsonVolumeGroupCount) ? (long?)__jsonVolumeGroupCount : VolumeGroupCount;} - {_totalIops = If( json?.PropertyT("totalIops"), out var __jsonTotalIops) ? (long?)__jsonTotalIops : TotalIops;} - {_totalMBps = If( json?.PropertyT("totalMBps"), out var __jsonTotalMBps) ? (long?)__jsonTotalMBps : TotalMBps;} - {_totalSizeTiB = If( json?.PropertyT("totalSizeTiB"), out var __jsonTotalSizeTiB) ? (long?)__jsonTotalSizeTiB : TotalSizeTiB;} - {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__p) )) ))() : null : PrivateEndpointConnection;} - {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Sku.FromJson(__jsonSku) : _sku;} + {_availabilityZone = If( json?.PropertyT("availabilityZones"), out var __jsonAvailabilityZones) ? If( __jsonAvailabilityZones as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _availabilityZone;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_baseSizeTiB = If( json?.PropertyT("baseSizeTiB"), out var __jsonBaseSizeTiB) ? (long)__jsonBaseSizeTiB : _baseSizeTiB;} + {_extendedCapacitySizeTiB = If( json?.PropertyT("extendedCapacitySizeTiB"), out var __jsonExtendedCapacitySizeTiB) ? (long)__jsonExtendedCapacitySizeTiB : _extendedCapacitySizeTiB;} + {_totalVolumeSizeGiB = If( json?.PropertyT("totalVolumeSizeGiB"), out var __jsonTotalVolumeSizeGiB) ? (long?)__jsonTotalVolumeSizeGiB : _totalVolumeSizeGiB;} + {_volumeGroupCount = If( json?.PropertyT("volumeGroupCount"), out var __jsonVolumeGroupCount) ? (long?)__jsonVolumeGroupCount : _volumeGroupCount;} + {_totalIops = If( json?.PropertyT("totalIops"), out var __jsonTotalIops) ? (long?)__jsonTotalIops : _totalIops;} + {_totalMBps = If( json?.PropertyT("totalMBps"), out var __jsonTotalMBps) ? (long?)__jsonTotalMBps : _totalMBps;} + {_totalSizeTiB = If( json?.PropertyT("totalSizeTiB"), out var __jsonTotalSizeTiB) ? (long?)__jsonTotalSizeTiB : _totalSizeTiB;} + {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__p) )) ))() : null : _privateEndpointConnection;} + {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)_publicNetworkAccess;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdate.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdate.json.cs index 663a77484287..c32519e45a21 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdate.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdate.json.cs @@ -65,8 +65,8 @@ internal ElasticSanUpdate(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime. { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanUpdateProperties.FromJson(__jsonProperties) : Property;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanUpdateTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanUpdateProperties.FromJson(__jsonProperties) : _property;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ElasticSanUpdateTags.FromJson(__jsonTags) : _tag;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdateProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdateProperties.json.cs index e49cc5213192..9f22156b1179 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdateProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ElasticSanUpdateProperties.json.cs @@ -65,7 +65,7 @@ internal ElasticSanUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSa { return; } - {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)PublicNetworkAccess;} + {_publicNetworkAccess = If( json?.PropertyT("publicNetworkAccess"), out var __jsonPublicNetworkAccess) ? (string)__jsonPublicNetworkAccess : (string)_publicNetworkAccess;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionIdentity.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionIdentity.json.cs index f948ce3aa247..4dd0e0920074 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionIdentity.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionIdentity.json.cs @@ -65,7 +65,7 @@ internal EncryptionIdentity(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_encryptionUserAssignedIdentity = If( json?.PropertyT("userAssignedIdentity"), out var __jsonUserAssignedIdentity) ? (string)__jsonUserAssignedIdentity : (string)EncryptionUserAssignedIdentity;} + {_encryptionUserAssignedIdentity = If( json?.PropertyT("userAssignedIdentity"), out var __jsonUserAssignedIdentity) ? (string)__jsonUserAssignedIdentity : (string)_encryptionUserAssignedIdentity;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionProperties.json.cs index fb20979490ee..6f803d86168c 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/EncryptionProperties.json.cs @@ -65,8 +65,8 @@ internal EncryptionProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runt { return; } - {_keyVaultProperty = If( json?.PropertyT("keyVaultProperties"), out var __jsonKeyVaultProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.KeyVaultProperties.FromJson(__jsonKeyVaultProperties) : KeyVaultProperty;} - {_encryptionIdentity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionIdentity.FromJson(__jsonIdentity) : EncryptionIdentity;} + {_keyVaultProperty = If( json?.PropertyT("keyVaultProperties"), out var __jsonKeyVaultProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.KeyVaultProperties.FromJson(__jsonKeyVaultProperties) : _keyVaultProperty;} + {_encryptionIdentity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionIdentity.FromJson(__jsonIdentity) : _encryptionIdentity;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs index 2c2d9eaa22d8..dff52f1223aa 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorAdditionalInfo.json.cs @@ -65,8 +65,8 @@ internal ErrorAdditionalInfo(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runti { return; } - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Any.FromJson(__jsonInfo) : Info;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_info = If( json?.PropertyT("info"), out var __jsonInfo) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Any.FromJson(__jsonInfo) : _info;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorDetail.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorDetail.json.cs index ea2753a6040b..d1c7189586f7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorDetail.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorDetail.json.cs @@ -65,11 +65,11 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json. { return; } - {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} - {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorDetail.FromJson(__u) )) ))() : null : Detail;} - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : AdditionalInfo;} + {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)_code;} + {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)_message;} + {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)_target;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IErrorDetail) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorDetail.FromJson(__u) )) ))() : null : _detail;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IErrorAdditionalInfo) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorAdditionalInfo.FromJson(__p) )) ))() : null : _additionalInfo;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorResponse.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorResponse.json.cs index d07707ba7478..91122a79969d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorResponse.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ErrorResponse.json.cs @@ -68,7 +68,7 @@ internal ErrorResponse(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Jso { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ErrorDetail.FromJson(__jsonError) : _error;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Identity.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Identity.json.cs index 206cba426e0c..cbeb77b576a8 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Identity.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Identity.json.cs @@ -75,10 +75,10 @@ internal Identity(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.Jso { return; } - {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} - {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} - {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)_principalId;} + {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)_tenantId;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} + {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : _userAssignedIdentity;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/IscsiTargetInfo.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/IscsiTargetInfo.json.cs index 3d132c7b1972..2178be26a7eb 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/IscsiTargetInfo.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/IscsiTargetInfo.json.cs @@ -77,11 +77,11 @@ internal IscsiTargetInfo(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.J { return; } - {_targetIqn = If( json?.PropertyT("targetIqn"), out var __jsonTargetIqn) ? (string)__jsonTargetIqn : (string)TargetIqn;} - {_targetPortalHostname = If( json?.PropertyT("targetPortalHostname"), out var __jsonTargetPortalHostname) ? (string)__jsonTargetPortalHostname : (string)TargetPortalHostname;} - {_targetPortalPort = If( json?.PropertyT("targetPortalPort"), out var __jsonTargetPortalPort) ? (int?)__jsonTargetPortalPort : TargetPortalPort;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_targetIqn = If( json?.PropertyT("targetIqn"), out var __jsonTargetIqn) ? (string)__jsonTargetIqn : (string)_targetIqn;} + {_targetPortalHostname = If( json?.PropertyT("targetPortalHostname"), out var __jsonTargetPortalHostname) ? (string)__jsonTargetPortalHostname : (string)_targetPortalHostname;} + {_targetPortalPort = If( json?.PropertyT("targetPortalPort"), out var __jsonTargetPortalPort) ? (int?)__jsonTargetPortalPort : _targetPortalPort;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/KeyVaultProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/KeyVaultProperties.json.cs index 547c2d8865fd..dbe9f3242e5b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/KeyVaultProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/KeyVaultProperties.json.cs @@ -77,12 +77,12 @@ internal KeyVaultProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_keyName = If( json?.PropertyT("keyName"), out var __jsonKeyName) ? (string)__jsonKeyName : (string)KeyName;} - {_keyVersion = If( json?.PropertyT("keyVersion"), out var __jsonKeyVersion) ? (string)__jsonKeyVersion : (string)KeyVersion;} - {_keyVaultUri = If( json?.PropertyT("keyVaultUri"), out var __jsonKeyVaultUri) ? (string)__jsonKeyVaultUri : (string)KeyVaultUri;} - {_currentVersionedKeyIdentifier = If( json?.PropertyT("currentVersionedKeyIdentifier"), out var __jsonCurrentVersionedKeyIdentifier) ? (string)__jsonCurrentVersionedKeyIdentifier : (string)CurrentVersionedKeyIdentifier;} - {_lastKeyRotationTimestamp = If( json?.PropertyT("lastKeyRotationTimestamp"), out var __jsonLastKeyRotationTimestamp) ? global::System.DateTime.TryParse((string)__jsonLastKeyRotationTimestamp, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastKeyRotationTimestampValue) ? __jsonLastKeyRotationTimestampValue : LastKeyRotationTimestamp : LastKeyRotationTimestamp;} - {_currentVersionedKeyExpirationTimestamp = If( json?.PropertyT("currentVersionedKeyExpirationTimestamp"), out var __jsonCurrentVersionedKeyExpirationTimestamp) ? global::System.DateTime.TryParse((string)__jsonCurrentVersionedKeyExpirationTimestamp, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCurrentVersionedKeyExpirationTimestampValue) ? __jsonCurrentVersionedKeyExpirationTimestampValue : CurrentVersionedKeyExpirationTimestamp : CurrentVersionedKeyExpirationTimestamp;} + {_keyName = If( json?.PropertyT("keyName"), out var __jsonKeyName) ? (string)__jsonKeyName : (string)_keyName;} + {_keyVersion = If( json?.PropertyT("keyVersion"), out var __jsonKeyVersion) ? (string)__jsonKeyVersion : (string)_keyVersion;} + {_keyVaultUri = If( json?.PropertyT("keyVaultUri"), out var __jsonKeyVaultUri) ? (string)__jsonKeyVaultUri : (string)_keyVaultUri;} + {_currentVersionedKeyIdentifier = If( json?.PropertyT("currentVersionedKeyIdentifier"), out var __jsonCurrentVersionedKeyIdentifier) ? (string)__jsonCurrentVersionedKeyIdentifier : (string)_currentVersionedKeyIdentifier;} + {_lastKeyRotationTimestamp = If( json?.PropertyT("lastKeyRotationTimestamp"), out var __jsonLastKeyRotationTimestamp) ? global::System.DateTime.TryParse((string)__jsonLastKeyRotationTimestamp, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastKeyRotationTimestampValue) ? __jsonLastKeyRotationTimestampValue : _lastKeyRotationTimestamp : _lastKeyRotationTimestamp;} + {_currentVersionedKeyExpirationTimestamp = If( json?.PropertyT("currentVersionedKeyExpirationTimestamp"), out var __jsonCurrentVersionedKeyExpirationTimestamp) ? global::System.DateTime.TryParse((string)__jsonCurrentVersionedKeyExpirationTimestamp, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCurrentVersionedKeyExpirationTimestampValue) ? __jsonCurrentVersionedKeyExpirationTimestampValue : _currentVersionedKeyExpirationTimestamp : _currentVersionedKeyExpirationTimestamp;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ManagedByInfo.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ManagedByInfo.json.cs index 22ac3e1bb37b..1d456ef25f80 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ManagedByInfo.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/ManagedByInfo.json.cs @@ -77,7 +77,7 @@ internal ManagedByInfo(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Jso { return; } - {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)ResourceId;} + {_resourceId = If( json?.PropertyT("resourceId"), out var __jsonResourceId) ? (string)__jsonResourceId : (string)_resourceId;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/NetworkRuleSet.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/NetworkRuleSet.json.cs index 3b96a9b284d0..e8ea392607f3 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/NetworkRuleSet.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/NetworkRuleSet.json.cs @@ -77,7 +77,7 @@ internal NetworkRuleSet(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Js { return; } - {_virtualNetworkRule = If( json?.PropertyT("virtualNetworkRules"), out var __jsonVirtualNetworkRules) ? If( __jsonVirtualNetworkRules as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule.FromJson(__u) )) ))() : null : VirtualNetworkRule;} + {_virtualNetworkRule = If( json?.PropertyT("virtualNetworkRules"), out var __jsonVirtualNetworkRules) ? If( __jsonVirtualNetworkRules as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule.FromJson(__u) )) ))() : null : _virtualNetworkRule;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Operation.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Operation.json.cs index d06ff65e5fdc..a7afd212d460 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Operation.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Operation.json.cs @@ -77,11 +77,11 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.Js { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.OperationDisplay.FromJson(__jsonDisplay) : Display;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} - {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} - {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)ActionType;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.OperationDisplay.FromJson(__jsonDisplay) : _display;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : _isDataAction;} + {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)_origin;} + {_actionType = If( json?.PropertyT("actionType"), out var __jsonActionType) ? (string)__jsonActionType : (string)_actionType;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationDisplay.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationDisplay.json.cs index f7efee92714d..63aa7045e68d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationDisplay.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationDisplay.json.cs @@ -77,10 +77,10 @@ internal OperationDisplay(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime. { return; } - {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)Provider;} - {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)Resource;} - {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)Operation;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_provider = If( json?.PropertyT("provider"), out var __jsonProvider) ? (string)__jsonProvider : (string)_provider;} + {_resource = If( json?.PropertyT("resource"), out var __jsonResource) ? (string)__jsonResource : (string)_resource;} + {_operation = If( json?.PropertyT("operation"), out var __jsonOperation) ? (string)__jsonOperation : (string)_operation;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationListResult.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationListResult.json.cs index b070c1fd835e..224af71ac762 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationListResult.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/OperationListResult.json.cs @@ -80,8 +80,8 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Operation.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Operation.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpoint.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpoint.json.cs index b4926382e499..5b26d1cfe7c7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpoint.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpoint.json.cs @@ -77,7 +77,7 @@ internal PrivateEndpoint(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.J { return; } - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs index 0cad8f84473f..c60227b2a02e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnection.json.cs @@ -78,7 +78,7 @@ internal PrivateEndpointConnection(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnectionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnectionProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionListResult.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionListResult.json.cs index 9a26123d456d..1bca6bcb4088 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionListResult.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionListResult.json.cs @@ -77,8 +77,8 @@ internal PrivateEndpointConnectionListResult(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs index d79c770f7e72..897382a5f87b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateEndpointConnectionProperties.json.cs @@ -77,10 +77,10 @@ internal PrivateEndpointConnectionProperties(Microsoft.Azure.PowerShell.Cmdlets. { return; } - {_privateEndpoint = If( json?.PropertyT("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : PrivateEndpoint;} - {_privateLinkServiceConnectionState = If( json?.PropertyT("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : PrivateLinkServiceConnectionState;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_groupId = If( json?.PropertyT("groupIds"), out var __jsonGroupIds) ? If( __jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : GroupId;} + {_privateEndpoint = If( json?.PropertyT("privateEndpoint"), out var __jsonPrivateEndpoint) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpoint.FromJson(__jsonPrivateEndpoint) : _privateEndpoint;} + {_privateLinkServiceConnectionState = If( json?.PropertyT("privateLinkServiceConnectionState"), out var __jsonPrivateLinkServiceConnectionState) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkServiceConnectionState.FromJson(__jsonPrivateLinkServiceConnectionState) : _privateLinkServiceConnectionState;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_groupId = If( json?.PropertyT("groupIds"), out var __jsonGroupIds) ? If( __jsonGroupIds as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _groupId;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResource.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResource.json.cs index 8fbc4c810c41..f6242934a9c4 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResource.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResource.json.cs @@ -78,7 +78,7 @@ internal PrivateLinkResource(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runti return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkResourceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkResourceProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs index 63db2708879a..7c6ba86cad32 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceListResult.json.cs @@ -77,8 +77,8 @@ internal PrivateLinkResourceListResult(Microsoft.Azure.PowerShell.Cmdlets.Elasti { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateLinkResource) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkResource.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateLinkResource) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateLinkResource.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceProperties.json.cs index 21f618802276..1eab9c2088eb 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkResourceProperties.json.cs @@ -77,9 +77,9 @@ internal PrivateLinkResourceProperties(Microsoft.Azure.PowerShell.Cmdlets.Elasti { return; } - {_groupId = If( json?.PropertyT("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)GroupId;} - {_requiredMember = If( json?.PropertyT("requiredMembers"), out var __jsonRequiredMembers) ? If( __jsonRequiredMembers as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : RequiredMember;} - {_requiredZoneName = If( json?.PropertyT("requiredZoneNames"), out var __jsonRequiredZoneNames) ? If( __jsonRequiredZoneNames as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : RequiredZoneName;} + {_groupId = If( json?.PropertyT("groupId"), out var __jsonGroupId) ? (string)__jsonGroupId : (string)_groupId;} + {_requiredMember = If( json?.PropertyT("requiredMembers"), out var __jsonRequiredMembers) ? If( __jsonRequiredMembers as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _requiredMember;} + {_requiredZoneName = If( json?.PropertyT("requiredZoneNames"), out var __jsonRequiredZoneNames) ? If( __jsonRequiredZoneNames as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : _requiredZoneName;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs index 587af35331f1..356356f19b9b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/PrivateLinkServiceConnectionState.json.cs @@ -77,9 +77,9 @@ internal PrivateLinkServiceConnectionState(Microsoft.Azure.PowerShell.Cmdlets.El { return; } - {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} - {_actionsRequired = If( json?.PropertyT("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)ActionsRequired;} + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)_status;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)_description;} + {_actionsRequired = If( json?.PropertyT("actionsRequired"), out var __jsonActionsRequired) ? (string)__jsonActionsRequired : (string)_actionsRequired;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Resource.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Resource.json.cs index c56dbc6907de..450db617cbd6 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Resource.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Resource.json.cs @@ -77,10 +77,10 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.Jso { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SystemData.FromJson(__jsonSystemData) : SystemData;} - {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SystemData.FromJson(__jsonSystemData) : _systemData;} + {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_id;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)_type;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Sku.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Sku.json.cs index 6b3d10eb7b1d..536512e72f29 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Sku.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Sku.json.cs @@ -75,8 +75,8 @@ internal Sku(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonObje { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)_tier;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuCapability.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuCapability.json.cs index 41d85ec0f967..d5f83cd18a9e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuCapability.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuCapability.json.cs @@ -77,8 +77,8 @@ internal SkuCapability(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Jso { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)Value;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? (string)__jsonValue : (string)_value;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformation.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformation.json.cs index b1a4b38a6097..b8339e09e65f 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformation.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformation.json.cs @@ -77,12 +77,12 @@ internal SkuInformation(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Js { return; } - {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)Tier;} - {_resourceType = If( json?.PropertyT("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)ResourceType;} - {_location = If( json?.PropertyT("locations"), out var __jsonLocations) ? If( __jsonLocations as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Location;} - {_locationInfo = If( json?.PropertyT("locationInfo"), out var __jsonLocationInfo) ? If( __jsonLocationInfo as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuLocationInfo) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuLocationInfo.FromJson(__p) )) ))() : null : LocationInfo;} - {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? If( __jsonCapabilities as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuCapability) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuCapability.FromJson(__k) )) ))() : null : Capability;} + {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)_name;} + {_tier = If( json?.PropertyT("tier"), out var __jsonTier) ? (string)__jsonTier : (string)_tier;} + {_resourceType = If( json?.PropertyT("resourceType"), out var __jsonResourceType) ? (string)__jsonResourceType : (string)_resourceType;} + {_location = If( json?.PropertyT("locations"), out var __jsonLocations) ? If( __jsonLocations as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _location;} + {_locationInfo = If( json?.PropertyT("locationInfo"), out var __jsonLocationInfo) ? If( __jsonLocationInfo as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __q) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuLocationInfo) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuLocationInfo.FromJson(__p) )) ))() : null : _locationInfo;} + {_capability = If( json?.PropertyT("capabilities"), out var __jsonCapabilities) ? If( __jsonCapabilities as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __l) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuCapability) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuCapability.FromJson(__k) )) ))() : null : _capability;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformationList.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformationList.json.cs index 0117734e742a..1e0b886dd004 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformationList.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuInformationList.json.cs @@ -77,8 +77,8 @@ internal SkuInformationList(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuInformation) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuInformation.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuInformation) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SkuInformation.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuLocationInfo.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuLocationInfo.json.cs index 2a72882e6227..fbc5d354a5eb 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuLocationInfo.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SkuLocationInfo.json.cs @@ -77,8 +77,8 @@ internal SkuLocationInfo(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.J { return; } - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : Zone;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} + {_zone = If( json?.PropertyT("zones"), out var __jsonZones) ? If( __jsonZones as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : _zone;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Snapshot.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Snapshot.json.cs index dc6d6a66bfde..34816a8696e0 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Snapshot.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Snapshot.json.cs @@ -76,7 +76,7 @@ internal Snapshot(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.Jso return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SnapshotProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SnapshotProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotCreationData.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotCreationData.json.cs index 45ab4ab5a39f..302b852176d8 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotCreationData.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotCreationData.json.cs @@ -77,7 +77,7 @@ internal SnapshotCreationData(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runt { return; } - {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;} + {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)_sourceId;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotList.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotList.json.cs index d0d6611a9531..e5e517237679 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotList.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotList.json.cs @@ -77,8 +77,8 @@ internal SnapshotList(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISnapshot) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Snapshot.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISnapshot) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Snapshot.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotProperties.json.cs index 967a2c924858..92dff352ec24 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SnapshotProperties.json.cs @@ -77,10 +77,10 @@ internal SnapshotProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_creationData = If( json?.PropertyT("creationData"), out var __jsonCreationData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SnapshotCreationData.FromJson(__jsonCreationData) : CreationData;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_sourceVolumeSizeGiB = If( json?.PropertyT("sourceVolumeSizeGiB"), out var __jsonSourceVolumeSizeGiB) ? (long?)__jsonSourceVolumeSizeGiB : SourceVolumeSizeGiB;} - {_volumeName = If( json?.PropertyT("volumeName"), out var __jsonVolumeName) ? (string)__jsonVolumeName : (string)VolumeName;} + {_creationData = If( json?.PropertyT("creationData"), out var __jsonCreationData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SnapshotCreationData.FromJson(__jsonCreationData) : _creationData;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_sourceVolumeSizeGiB = If( json?.PropertyT("sourceVolumeSizeGiB"), out var __jsonSourceVolumeSizeGiB) ? (long?)__jsonSourceVolumeSizeGiB : _sourceVolumeSizeGiB;} + {_volumeName = If( json?.PropertyT("volumeName"), out var __jsonVolumeName) ? (string)__jsonVolumeName : (string)_volumeName;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SourceCreationData.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SourceCreationData.json.cs index 645c722d18bb..d2deb5df6d00 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SourceCreationData.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SourceCreationData.json.cs @@ -77,8 +77,8 @@ internal SourceCreationData(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_createSource = If( json?.PropertyT("createSource"), out var __jsonCreateSource) ? (string)__jsonCreateSource : (string)CreateSource;} - {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)SourceId;} + {_createSource = If( json?.PropertyT("createSource"), out var __jsonCreateSource) ? (string)__jsonCreateSource : (string)_createSource;} + {_sourceId = If( json?.PropertyT("sourceId"), out var __jsonSourceId) ? (string)__jsonSourceId : (string)_sourceId;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SystemData.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SystemData.json.cs index 2279fe843cad..d461e48aa400 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SystemData.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/SystemData.json.cs @@ -77,12 +77,12 @@ internal SystemData(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.J { return; } - {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)CreatedBy;} - {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)CreatedByType;} - {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : CreatedAt : CreatedAt;} - {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)LastModifiedBy;} - {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)LastModifiedByType;} - {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : LastModifiedAt : LastModifiedAt;} + {_createdBy = If( json?.PropertyT("createdBy"), out var __jsonCreatedBy) ? (string)__jsonCreatedBy : (string)_createdBy;} + {_createdByType = If( json?.PropertyT("createdByType"), out var __jsonCreatedByType) ? (string)__jsonCreatedByType : (string)_createdByType;} + {_createdAt = If( json?.PropertyT("createdAt"), out var __jsonCreatedAt) ? global::System.DateTime.TryParse((string)__jsonCreatedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonCreatedAtValue) ? __jsonCreatedAtValue : _createdAt : _createdAt;} + {_lastModifiedBy = If( json?.PropertyT("lastModifiedBy"), out var __jsonLastModifiedBy) ? (string)__jsonLastModifiedBy : (string)_lastModifiedBy;} + {_lastModifiedByType = If( json?.PropertyT("lastModifiedByType"), out var __jsonLastModifiedByType) ? (string)__jsonLastModifiedByType : (string)_lastModifiedByType;} + {_lastModifiedAt = If( json?.PropertyT("lastModifiedAt"), out var __jsonLastModifiedAt) ? global::System.DateTime.TryParse((string)__jsonLastModifiedAt, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonLastModifiedAtValue) ? __jsonLastModifiedAtValue : _lastModifiedAt : _lastModifiedAt;} AfterFromJson(json); } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/TrackedResource.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/TrackedResource.json.cs index c179475c6632..df5f48172082 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/TrackedResource.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/TrackedResource.json.cs @@ -109,8 +109,8 @@ internal TrackedResource(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.J return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Resource(json); - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.TrackedResourceTags.FromJson(__jsonTags) : Tag;} - {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.TrackedResourceTags.FromJson(__jsonTags) : _tag;} + {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)_location;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/UserAssignedIdentity.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/UserAssignedIdentity.json.cs index 165710730a43..e0ed1d97cf3d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/UserAssignedIdentity.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/UserAssignedIdentity.json.cs @@ -108,8 +108,8 @@ internal UserAssignedIdentity(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runt { return; } - {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} - {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)ClientId;} + {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)_principalId;} + {_clientId = If( json?.PropertyT("clientId"), out var __jsonClientId) ? (string)__jsonClientId : (string)_clientId;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VirtualNetworkRule.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VirtualNetworkRule.json.cs index 95f8212237a2..4db6632079f7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VirtualNetworkRule.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VirtualNetworkRule.json.cs @@ -102,8 +102,8 @@ internal VirtualNetworkRule(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtim { return; } - {_virtualNetworkResourceId = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)VirtualNetworkResourceId;} - {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)Action;} + {_virtualNetworkResourceId = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)_virtualNetworkResourceId;} + {_action = If( json?.PropertyT("action"), out var __jsonAction) ? (string)__jsonAction : (string)_action;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Volume.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Volume.json.cs index ade6bc3e2a69..d19ade0a10ed 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Volume.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/Volume.json.cs @@ -101,7 +101,7 @@ internal Volume(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonO return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroup.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroup.json.cs index 2bd758fbfeea..881143679b4b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroup.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroup.json.cs @@ -104,8 +104,8 @@ internal VolumeGroup(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json. return; } __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ProxyResource(json); - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Identity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroupProperties.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Identity.FromJson(__jsonIdentity) : _identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroupProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupList.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupList.json.cs index b040ffeba170..11d43d961239 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupList.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupList.json.cs @@ -113,8 +113,8 @@ internal VolumeGroupList(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.J { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolumeGroup) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroup.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolumeGroup) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroup.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupProperties.json.cs index 39a8bfc70887..c19f066b2f51 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupProperties.json.cs @@ -123,12 +123,12 @@ internal VolumeGroupProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Run { return; } - {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionProperties.FromJson(__jsonEncryptionProperties) : EncryptionProperty;} - {_networkAcls = If( json?.PropertyT("networkAcls"), out var __jsonNetworkAcls) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.NetworkRuleSet.FromJson(__jsonNetworkAcls) : NetworkAcls;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} - {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)ProtocolType;} - {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? (string)__jsonEncryption : (string)Encryption;} - {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : PrivateEndpointConnection;} + {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionProperties.FromJson(__jsonEncryptionProperties) : _encryptionProperty;} + {_networkAcls = If( json?.PropertyT("networkAcls"), out var __jsonNetworkAcls) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.NetworkRuleSet.FromJson(__jsonNetworkAcls) : _networkAcls;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} + {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)_protocolType;} + {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? (string)__jsonEncryption : (string)_encryption;} + {_privateEndpointConnection = If( json?.PropertyT("privateEndpointConnections"), out var __jsonPrivateEndpointConnections) ? If( __jsonPrivateEndpointConnections as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IPrivateEndpointConnection) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.PrivateEndpointConnection.FromJson(__u) )) ))() : null : _privateEndpointConnection;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdate.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdate.json.cs index a6706e6c3011..7778894510b2 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdate.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdate.json.cs @@ -102,8 +102,8 @@ internal VolumeGroupUpdate(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime { return; } - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Identity.FromJson(__jsonIdentity) : Identity;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroupUpdateProperties.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Identity.FromJson(__jsonIdentity) : _identity;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeGroupUpdateProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdateProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdateProperties.json.cs index faa87c81728a..6d96f5a2a0ef 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdateProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeGroupUpdateProperties.json.cs @@ -107,9 +107,9 @@ internal VolumeGroupUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticS { return; } - {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionProperties.FromJson(__jsonEncryptionProperties) : EncryptionProperty;} - {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)ProtocolType;} - {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? (string)__jsonEncryption : (string)Encryption;} + {_encryptionProperty = If( json?.PropertyT("encryptionProperties"), out var __jsonEncryptionProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.EncryptionProperties.FromJson(__jsonEncryptionProperties) : _encryptionProperty;} + {_protocolType = If( json?.PropertyT("protocolType"), out var __jsonProtocolType) ? (string)__jsonProtocolType : (string)_protocolType;} + {_encryption = If( json?.PropertyT("encryption"), out var __jsonEncryption) ? (string)__jsonEncryption : (string)_encryption;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeList.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeList.json.cs index 8c48258c3bb6..22c61fa6e7cc 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeList.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeList.json.cs @@ -113,8 +113,8 @@ internal VolumeList(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.J { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolume) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Volume.FromJson(__u) )) ))() : null : Value;} - {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json.JsonArray, out var __v) ? new global::System.Func>(()=> global::System.Linq.Enumerable.ToList(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolume) (Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Volume.FromJson(__u) )) ))() : null : _value;} + {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)_nextLink;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeProperties.json.cs index 6379f4879313..0bb64cc25455 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeProperties.json.cs @@ -115,12 +115,12 @@ internal VolumeProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime. { return; } - {_creationData = If( json?.PropertyT("creationData"), out var __jsonCreationData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SourceCreationData.FromJson(__jsonCreationData) : CreationData;} - {_storageTarget = If( json?.PropertyT("storageTarget"), out var __jsonStorageTarget) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IscsiTargetInfo.FromJson(__jsonStorageTarget) : StorageTarget;} - {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ManagedByInfo.FromJson(__jsonManagedBy) : ManagedBy;} - {_volumeId = If( json?.PropertyT("volumeId"), out var __jsonVolumeId) ? (string)__jsonVolumeId : (string)VolumeId;} - {_sizeGiB = If( json?.PropertyT("sizeGiB"), out var __jsonSizeGiB) ? (long)__jsonSizeGiB : SizeGiB;} - {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} + {_creationData = If( json?.PropertyT("creationData"), out var __jsonCreationData) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.SourceCreationData.FromJson(__jsonCreationData) : _creationData;} + {_storageTarget = If( json?.PropertyT("storageTarget"), out var __jsonStorageTarget) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IscsiTargetInfo.FromJson(__jsonStorageTarget) : _storageTarget;} + {_managedBy = If( json?.PropertyT("managedBy"), out var __jsonManagedBy) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ManagedByInfo.FromJson(__jsonManagedBy) : _managedBy;} + {_volumeId = If( json?.PropertyT("volumeId"), out var __jsonVolumeId) ? (string)__jsonVolumeId : (string)_volumeId;} + {_sizeGiB = If( json?.PropertyT("sizeGiB"), out var __jsonSizeGiB) ? (long)__jsonSizeGiB : _sizeGiB;} + {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)_provisioningState;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdate.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdate.json.cs index d73b0d5ae579..b5479e2a5062 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdate.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdate.json.cs @@ -101,7 +101,7 @@ internal VolumeUpdate(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.Json { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeUpdateProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VolumeUpdateProperties.FromJson(__jsonProperties) : _property;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdateProperties.json.cs b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdateProperties.json.cs index ab2bbeca5c8f..8ba41663bf7d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdateProperties.json.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/api/Models/VolumeUpdateProperties.json.cs @@ -101,7 +101,7 @@ internal VolumeUpdateProperties(Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Ru { return; } - {_sizeGiB = If( json?.PropertyT("sizeGiB"), out var __jsonSizeGiB) ? (long?)__jsonSizeGiB : SizeGiB;} + {_sizeGiB = If( json?.PropertyT("sizeGiB"), out var __jsonSizeGiB) ? (long?)__jsonSizeGiB : _sizeGiB;} AfterFromJson(json); } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanOperation_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanOperation_List.cs index cc445ff9f84e..cc2256c91cb0 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanOperation_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanOperation_List.cs @@ -168,6 +168,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -338,6 +348,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanSkuList_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanSkuList_List.cs index 90b4752c79be..1001fd72b4f4 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanSkuList_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanSkuList_List.cs @@ -200,6 +200,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -373,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_Get.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_Get.cs index 093a88b059a5..7ecc1cf564c9 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_Get.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_Get.cs @@ -231,6 +231,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -404,6 +414,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentity.cs index aa383afb21fb..a13f74647a3c 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentity.cs @@ -177,6 +177,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -371,6 +381,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentityElasticSan.cs index fbb221253ab0..e0e3aa8c6d22 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_GetViaIdentityElasticSan.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -383,6 +393,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_List.cs index c7b3132a673f..4164288cb5f1 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeGroup_List.cs @@ -220,6 +220,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -393,6 +403,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_Get.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_Get.cs index 4c059c8a5948..89562b65c736 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_Get.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_Get.cs @@ -242,6 +242,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -415,6 +425,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentity.cs index 3751d161fe62..24c6c326b055 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentity.cs @@ -175,6 +175,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -373,6 +383,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityElasticSan.cs index 7ca897218d16..0664b667bcf7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityElasticSan.cs @@ -203,6 +203,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -394,6 +404,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityVolumegroup.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityVolumegroup.cs index fd425c40133a..a3e55cc12175 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityVolumegroup.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_GetViaIdentityVolumegroup.cs @@ -189,6 +189,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -384,6 +394,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_List.cs index 6b835b224312..ede626f10bea 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolumeSnapshot_List.cs @@ -250,6 +250,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -423,6 +433,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_Get.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_Get.cs index d45ad66babd7..dcbce2ef70f2 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_Get.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_Get.cs @@ -245,6 +245,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -418,6 +428,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentity.cs index 3a33b84d76b2..b6566be153d7 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentity.cs @@ -177,6 +177,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -375,6 +385,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityElasticSan.cs index 29c5d1b3eda5..d945a4448778 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityElasticSan.cs @@ -206,6 +206,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -397,6 +407,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityVolumegroup.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityVolumegroup.cs index 594ad82a5698..b6242b118000 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityVolumegroup.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_GetViaIdentityVolumegroup.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -387,6 +397,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_List.cs index 7030e37fe153..fe6c478c019f 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSanVolume_List.cs @@ -234,6 +234,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -407,6 +417,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_Get.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_Get.cs index 2bc8e177abac..3033dd969b96 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_Get.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_Get.cs @@ -217,6 +217,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -390,6 +400,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_GetViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_GetViaIdentity.cs index 0d97846216ef..45f703d9ce57 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_GetViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_GetViaIdentity.cs @@ -177,6 +177,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -367,6 +377,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List.cs index 13678b9038b3..d09b02294172 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List.cs @@ -192,6 +192,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -365,6 +375,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List1.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List1.cs index bd51ce11aaa4..5a121313da1e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List1.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/GetAzElasticSan_List1.cs @@ -206,6 +206,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// @@ -379,6 +389,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateExpanded.cs index 36a6f3290a4e..f023c0a73075 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateExpanded.cs @@ -380,6 +380,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -599,6 +609,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityElasticSanExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityElasticSanExpanded.cs index bf091f2d4740..0b2a8b75bdd1 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityElasticSanExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityElasticSanExpanded.cs @@ -340,6 +340,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -581,6 +591,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityExpanded.cs index f5ec22a52502..65b832a48cc8 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeGroup_CreateViaIdentityExpanded.cs @@ -322,6 +322,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -565,6 +575,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateExpanded.cs index dfa26b1611de..66af296ba706 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateExpanded.cs @@ -297,6 +297,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -516,6 +526,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityElasticSanExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityElasticSanExpanded.cs index dd6ad90f8a6a..ae4fb6d7e73b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityElasticSanExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityElasticSanExpanded.cs @@ -257,6 +257,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -498,6 +508,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityExpanded.cs index 95815c3fe21b..036a1d936ba1 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityExpanded.cs @@ -225,6 +225,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -472,6 +482,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded.cs index 8fbcbf98df95..b93c627b6f67 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolumeSnapshot_CreateViaIdentityVolumegroupExpanded.cs @@ -242,6 +242,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -487,6 +497,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateExpanded.cs index ae88528397b9..6df4a57ac1ea 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateExpanded.cs @@ -333,6 +333,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -556,6 +566,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityElasticSanExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityElasticSanExpanded.cs index 476e53b0b261..402f03107d75 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityElasticSanExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityElasticSanExpanded.cs @@ -293,6 +293,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -537,6 +547,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityExpanded.cs index c273bd2ecfef..da9f0d019de4 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityExpanded.cs @@ -260,6 +260,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -511,6 +521,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityVolumegroupExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityVolumegroupExpanded.cs index 4fdfcc3234dc..0284a1d79959 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityVolumegroupExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSanVolume_CreateViaIdentityVolumegroupExpanded.cs @@ -278,6 +278,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -526,6 +536,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateExpanded.cs index 67bb31574cd7..ed28d6e60b4c 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateExpanded.cs @@ -350,6 +350,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -569,6 +579,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateViaIdentityExpanded.cs index 85c71dfde367..4caa40daa578 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/NewAzElasticSan_CreateViaIdentityExpanded.cs @@ -307,6 +307,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -546,6 +556,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_Delete.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_Delete.cs index 9ed5cd726cdf..a2fc16b1a517 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_Delete.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_Delete.cs @@ -281,6 +281,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentity.cs index 1ec9835fbf13..f763467c7351 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -466,6 +476,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentityElasticSan.cs index 8bfd3ab90565..6e77cec62e20 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeGroup_DeleteViaIdentityElasticSan.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -481,6 +491,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_Delete.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_Delete.cs index 13de27adc978..da5c60bc65fd 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_Delete.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_Delete.cs @@ -295,6 +295,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -514,6 +524,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentity.cs index f3bcce2b467e..a1811c659409 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,6 +480,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityElasticSan.cs index d86c1493d743..dbee9d6ea5c3 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityElasticSan.cs @@ -255,6 +255,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -495,6 +505,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup.cs index b33c32cf3c4f..10ae7ff0b2d1 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolumeSnapshot_DeleteViaIdentityVolumegroup.cs @@ -240,6 +240,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -485,6 +495,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_Delete.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_Delete.cs index 1856865ab96c..baa0d08fd0d3 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_Delete.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_Delete.cs @@ -332,6 +332,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -551,6 +561,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentity.cs index af3e690f7a16..9da744bce0e4 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentity.cs @@ -259,6 +259,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -506,6 +516,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityElasticSan.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityElasticSan.cs index 1fed1e7e9ff2..c6728d866d4b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityElasticSan.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityElasticSan.cs @@ -290,6 +290,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -530,6 +540,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityVolumegroup.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityVolumegroup.cs index 5ccf3cb763fb..506085cd9f8e 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityVolumegroup.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSanVolume_DeleteViaIdentityVolumegroup.cs @@ -275,6 +275,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -519,6 +529,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_Delete.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_Delete.cs index 367b4c5c246a..a233032dd7a3 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_Delete.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_Delete.cs @@ -266,6 +266,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -485,6 +495,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_DeleteViaIdentity.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_DeleteViaIdentity.cs index 1336ce4d7a23..42630e32c05d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_DeleteViaIdentity.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/RemoveAzElasticSan_DeleteViaIdentity.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -462,6 +472,21 @@ protected override void StopProcessing() base.StopProcessing(); } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateExpanded.cs index 4e78c869b808..da16efc6f387 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateExpanded.cs @@ -380,6 +380,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -599,6 +609,21 @@ public UpdateAzElasticSanVolumeGroup_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityElasticSanExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityElasticSanExpanded.cs index 19df651037b3..86b2e15d066f 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityElasticSanExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityElasticSanExpanded.cs @@ -340,6 +340,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -581,6 +591,21 @@ public UpdateAzElasticSanVolumeGroup_UpdateViaIdentityElasticSanExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityExpanded.cs index 6208299aa217..c7691c3581e6 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolumeGroup_UpdateViaIdentityExpanded.cs @@ -322,6 +322,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -565,6 +575,21 @@ public UpdateAzElasticSanVolumeGroup_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateExpanded.cs index bf42c5e3488c..cb478c36f4c8 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateExpanded.cs @@ -296,6 +296,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -515,6 +525,21 @@ public UpdateAzElasticSanVolume_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityElasticSanExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityElasticSanExpanded.cs index fc74229d1616..7f49e865037b 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityElasticSanExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityElasticSanExpanded.cs @@ -256,6 +256,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -496,6 +506,21 @@ public UpdateAzElasticSanVolume_UpdateViaIdentityElasticSanExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityExpanded.cs index 94e99699854a..b1418654ae06 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityExpanded.cs @@ -223,6 +223,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -470,6 +480,21 @@ public UpdateAzElasticSanVolume_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded.cs index 876b1cec7df9..441537192b06 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded.cs @@ -241,6 +241,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -486,6 +496,21 @@ public UpdateAzElasticSanVolume_UpdateViaIdentityVolumegroupExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateExpanded.cs index 2df950a5ce77..3aaa13c406a6 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateExpanded.cs @@ -304,6 +304,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -523,6 +533,21 @@ public UpdateAzElasticSan_UpdateExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateViaIdentityExpanded.cs b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateViaIdentityExpanded.cs index 156e753ebf2e..5752f15853f9 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateViaIdentityExpanded.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/cmdlets/UpdateAzElasticSan_UpdateViaIdentityExpanded.cs @@ -261,6 +261,16 @@ protected override void EndProcessing() // Flush buffer WriteObject(_firstResponse); } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (!string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName ?? "Unknown"} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } } /// Handles/Dispatches events during the call to the REST service. @@ -500,6 +510,21 @@ public UpdateAzElasticSan_UpdateViaIdentityExpanded() } + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + /// /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs index 04840a07fe66..671557b98f10 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportProxyCmdlet.cs @@ -70,9 +70,8 @@ protected override void ProcessRecord() var variantGroups = profileGroups.SelectMany(pg => pg.Variants .GroupBy(v => new { v.CmdletName, v.IsInternal }) .Select(vg => new VariantGroup(ModuleName, vg.Key.CmdletName, vg.Select(v => v).ToArray(), - Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) + Path.Combine(vg.Key.IsInternal ? InternalFolder : ExportsFolder, pg.ProfileFolder), pg.ProfileName, isInternal: vg.Key.IsInternal))) .ToArray(); - var license = new StringBuilder(); license.Append(@" # ---------------------------------------------------------------------------------- @@ -114,6 +113,7 @@ protected override void ProcessRecord() sb.Append("param("); sb.Append($"{(parameterGroups.Any() ? Environment.NewLine : String.Empty)}"); + foreach (var parameterGroup in parameterGroups) { var parameters = parameterGroup.HasAllVariants ? parameterGroup.Parameters.Take(1) : parameterGroup.Parameters; diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs index e556aa34836e..03903a065536 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Cmdlets/ExportTestStub.cs @@ -12,50 +12,96 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PowerShell { - [Cmdlet(VerbsData.Export, "TestStub")] - [DoNotExport] - public class ExportTestStub : PSCmdlet - { - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ModuleName { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string ExportsFolder { get; set; } - - [Parameter(Mandatory = true)] - [ValidateNotNullOrEmpty] - public string OutputFolder { get; set; } - - [Parameter] - public SwitchParameter IncludeGenerated { get; set; } - - protected override void ProcessRecord() + [Cmdlet(VerbsData.Export, "TestStub")] + [DoNotExport] + public class ExportTestStub : PSCmdlet { - try - { - if (!Directory.Exists(ExportsFolder)) - { - throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); - } + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ModuleName { get; set; } - var exportDirectories = Directory.GetDirectories(ExportsFolder); - if (!exportDirectories.Any()) - { - exportDirectories = new[] { ExportsFolder }; - } - var utilFile = Path.Combine(OutputFolder, "utils.ps1"); - if (!File.Exists(utilFile)) + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string ExportsFolder { get; set; } + + [Parameter(Mandatory = true)] + [ValidateNotNullOrEmpty] + public string OutputFolder { get; set; } + + [Parameter] + public SwitchParameter IncludeGenerated { get; set; } + + protected override void ProcessRecord() { - var sc = new StringBuilder(); - sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { + try + { + if (!Directory.Exists(ExportsFolder)) + { + throw new ArgumentException($"Exports folder '{ExportsFolder}' does not exist"); + } + + var exportDirectories = Directory.GetDirectories(ExportsFolder); + if (!exportDirectories.Any()) + { + exportDirectories = new[] { ExportsFolder }; + } + /*var loadEnvFile = Path.Combine(OutputFolder, "loadEnv.ps1"); + if (!File.Exists(loadEnvFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@" +$envFile = 'env.json' +if ($TestMode -eq 'live') { + $envFile = 'localEnv.json' +} + +if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) { + $envFilePath = Join-Path $PSScriptRoot $envFile +} else { + $envFilePath = Join-Path $PSScriptRoot '..\$envFile' +} +$env = @{} +if (Test-Path -Path $envFilePath) { + $env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json +}"); + File.WriteAllText(loadEnvFile, sc.ToString()); + }*/ + var utilFile = Path.Combine(OutputFolder, "utils.ps1"); + if (!File.Exists(utilFile)) + { + var sc = new StringBuilder(); + sc.AppendLine(@"function RandomString([bool]$allChars, [int32]$len) { if ($allChars) { return -join ((33..126) | Get-Random -Count $len | % {[char]$_}) } else { return -join ((48..57) + (97..122) | Get-Random -Count $len | % {[char]$_}) } } +function Start-TestSleep { + [CmdletBinding(DefaultParameterSetName = 'SleepBySeconds')] + param( + [parameter(Mandatory = $true, Position = 0, ParameterSetName = 'SleepBySeconds')] + [ValidateRange(0.0, 2147483.0)] + [double] $Seconds, + + [parameter(Mandatory = $true, ParameterSetName = 'SleepByMilliseconds')] + [ValidateRange('NonNegative')] + [Alias('ms')] + [int] $Milliseconds + ) + + if ($TestMode -ne 'playback') { + switch ($PSCmdlet.ParameterSetName) { + 'SleepBySeconds' { + Start-Sleep -Seconds $Seconds + } + 'SleepByMilliseconds' { + Start-Sleep -Milliseconds $Milliseconds + } + } + } +} + $env = @{} if ($UsePreviousConfigForRecord) { $previousEnv = Get-Content (Join-Path $PSScriptRoot 'env.json') | ConvertFrom-Json @@ -80,37 +126,40 @@ function cleanupEnv() { # Clean resources you create for testing } "); - File.WriteAllText(utilFile, sc.ToString()); - } - foreach (var exportDirectory in exportDirectories) - { - var outputFolder = OutputFolder; - if (exportDirectory != ExportsFolder) - { - outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); - Directory.CreateDirectory(outputFolder); - } - - var variantGroups = GetScriptCmdlets(exportDirectory) - .SelectMany(fi => fi.ToVariants()) - .Where(v => !v.IsDoNotExport) - .GroupBy(v => v.CmdletName) - .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) - .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); - - foreach (var variantGroup in variantGroups) - { - var sb = new StringBuilder(); - sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); - sb.AppendLine(@"{ + File.WriteAllText(utilFile, sc.ToString()); + } + + + + foreach (var exportDirectory in exportDirectories) + { + var outputFolder = OutputFolder; + if (exportDirectory != ExportsFolder) + { + outputFolder = Path.Combine(OutputFolder, Path.GetFileName(exportDirectory)); + Directory.CreateDirectory(outputFolder); + } + + var variantGroups = GetScriptCmdlets(exportDirectory) + .SelectMany(fi => fi.ToVariants()) + .Where(v => !v.IsDoNotExport) + .GroupBy(v => v.CmdletName) + .Select(vg => new VariantGroup(ModuleName, vg.Key, vg.Select(v => v).ToArray(), outputFolder, isTest: true)) + .Where(vtg => !File.Exists(vtg.FilePath) && (IncludeGenerated || !vtg.IsGenerated)); + + foreach (var variantGroup in variantGroups) + { + var sb = new StringBuilder(); + sb.AppendLine($"if(($null -eq $TestName) -or ($TestName -contains '{variantGroup.CmdletName}'))"); + sb.AppendLine(@"{ $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' if (-Not (Test-Path -Path $loadEnvPath)) { $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' } . ($loadEnvPath)" -); - sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); - sb.AppendLine(@" $currentPath = $PSScriptRoot + ); + sb.AppendLine($@" $TestRecordingFile = Join-Path $PSScriptRoot '{variantGroup.CmdletName}.Recording.json'"); + sb.AppendLine(@" $currentPath = $PSScriptRoot while(-not $mockingPath) { $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File $currentPath = Split-Path -Path $currentPath -Parent @@ -120,29 +169,29 @@ function cleanupEnv() { "); - sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); - var variants = variantGroup.Variants - .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) - .ToList(); + sb.AppendLine($"Describe '{variantGroup.CmdletName}' {{"); + var variants = variantGroup.Variants + .Where(v => IncludeGenerated || !v.Attributes.OfType().Any()) + .ToList(); - foreach (var variant in variants) + foreach (var variant in variants) + { + sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); + sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); + var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; + sb.AppendLine($"{Indent}}}{variantSeparator}"); + } + sb.AppendLine("}"); + + File.WriteAllText(variantGroup.FilePath, sb.ToString()); + } + } + } + catch (Exception ee) { - sb.AppendLine($"{Indent}It '{variant.VariantName}' -skip {{"); - sb.AppendLine($"{Indent}{Indent}{{ throw [System.NotImplementedException] }} | Should -Not -Throw"); - var variantSeparator = variants.IndexOf(variant) == variants.Count - 1 ? String.Empty : Environment.NewLine; - sb.AppendLine($"{Indent}}}{variantSeparator}"); + Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); + throw ee; } - sb.AppendLine("}"); - - File.WriteAllText(variantGroup.FilePath, sb.ToString()); - } } - } - catch (Exception ee) - { - Console.WriteLine($"${ee.GetType().Name}/{ee.StackTrace}"); - throw ee; - } } - } } diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs index d1d4e951cab9..747b0ac8b1ba 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/MarkdownRenderer.cs @@ -94,7 +94,7 @@ public static void WriteMarkdowns(IEnumerable variantGroups, PsMod sb.Append($"## RELATED LINKS{Environment.NewLine}{Environment.NewLine}"); foreach (var relatedLink in markdownInfo.RelatedLinks) { - sb.Append($"{relatedLink}{Environment.NewLine}{Environment.NewLine}"); + sb.Append($"[{relatedLink}]({relatedLink}){Environment.NewLine}{Environment.NewLine}"); } File.WriteAllText(Path.Combine(docsFolder, $"{markdownInfo.CmdletName}.md"), sb.ToString()); diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index 75dc72cb640b..c644d9d8fc55 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -188,6 +188,7 @@ internal class BaseOutput public VariantGroup VariantGroup { get; } protected static readonly bool IsAzure = Convert.ToBoolean(@"true"); + public BaseOutput(VariantGroup variantGroup) { VariantGroup = variantGroup; @@ -206,12 +207,13 @@ public BeginOutput(VariantGroup variantGroup) : base(variantGroup) public string GetProcessCustomAttributesAtRuntime() { - return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] + return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet] {Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) {Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{ {Indent}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) {Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) -{Indent}{Indent}}}"; +{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) +{Indent}{Indent}[Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)"; } private string GetTelemetry() @@ -288,12 +290,31 @@ private string GetDefaultValuesStatements() { setCondition = $" -and {defaultInfo.SetCondition}"; } - sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); - sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); - sb.Append($"{Indent}{Indent}}}"); + //Yabo: this is bad to hard code the subscription id, but autorest load input README.md reversely (entry readme -> required readme), there are no other way to + //override default value set in required readme + if ("SubscriptionId".Equals(parameterName)) + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$testPlayback = $false"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object {{ $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) }}"); + sb.AppendLine($"{Indent}{Indent}{Indent}if ($testPlayback) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')"); + sb.AppendLine($"{Indent}{Indent}{Indent}}} else {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.AppendLine($"{Indent}{Indent}{Indent}}}"); + sb.Append($"{Indent}{Indent}}}"); + } + else + { + sb.AppendLine($"{Indent}{Indent}if (({variantListString}) -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('{parameterName}'){setCondition}) {{"); + sb.AppendLine($"{Indent}{Indent}{Indent}$PSBoundParameters['{parameterName}'] = {defaultInfo.Script}"); + sb.Append($"{Indent}{Indent}}}"); + } + } return sb.ToString(); } + } internal class ProcessOutput : BaseOutput diff --git a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs index 833637ae5c81..04c67f93ba14 100644 --- a/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs +++ b/src/ElasticSan/ElasticSan.Autorest/generated/runtime/BuildTime/Models/PsProxyTypes.cs @@ -31,7 +31,7 @@ internal class VariantGroup { public string ModuleName { get; } - public string RootModuleName {get => @"";} + public string RootModuleName { get => @""; } public string CmdletName { get; } public string CmdletVerb { get; } public string CmdletNoun { get; } @@ -49,7 +49,6 @@ internal class VariantGroup public PsHelpInfo HelpInfo { get; } public bool IsGenerated { get; } public bool IsInternal { get; } - public string OutputFolder { get; } public string FileName { get; } public string FilePath { get; } @@ -84,7 +83,6 @@ public VariantGroup(string moduleName, string cmdletName, Variant[] variants, st HelpInfo = Variants.Select(v => v.HelpInfo).FirstOrDefault() ?? new PsHelpInfo(); IsGenerated = Variants.All(v => v.Attributes.OfType().Any()); IsInternal = isInternal; - OutputFolder = outputFolder; FileName = $"{CmdletName}{(isTest ? ".Tests" : String.Empty)}.ps1"; FilePath = Path.Combine(OutputFolder, FileName); @@ -258,7 +256,6 @@ internal class Parameter public ParameterMetadata Metadata { get; } public PsParameterHelpInfo HelpInfo { get; } public Type ParameterType { get; } - public Attribute[] Attributes { get; } public ParameterCategory[] Categories { get; } public ParameterCategory OrderCategory { get; } @@ -311,10 +308,10 @@ public Parameter(string variantName, string parameterName, ParameterMetadata met IsMandatory = ParameterAttribute.Mandatory; var complexParameterName = ParameterName.ToUpperInvariant(); - var complexMessage = $"{Environment.NewLine}To construct, see NOTES section for {complexParameterName} properties and create a hash table."; + var complexMessage = $"{Environment.NewLine}"; var description = ParameterAttribute.HelpMessage.NullIfEmpty() ?? HelpInfo.Description.NullIfEmpty() ?? InfoAttribute?.Description.NullIfEmpty() ?? String.Empty; // Remove the complex type message as it will be reinserted if this is a complex type - description = description.NormalizeNewLines().Replace(complexMessage, String.Empty).Replace(complexMessage.ToPsSingleLine(), String.Empty); + description = description.NormalizeNewLines(); // Make an InfoAttribute for processing only if one isn't provided InfoAttribute = Attributes.OfType().FirstOrDefault() ?? new InfoAttribute { PossibleTypes = new[] { ParameterType.Unwrap() }, Required = IsMandatory }; // Set the description if the InfoAttribute does not have one since they are exported without a description @@ -334,7 +331,7 @@ internal class ComplexInterfaceInfo public bool Required { get; } public bool ReadOnly { get; } public string Description { get; } - + public ComplexInterfaceInfo[] NestedInfos { get; } public bool IsComplexInterface { get; } @@ -351,7 +348,7 @@ public ComplexInterfaceInfo(string name, Type type, InfoAttribute infoAttribute, var unwrappedType = Type.Unwrap(); var hasBeenSeen = seenTypes?.Contains(unwrappedType) ?? false; (seenTypes ?? (seenTypes = new List())).Add(unwrappedType); - NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[]{} : + NestedInfos = hasBeenSeen ? new ComplexInterfaceInfo[] { } : unwrappedType.GetInterfaces() .Concat(InfoAttribute.PossibleTypes) .SelectMany(pt => pt.GetProperties() @@ -440,7 +437,7 @@ public CompleterInfo(ArgumentCompleterAttribute completerAttribute) } } - internal class PSArgumentCompleterInfo: CompleterInfo + internal class PSArgumentCompleterInfo : CompleterInfo { public string[] ResourceTypes { get; } @@ -511,7 +508,8 @@ public static Parameter[] ToParameters(this Variant variant) parameterHelp = parameterHelp.Where(ph => (!ph.ParameterSetNames.Any() || ph.ParameterSetNames.Any(psn => psn == variant.VariantName || psn == AllParameterSets)) && ph.Name != "IncludeTotalCount"); } var result = parameters.Select(p => new Parameter(variant.VariantName, p.Key, p.Value, parameterHelp.FirstOrDefault(ph => ph.Name == p.Key))); - if (variant.SupportsPaging) { + if (variant.SupportsPaging) + { // If supportsPaging is set, we will need to add First and Skip parameters since they are treated as common parameters which as not contained on Metadata>parameters variant.Info.Parameters["First"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Gets only the first 'n' objects."; variant.Info.Parameters["Skip"].Attributes.OfType().FirstOrDefault(pa => pa.ParameterSetName == variant.VariantName || pa.ParameterSetName == AllParameterSets).HelpMessage = "Ignores the first 'n' objects and then gets the remaining objects."; diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Add-AzElasticSanVolumeGroupNetworkRule.md b/src/ElasticSan/ElasticSan.Autorest/help/Add-AzElasticSanVolumeGroupNetworkRule.md new file mode 100644 index 000000000000..eba72bb1de20 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Add-AzElasticSanVolumeGroupNetworkRule.md @@ -0,0 +1,255 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/add-azelasticsanvolumegroupnetworkrule +schema: 2.0.0 +--- + +# Add-AzElasticSanVolumeGroupNetworkRule + +## SYNOPSIS +Add a list of virtual network rules to a VolumeGroup + +## SYNTAX + +### NetworkRuleObject (Default) +``` +Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName + -VolumeGroupName -NetworkAclsVirtualNetworkRule [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### NetworkRuleResourceId +``` +Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName + -VolumeGroupName -NetworkAclsVirtualNetworkResourceId [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Add a list of virtual network rules to a VolumeGroup + +## EXAMPLES + +### Example 1: Add network rules to a volume group by NetworkAclsVirtualNetworkRule objects +```powershell +$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow + +Add-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2 +``` + +```output +Action State VirtualNetworkResourceId +------ ----- ------------------------ +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1 +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2 +``` + +This example creates two NetworkAclsVirtualNetworkRule objects using virtual network resource Ids, and then adds the network rules to a volume group. +The command outputs all the network rule objects in the volume group after the addition operation. + +### Example 2: Add network rules to a volume group by resource Ids +```powershell +$virtualNetworkResourceId1 = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" +$virtualNetworkResourceId2 = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" + +Add-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -NetworkAclsVirtualNetworkResourceId $virtualNetworkResourceId1,$virtualNetworkResourceId2 +``` + +```output +Action State VirtualNetworkResourceId +------ ----- ------------------------ +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1 +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2 +``` + +This example adds two virtual network rules to a volume group using the network rule resource Ids. +The command outputs all the network rule objects in the volume group after the addition operation. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkResourceId +The list of virtual network rule resource Ids. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: System.String[] +Parameter Sets: NetworkRuleResourceId +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkRule +The list of virtual network rules. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] +Parameter Sets: NetworkRuleObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule[] + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Az.ElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/help/Az.ElasticSan.md new file mode 100644 index 000000000000..1f567482fca5 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Az.ElasticSan.md @@ -0,0 +1,70 @@ +--- +Module Name: Az.ElasticSan +Module Guid: ed90c36c-f150-4ad2-96ae-57e0ebb0a376 +Download Help Link: https://learn.microsoft.com/powershell/module/az.elasticsan +Help Version: 1.0.0.0 +Locale: en-US +--- + +# Az.ElasticSan Module +## Description +Microsoft Azure PowerShell: ElasticSan cmdlets + +## Az.ElasticSan Cmdlets +### [Add-AzElasticSanVolumeGroupNetworkRule](Add-AzElasticSanVolumeGroupNetworkRule.md) +Add a list of virtual network rules to a VolumeGroup + +### [Get-AzElasticSan](Get-AzElasticSan.md) +Get either a list of Elastic SANs from a subscription or a resource group, or get a single Elastic SAN. + +### [Get-AzElasticSanSkuList](Get-AzElasticSanSkuList.md) +List all the available Skus in the region and information related to them + +### [Get-AzElasticSanVolume](Get-AzElasticSanVolume.md) +Get either a list of all volumes from a volume group or get a single volume from a volume group. + +### [Get-AzElasticSanVolumeGroup](Get-AzElasticSanVolumeGroup.md) +Get either a list of all volume groups from an Elastic SAN or get a single volume group from an Elastic SAN. + +### [Get-AzElasticSanVolumeSnapshot](Get-AzElasticSanVolumeSnapshot.md) +Get a Volume Snapshot. + +### [New-AzElasticSan](New-AzElasticSan.md) +Create ElasticSan. + +### [New-AzElasticSanVirtualNetworkRuleObject](New-AzElasticSanVirtualNetworkRuleObject.md) +Create an in-memory object for VirtualNetworkRule. + +### [New-AzElasticSanVolume](New-AzElasticSanVolume.md) +Create a Volume. + +### [New-AzElasticSanVolumeGroup](New-AzElasticSanVolumeGroup.md) +Create a Volume Group. + +### [New-AzElasticSanVolumeSnapshot](New-AzElasticSanVolumeSnapshot.md) +Create a Volume Snapshot. + +### [Remove-AzElasticSan](Remove-AzElasticSan.md) +Delete a Elastic San. + +### [Remove-AzElasticSanVolume](Remove-AzElasticSanVolume.md) +Delete an Volume. + +### [Remove-AzElasticSanVolumeGroup](Remove-AzElasticSanVolumeGroup.md) +Delete an VolumeGroup. + +### [Remove-AzElasticSanVolumeGroupNetworkRule](Remove-AzElasticSanVolumeGroupNetworkRule.md) +Remove a list of virtual network rules from a VolumeGroup + +### [Remove-AzElasticSanVolumeSnapshot](Remove-AzElasticSanVolumeSnapshot.md) +Delete a Volume Snapshot. + +### [Update-AzElasticSan](Update-AzElasticSan.md) +Update a Elastic San. + +### [Update-AzElasticSanVolume](Update-AzElasticSanVolume.md) +Update an Volume. + +### [Update-AzElasticSanVolumeGroup](Update-AzElasticSanVolumeGroup.md) +Update an VolumeGroup. + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSan.md new file mode 100644 index 000000000000..16f0d0ae5ddc --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSan.md @@ -0,0 +1,282 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsan +schema: 2.0.0 +--- + +# Get-AzElasticSan + +## SYNOPSIS +Get either a list of Elastic SANs from a subscription or a resource group, or get a single Elastic SAN. + +## SYNTAX + +### List (Default) +``` +Get-AzElasticSan [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzElasticSan -InputObject [-DefaultProfile ] [] +``` + +### List1 +``` +Get-AzElasticSan -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get either a list of Elastic SANs from a subscription or a resource group, or get a single Elastic SAN. + +## EXAMPLES + +### Example 1: Get all Elastic SANs in a subscription +```powershell +Get-AzElasticSan +``` + +```output +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup + /providers/Microsoft.ElasticSan/elasticSans/myelasticsan1 +Location : eastus +Name : myelasticsan1 +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 9/19/2022 9:50:25 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 9:50:25 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 0 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 0 + +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr + osoft.ElasticSan/elasticSans/myelasticsan2 +Location : eastus +Name : myelasticsan2 +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 8/18/2022 8:42:21 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 100 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 7 +``` + +This command gets all the Elastic SANs in a subscription. + +### Example 2: Get all Elastic Sans in a resource group +```powershell +Get-AzElasticSan -ResourceGroupName myresourcegroup +``` + +```output +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup + /providers/Microsoft.ElasticSan/elasticSans/myelasticsan1 +Location : eastus +Name : myelasticsan1 +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 9/19/2022 9:50:25 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 9:50:25 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 0 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 0 + +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr + osoft.ElasticSan/elasticSans/myelasticsan2 +Location : eastus +Name : myelasticsan2 +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 8/18/2022 8:42:21 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 100 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 7 +``` + +This command gets all Elastic SANs in a resource group. + +### Example 3: Get a specific Elastic SAN +```powershell +Get-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan +``` + +```output +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr + osoft.ElasticSan/elasticSans/myelasticsan +Location : eastus +Name : myelasticsan +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 8/18/2022 8:42:21 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 8/18/2022 8:42:21 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 100 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 7 +``` + +This command gets a specific Elastic SAN. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Get +Aliases: ElasticSanName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List1 +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List, List1 +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSan + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanSkuList.md b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanSkuList.md new file mode 100644 index 000000000000..c688fb137089 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanSkuList.md @@ -0,0 +1,99 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanskulist +schema: 2.0.0 +--- + +# Get-AzElasticSanSkuList + +## SYNOPSIS +List all the available Skus in the region and information related to them + +## SYNTAX + +``` +Get-AzElasticSanSkuList [-SubscriptionId ] [-Filter ] [-DefaultProfile ] + [] +``` + +## DESCRIPTION +List all the available Skus in the region and information related to them + +## EXAMPLES + +### Example 1: Get all the available Skus +```powershell +Get-AzElasticSanSkuList +``` + +```output +Location Name ResourceType Tier +-------- ---- ------------ ---- +{eastus} Premium_LRS elasticSans Premium +{eastus2} Premium_LRS elasticSans Premium +``` + +This command gets all the available Skus. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +Specify $filter='location eq \' to filter on location. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISkuInformation + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolume.md new file mode 100644 index 000000000000..c3f9c4ba2942 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolume.md @@ -0,0 +1,280 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolume +schema: 2.0.0 +--- + +# Get-AzElasticSanVolume + +## SYNOPSIS +Get either a list of all volumes from a volume group or get a single volume from a volume group. + +## SYNTAX + +### List (Default) +``` +Get-AzElasticSanVolume -ElasticSanName -ResourceGroupName -VolumeGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzElasticSanVolume -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityElasticSan +``` +Get-AzElasticSanVolume -ElasticSanInputObject -Name -VolumeGroupName + [-DefaultProfile ] [] +``` + +### GetViaIdentityVolumegroup +``` +Get-AzElasticSanVolume -Name -VolumegroupInputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get either a list of all volumes from a volume group or get a single volume from a volume group. + +## EXAMPLES + +### Example 1: Get all volumes in a volume group +```powershell +Get-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup +``` + +```output +CreationDataCreateSource : +CreationDataSourceUri : +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup/volumes/myvolume1 +Name : myvolume1 +SizeGiB : 120 +StorageTargetIqn : iqn.2022-09.net.windows.core.blob.ElasticSan.es-3ibot5m2r3y0:myvolume1 +StorageTargetPortalHostname : es-3ibot5m2r3y0.z1.blob.storage.azure.net +StorageTargetPortalPort : 3260 +StorageTargetProvisioningState : Succeeded +StorageTargetStatus : Running +SystemDataCreatedAt : 9/19/2022 2:39:28 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans +VolumeId : abababab-abab-abab-abab-abababababab + +CreationDataCreateSource : +CreationDataSourceUri : +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup/volumes/myvolume2 +Name : myvolume2 +SizeGiB : 100 +StorageTargetIqn : iqn.2022-09.net.windows.core.blob.ElasticSan.es-3ibot5m2r3y0:myvolume2 +StorageTargetPortalHostname : es-3ibot5m2r3y0.z1.blob.storage.azure.net +StorageTargetPortalPort : 3260 +StorageTargetProvisioningState : Succeeded +StorageTargetStatus : Running +SystemDataCreatedAt : 9/19/2022 2:39:28 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans +VolumeId : cdcdcdcd-cdcd-cdcd-cdcd-cdcdcdcdcdcd +``` + +This command gets all the volumes in a volume group. + +### Example 2: Get a specific volume +```powershell +Get-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume +``` + +```output +CreationDataCreateSource : +CreationDataSourceUri : +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup/volumes/myvolume +Name : myvolume +SizeGiB : 100 +StorageTargetIqn : iqn.2022-09.net.windows.core.blob.ElasticSan.es-3ibot5m2r3y0:myvolume +StorageTargetPortalHostname : es-3ibot5m2r3y0.z1.blob.storage.azure.net +StorageTargetPortalPort : 3260 +StorageTargetProvisioningState : Succeeded +StorageTargetStatus : Running +SystemDataCreatedAt : 9/19/2022 2:39:28 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans +VolumeId : abababab-abab-abab-abab-abababababab +``` + +This command gets a specific volume. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Volume. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityElasticSan, GetViaIdentityVolumegroup +Aliases: VolumeName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityElasticSan, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolume + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeGroup.md new file mode 100644 index 000000000000..ebcfbec6b0e1 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeGroup.md @@ -0,0 +1,231 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolumegroup +schema: 2.0.0 +--- + +# Get-AzElasticSanVolumeGroup + +## SYNOPSIS +Get either a list of all volume groups from an Elastic SAN or get a single volume group from an Elastic SAN. + +## SYNTAX + +### List (Default) +``` +Get-AzElasticSanVolumeGroup -ElasticSanName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityElasticSan +``` +Get-AzElasticSanVolumeGroup -ElasticSanInputObject -Name + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get either a list of all volume groups from an Elastic SAN or get a single volume group from an Elastic SAN. + +## EXAMPLES + +### Example 1: Get all volume groups in an Elastic SAN +```powershell +Get-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup1 +Name : myvolumegroup1 +NetworkAclsVirtualNetworkRule : +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 8/18/2022 8:43:35 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 8/18/2022 8:43:35 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans + +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup2 +Name : myvolumegroup2 +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet3, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet4, + /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/20/2022 2:37:33 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/20/2022 2:37:33 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans +``` + +This command gets all the volume groups in the Elastic SAN myelasticsan. + +### Example 2: Get a specific volume group +```powershell +Get-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/19/2022 7:05:47 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +Type : Microsoft.ElasticSan/ElasticSans +``` + +This command gets a specific volume group. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityElasticSan +Aliases: VolumeGroupName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolumeGroup + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeSnapshot.md new file mode 100644 index 000000000000..4e7ad018c259 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Get-AzElasticSanVolumeSnapshot.md @@ -0,0 +1,320 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolumesnapshot +schema: 2.0.0 +--- + +# Get-AzElasticSanVolumeSnapshot + +## SYNOPSIS +Get a Volume Snapshot. + +## SYNTAX + +### List (Default) +``` +Get-AzElasticSanVolumeSnapshot -ElasticSanName -ResourceGroupName -VolumeGroupName + [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityElasticSan +``` +Get-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name + -VolumeGroupName [-DefaultProfile ] [] +``` + +### GetViaIdentityVolumegroup +``` +Get-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get a Volume Snapshot. + +## EXAMPLES + +### Example 1: List snapshots under a volume group +```powershell +Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup +``` + +```output +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1 +Name : mysnap1 +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 3:37:01 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : myvolume + +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap2 +Name : mysnap2 +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 4:06:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 4:06:13 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : myvolume +``` + +This command lists all snapshots under a volume group. + +### Example 2: Get a specific snapshot +```powershell + Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name mysnap1 +``` + +```output +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1 +Name : mysnap1 +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 3:37:01 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : myvolume +``` + +This command gets a snapshot named "mysnap1" under the volume group "myvolumegroup" + +### Example 3: List snapshots of a volume with filter +```powershell +Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Filter 'volumeName eq myvolume' +``` + +```output +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1 +Name : mysnap1 +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 3:37:01 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : myvolume + +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap2 +Name : mysnap2 +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 4:06:13 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 4:06:13 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : myvolume +``` + +This command lists snapshots of volume "myvolume" under volume group "myvolumegroup". + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Filter +Specify $filter='volumeName eq \' to filter on volume. + +```yaml +Type: System.String +Parameter Sets: List +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the volume snapshot within the given volume group. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityElasticSan, GetViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: GetViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityElasticSan, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISnapshot + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSan.md new file mode 100644 index 000000000000..e4f8bf796c1c --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSan.md @@ -0,0 +1,343 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsan +schema: 2.0.0 +--- + +# New-AzElasticSan + +## SYNOPSIS +Create ElasticSan. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzElasticSan -Name -ResourceGroupName -BaseSizeTiB + -ExtendedCapacitySizeTiB -Location -SkuName [-SubscriptionId ] + [-AvailabilityZone ] [-PublicNetworkAccess ] [-SkuTier ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzElasticSan -InputObject -BaseSizeTiB -ExtendedCapacitySizeTiB + -Location -SkuName [-AvailabilityZone ] [-PublicNetworkAccess ] + [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create ElasticSan. + +## EXAMPLES + +### Example 1: Create an Elastic SAN +```powershell +New-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 1 -ExtendedCapacitySizeTib 6 -Location eastus -SkuName 'Premium_LRS' -Tag @{tag1="value1";tag2="value2"} +``` + +```output +AvailabilityZone : +BaseSizeTiB : 1 +ExtendedCapacitySizeTiB : 6 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan +Location : eastus +Name : myelasticsan +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 9/19/2022 9:47:26 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 9:47:26 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 5000 +TotalMBps : 80 +TotalSizeTiB : 7 +TotalVolumeSizeGiB : 0 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 0 +``` + +This command creates an Elastic SAN. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AvailabilityZone +Logical zone for Elastic San resource; example: ["1"]. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BaseSizeTiB +Base size of the Elastic San appliance in TiB. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExtendedCapacitySizeTiB +Extended size of the Elastic San appliance in TiB. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Location +The geo-location where the resource lives + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: ElasticSanName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccess +Allow or disallow public network access to ElasticSan. +Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuName +The sku name. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SkuTier +The sku tier. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Resource tags. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSan + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVirtualNetworkRuleObject.md b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVirtualNetworkRuleObject.md new file mode 100644 index 000000000000..82ec3ffb1470 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVirtualNetworkRuleObject.md @@ -0,0 +1,82 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/Az.ElasticSan/new-azelasticsanvirtualnetworkruleobject +schema: 2.0.0 +--- + +# New-AzElasticSanVirtualNetworkRuleObject + +## SYNOPSIS +Create an in-memory object for VirtualNetworkRule. + +## SYNTAX + +``` +New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId [-Action ] + [] +``` + +## DESCRIPTION +Create an in-memory object for VirtualNetworkRule. + +## EXAMPLES + +### Example 1: Create a virtual network rule object +```powershell +New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +``` + +```output +Action State VirtualNetworkResourceId +------ ----- ------------------------ +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1 +``` + +This command creates a new virtual network rule object using the virtual network resource Id. + +## PARAMETERS + +### -Action +The action of virtual network rule. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VirtualNetworkResourceId +Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolume.md new file mode 100644 index 000000000000..6a73b742ba8f --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolume.md @@ -0,0 +1,338 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolume +schema: 2.0.0 +--- + +# New-AzElasticSanVolume + +## SYNOPSIS +Create a Volume. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName -SizeGiB [-SubscriptionId ] [-CreationDataCreateSource ] + [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaIdentityElasticSanExpanded +``` +New-AzElasticSanVolume -ElasticSanInputObject -Name -VolumeGroupName + -SizeGiB [-CreationDataCreateSource ] [-CreationDataSourceId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzElasticSanVolume -InputObject -SizeGiB + [-CreationDataCreateSource ] [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityVolumegroupExpanded +``` +New-AzElasticSanVolume -Name -VolumegroupInputObject -SizeGiB + [-CreationDataCreateSource ] [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a Volume. + +## EXAMPLES + +### Example 1: Create a volume +```powershell +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' +``` + +```output +CreationDataCreateSource : +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnapshot +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup/volumes/myvolume +Name : myvolume +SizeGiB : 100 +StorageTargetIqn : iqn.2022-09.net.windows.core.blob.ElasticSan.es-3ibot5m2r3y0:myvolume +StorageTargetPortalHostname : es-3ibot5m2r3y0.z1.blob.storage.azure.net +StorageTargetPortalPort : 3260 +StorageTargetProvisioningState : Succeeded +StorageTargetStatus : Running +SystemDataCreatedAt : 9/19/2022 2:39:28 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +VolumeId : abababab-abab-abab-abab-abababababab +``` + +This command creates a volume. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CreationDataCreateSource +This enumerates the possible sources of a volume creation. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CreationDataSourceId +Fully qualified resource ID for the resource. +E.g. +"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Volume. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded, CreateViaIdentityVolumegroupExpanded +Aliases: VolumeName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SizeGiB +Volume size. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityVolumegroupExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolume + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeGroup.md new file mode 100644 index 000000000000..cfcef90de83e --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeGroup.md @@ -0,0 +1,503 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolumegroup +schema: 2.0.0 +--- + +# New-AzElasticSanVolumeGroup + +## SYNOPSIS +Create a Volume Group. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName + [-SubscriptionId ] [-Encryption ] [-EncryptionUserAssignedIdentity ] + [-IdentityType ] [-IdentityUserAssignedIdentityId ] [-KeyName ] + [-KeyVaultUri ] [-KeyVersion ] [-NetworkAclsVirtualNetworkRule ] + [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaIdentityElasticSanExpanded +``` +New-AzElasticSanVolumeGroup -ElasticSanInputObject -Name [-Encryption ] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] + [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzElasticSanVolumeGroup -InputObject [-Encryption ] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] + [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a Volume Group. + +## EXAMPLES + +### Example 1: Create a volume group with network rule objects +```powershell +$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow + +New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2 +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/19/2022 7:05:47 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +``` + +This example creates two VirtualNetworkRule objects and then input the objects and other variables to create a volume group. + +### Example 2: Create a volume group with network rule JSON input +```powershell +New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' ` + -NetworkAclsVirtualNetworkRule ( + @{VirtualNetworkResourceId="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1"; + Action="Allow"}, + @{VirtualNetworkResourceId="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2"; + Action="Allow"}) +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/19/2022 7:05:47 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +``` + +This command creates a volume group with the NetworkAclsVirtualNetworkRule input in json format. + +### Example 3: Create a volume group with platform-managed key and SystemAssigned identity type +```powershell +New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -IdentityType SystemAssigned -ProtocolType Iscsi -Encryption EncryptionAtRestWithPlatformKey +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +EncryptionIdentityEncryptionUserAssignedIdentity : +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup +IdentityPrincipalId : 00000000-0000-0000-0000-000000000000 +IdentityTenantId : 00000000-0000-0000-0000-000000000000 +IdentityType : SystemAssigned +IdentityUserAssignedIdentity : { + } +KeyVaultPropertyCurrentVersionedKeyExpirationTimestamp : +KeyVaultPropertyCurrentVersionedKeyIdentifier : +KeyVaultPropertyKeyName : +KeyVaultPropertyKeyVaultUri : +KeyVaultPropertyKeyVersion : +KeyVaultPropertyLastKeyRotationTimestamp : +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : +PrivateEndpointConnection : +ProtocolType : iSCSI +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SystemDataCreatedAt : 10/7/2023 6:20:55 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 6:20:55 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups +``` + +This command creates a volume group with identity type "SystemAssigned" and encryption type "platform-managed key". + +### Example 4: Create a volume group with platform-managed key and SystemAssigned identity type +```powershell +$useridentity = Get-AzUserAssignedIdentity -ResourceGroupName myresoucegroup -Name myuai + +New-AzElasticSanVolumeGroup -ResourceGroupName myresoucegroup -ElasticSanName myelasticsan -Name myvolumegroup -IdentityType UserAssigned -IdentityUserAssignedIdentityId $useridentity.Id -Encryption EncryptionAtRestWithCustomerManagedKey -KeyName mykey -KeyVaultUri "https://mykeyvault.vault.azure.net:443" -EncryptionUserAssignedIdentity $useridentity.Id -ProtocolType Iscsi +``` + +```output +Encryption : EncryptionAtRestWithCustomerManagedKey +EncryptionIdentityEncryptionUserAssignedIdentity : /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuai +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup +IdentityPrincipalId : +IdentityTenantId : +IdentityType : UserAssigned +IdentityUserAssignedIdentity : { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuai": { + } + } +KeyVaultPropertyCurrentVersionedKeyExpirationTimestamp : 1/1/1970 12:00:00 AM +KeyVaultPropertyCurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/mykey/37ec78b20f9e4a29b14a0d29d93cb79f +KeyVaultPropertyKeyName : mykey +KeyVaultPropertyKeyVaultUri : https://mykeyvault.vault.azure.net:443 +KeyVaultPropertyKeyVersion : +KeyVaultPropertyLastKeyRotationTimestamp : 10/7/2023 6:32:28 AM +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : +PrivateEndpointConnection : +ProtocolType : iSCSI +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SystemDataCreatedAt : 10/7/2023 6:32:27 AM +SystemDataCreatedBy : a000255f-5f09-45e0-a970-9d9ed9cc6453 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 6:32:27 AM +SystemDataLastModifiedBy : a000255f-5f09-45e0-a970-9d9ed9cc6453 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups +``` + +This command creates a volume group with identity type "SystemAssigned" and encryption type "platform-managed key". + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 +Parameter Sets: CreateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Encryption +Type of encryption + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionUserAssignedIdentity +Resource identifier of the UserAssigned identity to be associated with server-side encryption on the volume group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +The identity type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityUserAssignedIdentityId +Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this volume group. +The key is the ARM resource identifier of the identity. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -KeyName +The name of KeyVault key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyVaultUri +The Uri of KeyVault. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyVersion +The version of KeyVault key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded +Aliases: VolumeGroupName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkRule +The list of virtual network rules. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtocolType +Type of storage target + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolumeGroup + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeSnapshot.md new file mode 100644 index 000000000000..80e80afa2353 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/New-AzElasticSanVolumeSnapshot.md @@ -0,0 +1,303 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolumesnapshot +schema: 2.0.0 +--- + +# New-AzElasticSanVolumeSnapshot + +## SYNOPSIS +Create a Volume Snapshot. + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName -CreationDataSourceId [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityElasticSanExpanded +``` +New-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name + -VolumeGroupName -CreationDataSourceId [-DefaultProfile ] [-AsJob] [-NoWait] + [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityExpanded +``` +New-AzElasticSanVolumeSnapshot -InputObject -CreationDataSourceId + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityVolumegroupExpanded +``` +New-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + -CreationDataSourceId [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +Create a Volume Snapshot. + +## EXAMPLES + +### Example 1: Create a volume snapshot +```powershell + $volume = New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGiB 1 + New-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -CreationDataSourceId $volume.Id -Name mysnapshot +``` + +```output +CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnapshot +Name : mysnapshot +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SourceVolumeSizeGiB : 1 +SystemDataCreatedAt : 10/7/2023 3:37:01 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots +VolumeName : testvol1 +``` + +The first command creates a volume, and the second command creates a snapshot of the volume. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CreationDataSourceId +Fully qualified resource ID of the volume. +E.g. +"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}/volumes/{volumeName}" + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the volume snapshot within the given volume group. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded, CreateViaIdentityVolumegroupExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: CreateViaIdentityVolumegroupExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.ISnapshot + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/README.md b/src/ElasticSan/ElasticSan.Autorest/help/README.md new file mode 100644 index 000000000000..1ae59eb5bdfb --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/README.md @@ -0,0 +1,11 @@ +# Docs +This directory contains the documentation of the cmdlets for the `Az.ElasticSan` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. + +## Info +- Modifiable: no +- Generated: all +- Committed: yes +- Packaged: yes + +## Details +The process of documentation generation loads `Az.ElasticSan` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSan.md new file mode 100644 index 000000000000..b4057e34db56 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSan.md @@ -0,0 +1,208 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsan +schema: 2.0.0 +--- + +# Remove-AzElasticSan + +## SYNOPSIS +Delete a Elastic San. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzElasticSan -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Elastic San. + +## EXAMPLES + +### Example 1: Remove a specific Elastic SAN +```powershell +Remove-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan +``` + +This command removes a specific Elastic SAN. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: ElasticSanName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolume.md new file mode 100644 index 000000000000..b08e72e1b551 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolume.md @@ -0,0 +1,318 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolume +schema: 2.0.0 +--- + +# Remove-AzElasticSanVolume + +## SYNOPSIS +Delete an Volume. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName [-SubscriptionId ] [-DeleteSnapshot ] [-ForceDelete ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzElasticSanVolume -InputObject [-DeleteSnapshot ] + [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentityElasticSan +``` +Remove-AzElasticSanVolume -ElasticSanInputObject -Name + -VolumeGroupName [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityVolumegroup +``` +Remove-AzElasticSanVolume -Name -VolumegroupInputObject + [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete an Volume. + +## EXAMPLES + +### Example 1: Remove a volume +```powershell +Remove-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume +``` + +This command removes a volume. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DeleteSnapshot +Optional, used to delete snapshots under volume. +Allowed value are only true or false. +Default value is false. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ForceDelete +Optional, used to delete volume if active sessions present. +Allowed value are only true or false. +Default value is false. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Volume. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityElasticSan, DeleteViaIdentityVolumegroup +Aliases: VolumeName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroup.md new file mode 100644 index 000000000000..90d7ed84b537 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroup.md @@ -0,0 +1,245 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumegroup +schema: 2.0.0 +--- + +# Remove-AzElasticSanVolumeGroup + +## SYNOPSIS +Delete an VolumeGroup. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityElasticSan +``` +Remove-AzElasticSanVolumeGroup -ElasticSanInputObject -Name + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete an VolumeGroup. + +## EXAMPLES + +### Example 1: Remove a volume group +```powershell +Remove-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup +``` + +This command removes a specific volume group. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityElasticSan +Aliases: VolumeGroupName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroupNetworkRule.md b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroupNetworkRule.md new file mode 100644 index 000000000000..804229352624 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeGroupNetworkRule.md @@ -0,0 +1,264 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumegroupnetworkrule +schema: 2.0.0 +--- + +# Remove-AzElasticSanVolumeGroupNetworkRule + +## SYNOPSIS +Remove a list of virtual network rules from a VolumeGroup + +## SYNTAX + +### NetworkRuleObject (Default) +``` +Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName + -VolumeGroupName -NetworkAclsVirtualNetworkRule [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### NetworkRuleResourceId +``` +Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName + -VolumeGroupName -NetworkAclsVirtualNetworkResourceId [-SubscriptionId ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Remove a list of virtual network rules from a VolumeGroup + +## EXAMPLES + +### Example 1: Remove network rules by NetworkAclsVirtualNetworkRule objects +```powershell +# Initialze network rule objects +$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow +$virtualNetworkRule3 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet3" -Action Allow +# Add the network rule objects to the volume group +$rules = Add-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2,$virtualNetworkRule3 + +# Remove some of the network rules from the volume group +Remove-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2 +``` + +```output +Action State VirtualNetworkResourceId +------ ----- ------------------------ +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet3 +``` + +This example adds 3 network rules to a volume group, and then remove 2 of the network rules from the volume group by inputting network rule objects. +The command outputs all the network rule objects left in the volume group after the removal. + +### Example 2: Remove network rules by network rule resource Ids +```powershell +$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow +$virtualNetworkRule3 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet3" -Action Allow +$virtualNetworkRuleResourceId1 = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" +$virtualNetworkRuleResourceId2 = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" +# Update the volume group to contain the network rules +$volGroup = Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2,$virtualNetworkRule3 + +# Remove some of the network rules from the volume group +Remove-AzElasticSanVolumeGroupNetworkRule -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -NetworkAclsVirtualNetworkResourceId $virtualNetworkRuleResourceId1,$virtualNetworkRuleResourceId2 +``` + +```output +Action State VirtualNetworkResourceId +------ ----- ------------------------ +Allow /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet3 +``` + +This example adds 3 network rules to a volume group, and then remove 2 of the network rules from the volume group by inputting network rule resource Ids. +The command outputs all the network rule objects left in the volume group after the removal. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkResourceId +The list of virtual network rule resource Ids. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: System.String[] +Parameter Sets: NetworkRuleResourceId +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkRule +The list of virtual network rules. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] +Parameter Sets: NetworkRuleObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.VirtualNetworkRule[] + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeSnapshot.md new file mode 100644 index 000000000000..e8cc69bbd7a2 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Remove-AzElasticSanVolumeSnapshot.md @@ -0,0 +1,282 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumesnapshot +schema: 2.0.0 +--- + +# Remove-AzElasticSanVolumeSnapshot + +## SYNOPSIS +Delete a Volume Snapshot. + +## SYNTAX + +### Delete (Default) +``` +Remove-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityElasticSan +``` +Remove-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name + -VolumeGroupName [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentityVolumegroup +``` +Remove-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Volume Snapshot. + +## EXAMPLES + +### Example 1: Remove a snapshot +```powershell +Remove-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name mysnap1 +``` + +This command removes a snapshot. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the volume snapshot within the given volume group. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityElasticSan, DeleteViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: DeleteViaIdentityVolumegroup +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityElasticSan +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSan.md b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSan.md new file mode 100644 index 000000000000..113a9de4c372 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSan.md @@ -0,0 +1,281 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsan +schema: 2.0.0 +--- + +# Update-AzElasticSan + +## SYNOPSIS +Update a Elastic San. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] + [-BaseSizeTiB ] [-ExtendedCapacitySizeTiB ] [-PublicNetworkAccess ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzElasticSan -InputObject [-BaseSizeTiB ] + [-ExtendedCapacitySizeTiB ] [-PublicNetworkAccess ] [-Tag ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update a Elastic San. + +## EXAMPLES + +### Example 1: Update an Elastic SAN +```powershell +$elasticSan = Update-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan -BaseSizeTib 64 -ExtendedCapacitySizeTib 128 -Tag @{"tag3" = "value3"} +``` + +```output +AvailabilityZone : +BaseSizeTiB : 64 +ExtendedCapacitySizeTiB : 128 +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan +Location : eastus +Name : myelasticsan +ProvisioningState : Succeeded +SkuName : Premium_LRS +SkuTier : +SystemDataCreatedAt : 8/16/2022 4:59:54 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 8/16/2022 4:59:54 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Tag : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags +TotalIops : 320000 +TotalMBps : 5120 +TotalSizeTiB : 192 +TotalVolumeSizeGiB : 0 +Type : Microsoft.ElasticSan/ElasticSans +VolumeGroupCount : 0 +``` + +This command updates the BaseSizeTib, ExtendedCapacitySizeTib, and Tag properties of an Elastic SAN. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -BaseSizeTiB +Base size of the Elastic San appliance in TiB. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ExtendedCapacitySizeTiB +Extended size of the Elastic San appliance in TiB. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: ElasticSanName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PublicNetworkAccess +Allow or disallow public network access to ElasticSan Account. +Value is optional but if passed in, must be 'Enabled' or 'Disabled'. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Tag +Update tags + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSan + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolume.md new file mode 100644 index 000000000000..76122889e7b0 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolume.md @@ -0,0 +1,303 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolume +schema: 2.0.0 +--- + +# Update-AzElasticSanVolume + +## SYNOPSIS +Update an Volume. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName + -VolumeGroupName [-SubscriptionId ] [-SizeGiB ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityElasticSanExpanded +``` +Update-AzElasticSanVolume -ElasticSanInputObject -Name + -VolumeGroupName [-SizeGiB ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzElasticSanVolume -InputObject [-SizeGiB ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityVolumegroupExpanded +``` +Update-AzElasticSanVolume -Name -VolumegroupInputObject [-SizeGiB ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update an Volume. + +## EXAMPLES + +### Example 1: Update an Elastic SAN volume +```powershell +$volume = Update-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGib 120 +``` + +```output +CreationDataCreateSource : +CreationDataSourceUri : +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup/volumes/myvolume +Name : myvolume +SizeGiB : 120 +StorageTargetIqn : iqn.2022-09.net.windows.core.blob.ElasticSan.es-3ibot5m2r3y0:myvolume +StorageTargetPortalHostname : es-3ibot5m2r3y0.z1.blob.storage.azure.net +StorageTargetPortalPort : 3260 +StorageTargetProvisioningState : Succeeded +StorageTargetStatus : Running +SystemDataCreatedAt : 9/19/2022 2:39:28 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 2:39:28 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +VolumeId : abababab-abab-abab-abab-abababababab +``` + +This command updates the SizeGib and Tag properties of a volume. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ElasticSanInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: UpdateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +The name of the Volume. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityElasticSanExpanded, UpdateViaIdentityVolumegroupExpanded +Aliases: VolumeName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SizeGiB +Volume size. + +```yaml +Type: System.Int64 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -VolumegroupInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity +Parameter Sets: UpdateViaIdentityVolumegroupExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -VolumeGroupName +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolume + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolumeGroup.md new file mode 100644 index 000000000000..6262f3a2e731 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/help/Update-AzElasticSanVolumeGroup.md @@ -0,0 +1,506 @@ +--- +external help file: +Module Name: Az.ElasticSan +online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolumegroup +schema: 2.0.0 +--- + +# Update-AzElasticSanVolumeGroup + +## SYNOPSIS +Update an VolumeGroup. + +## SYNTAX + +### UpdateExpanded (Default) +``` +Update-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName + [-SubscriptionId ] [-Encryption ] [-EncryptionUserAssignedIdentity ] + [-IdentityType ] [-IdentityUserAssignedIdentityId ] [-KeyName ] + [-KeyVaultUri ] [-KeyVersion ] [-NetworkAclsVirtualNetworkRule ] + [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### UpdateViaIdentityElasticSanExpanded +``` +Update-AzElasticSanVolumeGroup -ElasticSanInputObject -Name + [-Encryption ] [-EncryptionUserAssignedIdentity ] [-IdentityType ] + [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaIdentityExpanded +``` +Update-AzElasticSanVolumeGroup -InputObject [-Encryption ] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] + [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Update an VolumeGroup. + +## EXAMPLES + +### Example 1: Update a volume group +```powershell +$virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow +$virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow + +Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' -NetworkAclsVirtualNetworkRule $virtualNetworkRule1,$virtualNetworkRule2 +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/19/2022 7:05:47 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +``` + +This example updates the protocol type and virtual network rules of a volume gorup + +### Example 2: Update a volume group virtual network rule with JSON input +```powershell +Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi'` + -NetworkAclsVirtualNetworkRule ( + @{VirtualNetworkResourceId="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1"; + Action="Allow"}, + @{VirtualNetworkResourceId="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2"; + Action="Allow"}) +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumegroups/myvolumegroup +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : {/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1, /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2} +ProtocolType : iSCSI +ProvisioningState : Succeeded +SystemDataCreatedAt : 9/19/2022 7:05:47 AM +SystemDataCreatedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 9/19/2022 7:05:47 AM +SystemDataLastModifiedBy : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/ElasticSans +``` + +This example updates the protocol type, virtual network rules, and tag of a volume group. +It takes in the virtual network rules in JSON format. + +### Example 3: Update a volume group from CMK to PMK +```powershell +Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -Encryption EncryptionAtRestWithPlatformKey +``` + +```output +Encryption : EncryptionAtRestWithPlatformKey +EncryptionIdentityEncryptionUserAssignedIdentity : +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup +IdentityPrincipalId : +IdentityTenantId : +IdentityType : UserAssigned +IdentityUserAssignedIdentity : { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuai": { + } + } +KeyVaultPropertyCurrentVersionedKeyExpirationTimestamp : +KeyVaultPropertyCurrentVersionedKeyIdentifier : +KeyVaultPropertyKeyName : +KeyVaultPropertyKeyVaultUri : +KeyVaultPropertyKeyVersion : +KeyVaultPropertyLastKeyRotationTimestamp : +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : +PrivateEndpointConnection : +ProtocolType : iSCSI +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SystemDataCreatedAt : 10/7/2023 2:31:45 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 6:47:24 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups +``` + +This command updates a volume group from CMK to PMK. + +### Example 4: Update a volume group to a new user assigned identity +```powershell +$useridentity2 = Get-AzUserAssignedIdentity -ResourceGroupName myresoucegroup -Name myuai2 + +Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -IdentityType UserAssigned -IdentityUserAssignedIdentityId $useridentity2.Id -EncryptionUserAssignedIdentity $useridentity2.Id +``` + +```output +Encryption : EncryptionAtRestWithCustomerManagedKey +EncryptionIdentityEncryptionUserAssignedIdentity : /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuai2 +Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup +IdentityPrincipalId : +IdentityTenantId : +IdentityType : UserAssigned +IdentityUserAssignedIdentity : { + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myresourcegroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myuai2": { + } + } +KeyVaultPropertyCurrentVersionedKeyExpirationTimestamp : 1/1/1970 12:00:00 AM +KeyVaultPropertyCurrentVersionedKeyIdentifier : https://mykeyvault.vault.azure.net/keys/mykey/37ec78b20f9e4a29b14a0d29d93cb79f +KeyVaultPropertyKeyName : mykey +KeyVaultPropertyKeyVaultUri : https://mykeyvault.vault.azure.net:443 +KeyVaultPropertyKeyVersion : +KeyVaultPropertyLastKeyRotationTimestamp : 10/7/2023 7:03:27 AM +Name : myvolumegroup +NetworkAclsVirtualNetworkRule : +PrivateEndpointConnection : +ProtocolType : iSCSI +ProvisioningState : Succeeded +ResourceGroupName : myresourcegroup +SystemDataCreatedAt : 10/7/2023 6:32:27 AM +SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000 +SystemDataCreatedByType : Application +SystemDataLastModifiedAt : 10/7/2023 7:03:27 AM +SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000 +SystemDataLastModifiedByType : Application +Type : Microsoft.ElasticSan/elasticSans/volumeGroups +``` + +This command updates a volume group's user assigned identity. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 +Parameter Sets: UpdateViaIdentityElasticSanExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ElasticSanName +The name of the ElasticSan. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Encryption +Type of encryption + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EncryptionUserAssignedIdentity +Resource identifier of the UserAssigned identity to be associated with server-side encryption on the volume group. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +The identity type. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityUserAssignedIdentityId +Gets or sets a list of key value pairs that describe the set of User Assigned identities that will be used with this volume group. +The key is the ARM resource identifier of the identity. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +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 +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -KeyName +The name of KeyVault key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyVaultUri +The Uri of KeyVault. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -KeyVersion +The version of KeyVault key. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +The name of the VolumeGroup. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded, UpdateViaIdentityElasticSanExpanded +Aliases: VolumeGroupName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NetworkAclsVirtualNetworkRule +The list of virtual network rules. +To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProtocolType +Type of storage target + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. + +```yaml +Type: System.String +Parameter Sets: UpdateExpanded +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVolumeGroup + +## NOTES + +## RELATED LINKS + diff --git a/src/ElasticSan/ElasticSan.Autorest/internal/Az.ElasticSan.internal.psm1 b/src/ElasticSan/ElasticSan.Autorest/internal/Az.ElasticSan.internal.psm1 index 0cc831fcf5d2..479a59320e53 100644 --- a/src/ElasticSan/ElasticSan.Autorest/internal/Az.ElasticSan.internal.psm1 +++ b/src/ElasticSan/ElasticSan.Autorest/internal/Az.ElasticSan.internal.psm1 @@ -24,12 +24,12 @@ # Load the last folder if no profile is selected $profileDirectory = $directories | Select-Object -Last 1 } - + if($profileDirectory) { Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'" $exportsPath = $profileDirectory.FullName } - + if($exportsPath) { Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName } $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath diff --git a/src/ElasticSan/ElasticSan.Autorest/internal/New-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/internal/New-AzElasticSanVolumeGroup.ps1 index 217c42e31a2f..95a82226c85a 100644 --- a/src/ElasticSan/ElasticSan.Autorest/internal/New-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/internal/New-AzElasticSanVolumeGroup.ps1 @@ -109,14 +109,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -170,7 +168,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[]] # The list of virtual network rules. - # To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. ${NetworkAclsVirtualNetworkRule}, [Parameter()] @@ -255,7 +252,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolumeGroup_CreateViaIdentityExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/ElasticSan/ElasticSan.Autorest/internal/ProxyCmdletDefinitions.ps1 index 3fbfd3c753da..d530e9776dd4 100644 --- a/src/ElasticSan/ElasticSan.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -219,14 +219,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -280,7 +278,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[]] # The list of virtual network rules. - # To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. ${NetworkAclsVirtualNetworkRule}, [Parameter()] @@ -365,7 +362,13 @@ begin { CreateViaIdentityExpanded = 'Az.ElasticSan.private\New-AzElasticSanVolumeGroup_CreateViaIdentityExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) @@ -493,14 +496,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -554,7 +555,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[]] # The list of virtual network rules. - # To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. ${NetworkAclsVirtualNetworkRule}, [Parameter()] @@ -639,7 +639,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.private\Update-AzElasticSanVolumeGroup_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/internal/Update-AzElasticSanVolumeGroup.ps1 b/src/ElasticSan/ElasticSan.Autorest/internal/Update-AzElasticSanVolumeGroup.ps1 index 951322366e3e..e8e212cff721 100644 --- a/src/ElasticSan/ElasticSan.Autorest/internal/Update-AzElasticSanVolumeGroup.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/internal/Update-AzElasticSanVolumeGroup.ps1 @@ -109,14 +109,12 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for ELASTICSANINPUTOBJECT properties and create a hash table. ${ElasticSanInputObject}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IElasticSanIdentity] # Identity Parameter - # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] @@ -170,7 +168,6 @@ param( [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.IVirtualNetworkRule[]] # The list of virtual network rules. - # To construct, see NOTES section for NETWORKACLSVIRTUALNETWORKRULE properties and create a hash table. ${NetworkAclsVirtualNetworkRule}, [Parameter()] @@ -255,7 +252,13 @@ begin { UpdateViaIdentityExpanded = 'Az.ElasticSan.private\Update-AzElasticSanVolumeGroup_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) diff --git a/src/ElasticSan/ElasticSan.Autorest/test-module.ps1 b/src/ElasticSan/ElasticSan.Autorest/test-module.ps1 index 5c6c02cca532..2b30c69ae011 100644 --- a/src/ElasticSan/ElasticSan.Autorest/test-module.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/test-module.ps1 @@ -74,13 +74,14 @@ try if ($TestMode -ne 'playback') { setupEnv + } else { + $env:AzPSAutorestTestPlaybackMode = $true } $testFolder = Join-Path $PSScriptRoot 'test' if ($null -ne $TestName) { Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") - } else - { + } else { Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } } Finally @@ -89,6 +90,9 @@ try { cleanupEnv } + else { + $env:AzPSAutorestTestPlaybackMode = '' + } } Write-Host -ForegroundColor Green '-------------Done-------------' diff --git a/src/ElasticSan/ElasticSan.Autorest/test/loadEnv.ps1 b/src/ElasticSan/ElasticSan.Autorest/test/loadEnv.ps1 index 5f079e89615e..6a7c385c6b7d 100644 --- a/src/ElasticSan/ElasticSan.Autorest/test/loadEnv.ps1 +++ b/src/ElasticSan/ElasticSan.Autorest/test/loadEnv.ps1 @@ -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} } \ No newline at end of file diff --git a/src/ElasticSan/ElasticSan.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 b/src/ElasticSan/ElasticSan.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 new file mode 100644 index 000000000000..5319862d3372 --- /dev/null +++ b/src/ElasticSan/ElasticSan.Autorest/utils/Get-SubscriptionIdTestSafe.ps1 @@ -0,0 +1,7 @@ +param() +if ($env:AzPSAutorestTestPlaybackMode) { + $loadEnvPath = Join-Path $PSScriptRoot '..' 'test' 'loadEnv.ps1' + . ($loadEnvPath) + return $env.SubscriptionId +} +return (Get-AzContext).Subscription.Id \ No newline at end of file diff --git a/src/ElasticSan/ElasticSan/Az.ElasticSan.psd1 b/src/ElasticSan/ElasticSan/Az.ElasticSan.psd1 index cac83ba0452c..6bd7d0242a4a 100644 --- a/src/ElasticSan/ElasticSan/Az.ElasticSan.psd1 +++ b/src/ElasticSan/ElasticSan/Az.ElasticSan.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/30/2024 +# Generated on: 3/26/2024 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.15.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.16.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ElasticSan.Autorest/bin/Az.ElasticSan.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'ElasticSan.Autorest/Az.ElasticSan.format.ps1xml' @@ -104,7 +104,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ElasticSan' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ElasticSan' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -129,7 +129,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ElasticSan/ElasticSan/ChangeLog.md b/src/ElasticSan/ElasticSan/ChangeLog.md index 6a04fedfd278..7835926f25b8 100644 --- a/src/ElasticSan/ElasticSan/ChangeLog.md +++ b/src/ElasticSan/ElasticSan/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Introduced secrets detection feature to safeguard sensitive data. ## Version 1.0.0 * General availability for module Az.ElasticSan diff --git a/src/ElasticSan/ElasticSan/help/Add-AzElasticSanVolumeGroupNetworkRule.md b/src/ElasticSan/ElasticSan/help/Add-AzElasticSanVolumeGroupNetworkRule.md index eba72bb1de20..8705a58d7d3f 100644 --- a/src/ElasticSan/ElasticSan/help/Add-AzElasticSanVolumeGroupNetworkRule.md +++ b/src/ElasticSan/ElasticSan/help/Add-AzElasticSanVolumeGroupNetworkRule.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/add-azelasticsanvolumegroupnetworkrule schema: 2.0.0 @@ -14,16 +14,18 @@ Add a list of virtual network rules to a VolumeGroup ### NetworkRuleObject (Default) ``` -Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName - -VolumeGroupName -NetworkAclsVirtualNetworkRule [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -VolumeGroupName + -ResourceGroupName [-SubscriptionId ] -NetworkAclsVirtualNetworkRule + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### NetworkRuleResourceId ``` -Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName - -VolumeGroupName -NetworkAclsVirtualNetworkResourceId [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Add-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -VolumeGroupName + -ResourceGroupName [-SubscriptionId ] -NetworkAclsVirtualNetworkResourceId + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -31,7 +33,7 @@ Add a list of virtual network rules to a VolumeGroup ## EXAMPLES -### Example 1: Add network rules to a volume group by NetworkAclsVirtualNetworkRule objects +### Example 1: Add network rules to a volume group by NetworkAclsVirtualNetworkRule objects ```powershell $virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow $virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow @@ -161,6 +163,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -252,4 +269,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Get-AzElasticSan.md b/src/ElasticSan/ElasticSan/help/Get-AzElasticSan.md index df32ad2e1d7f..a6cc58675cac 100644 --- a/src/ElasticSan/ElasticSan/help/Get-AzElasticSan.md +++ b/src/ElasticSan/ElasticSan/help/Get-AzElasticSan.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsan schema: 2.0.0 @@ -14,24 +14,26 @@ Get either a list of Elastic SANs from a subscription or a resource group, or ge ### List (Default) ``` -Get-AzElasticSan [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzElasticSan [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` -### GetViaIdentity +### List1 ``` -Get-AzElasticSan -InputObject [-DefaultProfile ] [] +Get-AzElasticSan -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-ProgressAction ] [] ``` -### List1 +### GetViaIdentity ``` -Get-AzElasticSan -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] - [] +Get-AzElasticSan -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -206,7 +208,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 @@ -235,6 +236,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -256,7 +272,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List, List1 +Parameter Sets: List, Get, List1 Aliases: Required: False @@ -280,4 +296,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanSkuList.md b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanSkuList.md index c688fb137089..1a2f1e2d476e 100644 --- a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanSkuList.md +++ b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanSkuList.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanskulist schema: 2.0.0 @@ -14,7 +14,7 @@ List all the available Skus in the region and information related to them ``` Get-AzElasticSanSkuList [-SubscriptionId ] [-Filter ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -22,7 +22,7 @@ List all the available Skus in the region and information related to them ## EXAMPLES -### Example 1: Get all the available Skus +### Example 1: Get all the available Skus ```powershell Get-AzElasticSanSkuList ``` @@ -69,6 +69,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. @@ -96,4 +111,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolume.md index 95c4a1005e6f..b0accaee28a0 100644 --- a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolume.md +++ b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolume.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolume schema: 2.0.0 @@ -14,31 +14,34 @@ Get either a list of all volumes from a volume group or get a single volume from ### List (Default) ``` -Get-AzElasticSanVolume -ElasticSanName -ResourceGroupName -VolumeGroupName - [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzElasticSanVolume -ElasticSanName -ResourceGroupName [-SubscriptionId ] + -VolumeGroupName [-DefaultProfile ] [-ProgressAction ] + [] ``` ### Get ``` Get-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] -VolumeGroupName [-DefaultProfile ] + [-ProgressAction ] [] ``` -### GetViaIdentity +### GetViaIdentityVolumegroup ``` -Get-AzElasticSanVolume -InputObject [-DefaultProfile ] [] +Get-AzElasticSanVolume -Name -VolumegroupInputObject + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityElasticSan ``` -Get-AzElasticSanVolume -ElasticSanInputObject -Name -VolumeGroupName - [-DefaultProfile ] [] +Get-AzElasticSanVolume -Name -VolumeGroupName -ElasticSanInputObject + [-DefaultProfile ] [-ProgressAction ] [] ``` -### GetViaIdentityVolumegroup +### GetViaIdentity ``` -Get-AzElasticSanVolume -Name -VolumegroupInputObject - [-DefaultProfile ] [] +Get-AzElasticSanVolume -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -95,7 +98,7 @@ VolumeId : cdcdcdcd-cdcd-cdcd-cdcd-cdcdcdcdcdcd This command gets all the volumes in a volume group. -### Example 2: Get a specific volume +### Example 2: Get a specific volume ```powershell Get-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume ``` @@ -144,7 +147,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 @@ -163,7 +165,7 @@ The name of the ElasticSan. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -175,7 +177,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 @@ -194,7 +195,7 @@ The name of the Volume. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityElasticSan, GetViaIdentityVolumegroup +Parameter Sets: Get, GetViaIdentityVolumegroup, GetViaIdentityElasticSan Aliases: VolumeName Required: True @@ -204,13 +205,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -225,7 +241,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -237,7 +253,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 @@ -256,7 +271,7 @@ The name of the VolumeGroup. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityElasticSan, List +Parameter Sets: List, Get, GetViaIdentityElasticSan Aliases: Required: True @@ -280,4 +295,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeGroup.md index 082534859f72..098aed04a315 100644 --- a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeGroup.md +++ b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeGroup.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolumegroup schema: 2.0.0 @@ -15,25 +15,26 @@ Get either a list of all volume groups from an Elastic SAN or get a single volum ### List (Default) ``` Get-AzElasticSanVolumeGroup -ElasticSanName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### Get ``` Get-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] [-DefaultProfile ] [-ProgressAction ] + [] ``` -### GetViaIdentity +### GetViaIdentityElasticSan ``` -Get-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] - [] +Get-AzElasticSanVolumeGroup -Name -ElasticSanInputObject + [-DefaultProfile ] [-ProgressAction ] [] ``` -### GetViaIdentityElasticSan +### GetViaIdentity ``` -Get-AzElasticSanVolumeGroup -ElasticSanInputObject -Name - [-DefaultProfile ] [] +Get-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -125,7 +126,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 @@ -144,7 +144,7 @@ The name of the ElasticSan. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -156,7 +156,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 @@ -185,13 +184,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -206,7 +220,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -230,4 +244,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeSnapshot.md index ad1b148ba9e4..1e96bc959bea 100644 --- a/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeSnapshot.md +++ b/src/ElasticSan/ElasticSan/help/Get-AzElasticSanVolumeSnapshot.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/get-azelasticsanvolumesnapshot schema: 2.0.0 @@ -14,32 +14,35 @@ Get a Volume Snapshot. ### List (Default) ``` -Get-AzElasticSanVolumeSnapshot -ElasticSanName -ResourceGroupName -VolumeGroupName - [-SubscriptionId ] [-Filter ] [-DefaultProfile ] [] +Get-AzElasticSanVolumeSnapshot -ElasticSanName -ResourceGroupName + [-SubscriptionId ] -VolumeGroupName [-Filter ] [-DefaultProfile ] + [-ProgressAction ] [] ``` ### Get ``` Get-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [] + [-SubscriptionId ] -VolumeGroupName [-DefaultProfile ] + [-ProgressAction ] [] ``` -### GetViaIdentity +### GetViaIdentityVolumegroup ``` -Get-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] - [] +Get-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentityElasticSan ``` -Get-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name - -VolumeGroupName [-DefaultProfile ] [] +Get-AzElasticSanVolumeSnapshot -Name -VolumeGroupName + -ElasticSanInputObject [-DefaultProfile ] [-ProgressAction ] + [] ``` -### GetViaIdentityVolumegroup +### GetViaIdentity ``` -Get-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject - [-DefaultProfile ] [] +Get-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -47,7 +50,7 @@ Get a Volume Snapshot. ## EXAMPLES -### Example 1: List snapshots under a volume group +### Example 1: List snapshots under a volume group ```powershell Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup ``` @@ -88,7 +91,7 @@ This command lists all snapshots under a volume group. ### Example 2: Get a specific snapshot ```powershell - Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name mysnap1 +Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name mysnap1 ``` ```output @@ -110,7 +113,7 @@ VolumeName : myvolume This command gets a snapshot named "mysnap1" under the volume group "myvolumegroup" -### Example 3: List snapshots of a volume with filter +### Example 3: List snapshots of a volume with filter ```powershell Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Filter 'volumeName eq myvolume' ``` @@ -169,7 +172,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 @@ -188,7 +190,7 @@ The name of the ElasticSan. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -215,7 +217,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 @@ -234,7 +235,7 @@ The name of the volume snapshot within the given volume group. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityElasticSan, GetViaIdentityVolumegroup +Parameter Sets: Get, GetViaIdentityVolumegroup, GetViaIdentityElasticSan Aliases: Required: True @@ -244,13 +245,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: True @@ -265,7 +281,7 @@ The ID of the target subscription. ```yaml Type: System.String[] -Parameter Sets: Get, List +Parameter Sets: List, Get Aliases: Required: False @@ -277,7 +293,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 @@ -296,7 +311,7 @@ The name of the VolumeGroup. ```yaml Type: System.String -Parameter Sets: Get, GetViaIdentityElasticSan, List +Parameter Sets: List, Get, GetViaIdentityElasticSan Aliases: Required: True @@ -320,4 +335,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/New-AzElasticSan.md b/src/ElasticSan/ElasticSan/help/New-AzElasticSan.md index 4daf03c820a4..c7f5add39d63 100644 --- a/src/ElasticSan/ElasticSan/help/New-AzElasticSan.md +++ b/src/ElasticSan/ElasticSan/help/New-AzElasticSan.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsan schema: 2.0.0 @@ -14,18 +14,18 @@ Create ElasticSan. ### CreateExpanded (Default) ``` -New-AzElasticSan -Name -ResourceGroupName -BaseSizeTiB - -ExtendedCapacitySizeTiB -Location -SkuName [-SubscriptionId ] - [-AvailabilityZone ] [-PublicNetworkAccess ] [-SkuTier ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] -BaseSizeTiB + -ExtendedCapacitySizeTiB -Location -SkuName [-AvailabilityZone ] + [-PublicNetworkAccess ] [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzElasticSan -InputObject -BaseSizeTiB -ExtendedCapacitySizeTiB -Location -SkuName [-AvailabilityZone ] [-PublicNetworkAccess ] - [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-SkuTier ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -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 @@ -204,6 +203,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. @@ -341,4 +355,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVirtualNetworkRuleObject.md b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVirtualNetworkRuleObject.md index 82ec3ffb1470..cf43547c9d3c 100644 --- a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVirtualNetworkRuleObject.md +++ b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVirtualNetworkRuleObject.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/Az.ElasticSan/new-azelasticsanvirtualnetworkruleobject schema: 2.0.0 @@ -14,7 +14,7 @@ Create an in-memory object for VirtualNetworkRule. ``` New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId [-Action ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -22,7 +22,7 @@ Create an in-memory object for VirtualNetworkRule. ## EXAMPLES -### Example 1: Create a virtual network rule object +### Example 1: Create a virtual network rule object ```powershell New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow ``` @@ -52,6 +52,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -VirtualNetworkResourceId Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. @@ -79,4 +94,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolume.md index 66356c6173dd..492a03ffd48c 100644 --- a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolume.md +++ b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolume.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolume schema: 2.0.0 @@ -15,30 +15,31 @@ Create a Volume. ### CreateExpanded (Default) ``` New-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName -SizeGiB [-SubscriptionId ] [-CreationDataCreateSource ] - [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-SubscriptionId ] -VolumeGroupName -SizeGiB [-CreationDataCreateSource ] + [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityVolumegroupExpanded +``` +New-AzElasticSanVolume -Name -VolumegroupInputObject -SizeGiB + [-CreationDataCreateSource ] [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityElasticSanExpanded ``` -New-AzElasticSanVolume -ElasticSanInputObject -Name -VolumeGroupName +New-AzElasticSanVolume -Name -VolumeGroupName -ElasticSanInputObject -SizeGiB [-CreationDataCreateSource ] [-CreationDataSourceId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### CreateViaIdentityExpanded ``` -New-AzElasticSanVolume -InputObject -SizeGiB - [-CreationDataCreateSource ] [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] -``` - -### CreateViaIdentityVolumegroupExpanded -``` -New-AzElasticSanVolume -Name -VolumegroupInputObject -SizeGiB - [-CreationDataCreateSource ] [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] +New-AzElasticSanVolume -InputObject -SizeGiB [-CreationDataCreateSource ] + [-CreationDataSourceId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -141,7 +142,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 @@ -172,7 +172,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 @@ -191,7 +190,7 @@ The name of the Volume. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded, CreateViaIdentityVolumegroupExpanded +Parameter Sets: CreateExpanded, CreateViaIdentityVolumegroupExpanded, CreateViaIdentityElasticSanExpanded Aliases: VolumeName Required: True @@ -216,6 +215,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -264,7 +278,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 @@ -338,4 +351,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeGroup.md index cfcef90de83e..46329d60cc7b 100644 --- a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeGroup.md +++ b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeGroup.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolumegroup schema: 2.0.0 @@ -18,26 +18,26 @@ New-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGro [-SubscriptionId ] [-Encryption ] [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] [-NetworkAclsVirtualNetworkRule ] - [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityElasticSanExpanded ``` -New-AzElasticSanVolumeGroup -ElasticSanInputObject -Name [-Encryption ] - [-EncryptionUserAssignedIdentity ] [-IdentityType ] - [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] - [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzElasticSanVolumeGroup -Name -ElasticSanInputObject [-Encryption ] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] + [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CreateViaIdentityExpanded ``` New-AzElasticSanVolumeGroup -InputObject [-Encryption ] - [-EncryptionUserAssignedIdentity ] [-IdentityType ] - [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] - [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] + [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -45,7 +45,7 @@ Create a Volume Group. ## EXAMPLES -### Example 1: Create a volume group with network rule objects +### Example 1: Create a volume group with network rule objects ```powershell $virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow $virtualNetworkRule2 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet2" -Action Allow @@ -71,7 +71,7 @@ Type : Microsoft.ElasticSan/ElasticSans This example creates two VirtualNetworkRule objects and then input the objects and other variables to create a volume group. -### Example 2: Create a volume group with network rule JSON input +### Example 2: Create a volume group with network rule JSON input ```powershell New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi' ` -NetworkAclsVirtualNetworkRule ( @@ -99,7 +99,7 @@ Type : Microsoft.ElasticSan/ElasticSans This command creates a volume group with the NetworkAclsVirtualNetworkRule input in json format. -### Example 3: Create a volume group with platform-managed key and SystemAssigned identity type +### Example 3: Create a volume group with platform-managed key and SystemAssigned identity type ```powershell New-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -IdentityType SystemAssigned -ProtocolType Iscsi -Encryption EncryptionAtRestWithPlatformKey ``` @@ -136,7 +136,7 @@ Type : Microsoft.ElasticSan/el This command creates a volume group with identity type "SystemAssigned" and encryption type "platform-managed key". -### Example 4: Create a volume group with platform-managed key and SystemAssigned identity type +### Example 4: Create a volume group with platform-managed key and SystemAssigned identity type ```powershell $useridentity = Get-AzUserAssignedIdentity -ResourceGroupName myresoucegroup -Name myuai @@ -409,6 +409,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProtocolType Type of storage target @@ -500,4 +515,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeSnapshot.md index e38c2ced0f45..f1be49bbb053 100644 --- a/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeSnapshot.md +++ b/src/ElasticSan/ElasticSan/help/New-AzElasticSanVolumeSnapshot.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/new-azelasticsanvolumesnapshot schema: 2.0.0 @@ -15,27 +15,29 @@ Create a Volume Snapshot. ### CreateExpanded (Default) ``` New-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName -CreationDataSourceId [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] -VolumeGroupName -CreationDataSourceId + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` -### CreateViaIdentityElasticSanExpanded +### CreateViaIdentityVolumegroupExpanded ``` -New-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name - -VolumeGroupName -CreationDataSourceId [-DefaultProfile ] [-AsJob] [-NoWait] - [-Confirm] [-WhatIf] [] +New-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + -CreationDataSourceId [-DefaultProfile ] [-AsJob] [-NoWait] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentityExpanded +### CreateViaIdentityElasticSanExpanded ``` -New-AzElasticSanVolumeSnapshot -InputObject -CreationDataSourceId - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +New-AzElasticSanVolumeSnapshot -Name -VolumeGroupName + -ElasticSanInputObject -CreationDataSourceId [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### CreateViaIdentityVolumegroupExpanded +### CreateViaIdentityExpanded ``` -New-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject - -CreationDataSourceId [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] +New-AzElasticSanVolumeSnapshot -InputObject -CreationDataSourceId + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -44,9 +46,9 @@ Create a Volume Snapshot. ## EXAMPLES -### Example 1: Create a volume snapshot +### Example 1: Create a volume snapshot ```powershell - $volume = New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGiB 1 +$volume = New-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume -SizeGiB 1 New-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -CreationDataSourceId $volume.Id -Name mysnapshot ``` @@ -121,7 +123,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 @@ -152,7 +153,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 @@ -171,7 +171,7 @@ The name of the volume snapshot within the given volume group. ```yaml Type: System.String -Parameter Sets: CreateExpanded, CreateViaIdentityElasticSanExpanded, CreateViaIdentityVolumegroupExpanded +Parameter Sets: CreateExpanded, CreateViaIdentityVolumegroupExpanded, CreateViaIdentityElasticSanExpanded Aliases: Required: True @@ -196,6 +196,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -229,7 +244,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 @@ -303,4 +317,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSan.md b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSan.md index 0debd4b7d51e..465f6a9c09bf 100644 --- a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSan.md +++ b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSan.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsan schema: 2.0.0 @@ -15,13 +15,14 @@ Delete a Elastic San. ### Delete (Default) ``` Remove-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity ``` Remove-AzElasticSan -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -31,7 +32,7 @@ Delete a Elastic San. ### Example 1: Remove a specific Elastic SAN ```powershell -Remove-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan +Remove-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan ``` This command removes a specific Elastic SAN. @@ -71,7 +72,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 @@ -130,6 +130,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -206,4 +221,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolume.md index 593c03aeddd4..537d5f7c1cac 100644 --- a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolume.md +++ b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolume.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolume schema: 2.0.0 @@ -15,29 +15,30 @@ Delete an Volume. ### Delete (Default) ``` Remove-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName [-SubscriptionId ] [-DeleteSnapshot ] [-ForceDelete ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] -VolumeGroupName [-DeleteSnapshot ] [-ForceDelete ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` -### DeleteViaIdentity +### DeleteViaIdentityVolumegroup ``` -Remove-AzElasticSanVolume -InputObject [-DeleteSnapshot ] - [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] +Remove-AzElasticSanVolume -Name -VolumegroupInputObject + [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### DeleteViaIdentityElasticSan ``` -Remove-AzElasticSanVolume -ElasticSanInputObject -Name - -VolumeGroupName [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolume -Name -VolumeGroupName -ElasticSanInputObject + [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### DeleteViaIdentityVolumegroup +### DeleteViaIdentity ``` -Remove-AzElasticSanVolume -Name -VolumegroupInputObject - [-DeleteSnapshot ] [-ForceDelete ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolume -InputObject [-DeleteSnapshot ] [-ForceDelete ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -45,7 +46,7 @@ Delete an Volume. ## EXAMPLES -### Example 1: Remove a volume +### Example 1: Remove a volume ```powershell Remove-AzElasticSanVolume -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name myvolume ``` @@ -104,7 +105,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 @@ -152,7 +152,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 @@ -171,7 +170,7 @@ The name of the Volume. ```yaml Type: System.String -Parameter Sets: Delete, DeleteViaIdentityElasticSan, DeleteViaIdentityVolumegroup +Parameter Sets: Delete, DeleteViaIdentityVolumegroup, DeleteViaIdentityElasticSan Aliases: VolumeName Required: True @@ -211,6 +210,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -244,7 +258,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 @@ -318,4 +331,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroup.md index a1c91672fe4b..df5bf22353d5 100644 --- a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroup.md +++ b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroup.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumegroup schema: 2.0.0 @@ -15,20 +15,21 @@ Delete an VolumeGroup. ### Delete (Default) ``` Remove-AzElasticSanVolumeGroup -ElasticSanName -Name -ResourceGroupName - [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### DeleteViaIdentity +### DeleteViaIdentityElasticSan ``` -Remove-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeGroup -Name -ElasticSanInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` -### DeleteViaIdentityElasticSan +### DeleteViaIdentity ``` -Remove-AzElasticSanVolumeGroup -ElasticSanInputObject -Name - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeGroup -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -78,7 +79,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 @@ -109,7 +109,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 @@ -168,6 +167,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -244,4 +258,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroupNetworkRule.md b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroupNetworkRule.md index 804229352624..683620b48041 100644 --- a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroupNetworkRule.md +++ b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeGroupNetworkRule.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumegroupnetworkrule schema: 2.0.0 @@ -14,16 +14,18 @@ Remove a list of virtual network rules from a VolumeGroup ### NetworkRuleObject (Default) ``` -Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName - -VolumeGroupName -NetworkAclsVirtualNetworkRule [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -VolumeGroupName + -ResourceGroupName [-SubscriptionId ] -NetworkAclsVirtualNetworkRule + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### NetworkRuleResourceId ``` -Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -ResourceGroupName - -VolumeGroupName -NetworkAclsVirtualNetworkResourceId [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeGroupNetworkRule -ElasticSanName -VolumeGroupName + -ResourceGroupName [-SubscriptionId ] -NetworkAclsVirtualNetworkResourceId + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -31,7 +33,7 @@ Remove a list of virtual network rules from a VolumeGroup ## EXAMPLES -### Example 1: Remove network rules by NetworkAclsVirtualNetworkRule objects +### Example 1: Remove network rules by NetworkAclsVirtualNetworkRule objects ```powershell # Initialze network rule objects $virtualNetworkRule1 = New-AzElasticSanVirtualNetworkRuleObject -VirtualNetworkResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/subnet1" -Action Allow @@ -170,6 +172,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -261,4 +278,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeSnapshot.md b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeSnapshot.md index da4cd5e49ce2..875a5b4ecc8b 100644 --- a/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeSnapshot.md +++ b/src/ElasticSan/ElasticSan/help/Remove-AzElasticSanVolumeSnapshot.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/remove-azelasticsanvolumesnapshot schema: 2.0.0 @@ -15,27 +15,28 @@ Delete a Volume Snapshot. ### Delete (Default) ``` Remove-AzElasticSanVolumeSnapshot -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] -VolumeGroupName [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### DeleteViaIdentity +### DeleteViaIdentityVolumegroup ``` -Remove-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] [-AsJob] - [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentityElasticSan ``` -Remove-AzElasticSanVolumeSnapshot -ElasticSanInputObject -Name - -VolumeGroupName [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] - [] +Remove-AzElasticSanVolumeSnapshot -Name -VolumeGroupName + -ElasticSanInputObject [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### DeleteViaIdentityVolumegroup +### DeleteViaIdentity ``` -Remove-AzElasticSanVolumeSnapshot -Name -VolumegroupInputObject - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +Remove-AzElasticSanVolumeSnapshot -InputObject [-DefaultProfile ] [-AsJob] + [-NoWait] [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -85,7 +86,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 @@ -116,7 +116,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 @@ -135,7 +134,7 @@ The name of the volume snapshot within the given volume group. ```yaml Type: System.String -Parameter Sets: Delete, DeleteViaIdentityElasticSan, DeleteViaIdentityVolumegroup +Parameter Sets: Delete, DeleteViaIdentityVolumegroup, DeleteViaIdentityElasticSan Aliases: Required: True @@ -175,6 +174,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -208,7 +222,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 @@ -282,4 +295,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Update-AzElasticSan.md b/src/ElasticSan/ElasticSan/help/Update-AzElasticSan.md index 5111750a4919..ea01540c99cc 100644 --- a/src/ElasticSan/ElasticSan/help/Update-AzElasticSan.md +++ b/src/ElasticSan/ElasticSan/help/Update-AzElasticSan.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsan schema: 2.0.0 @@ -16,14 +16,16 @@ Update a Elastic San. ``` Update-AzElasticSan -Name -ResourceGroupName [-SubscriptionId ] [-BaseSizeTiB ] [-ExtendedCapacitySizeTiB ] [-PublicNetworkAccess ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ### UpdateViaIdentityExpanded ``` Update-AzElasticSan -InputObject [-BaseSizeTiB ] [-ExtendedCapacitySizeTiB ] [-PublicNetworkAccess ] [-Tag ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` ## DESCRIPTION @@ -128,7 +130,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 @@ -172,6 +173,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -PublicNetworkAccess Allow or disallow public network access to ElasticSan Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. @@ -279,4 +295,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolume.md b/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolume.md index 8273845611a6..0f258d15abb4 100644 --- a/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolume.md +++ b/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolume.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolume schema: 2.0.0 @@ -15,27 +15,28 @@ Update an Volume. ### UpdateExpanded (Default) ``` Update-AzElasticSanVolume -ElasticSanName -Name -ResourceGroupName - -VolumeGroupName [-SubscriptionId ] [-SizeGiB ] [-DefaultProfile ] [-AsJob] - [-NoWait] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] -VolumeGroupName [-SizeGiB ] [-DefaultProfile ] [-AsJob] + [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### UpdateViaIdentityElasticSanExpanded +### UpdateViaIdentityVolumegroupExpanded ``` -Update-AzElasticSanVolume -ElasticSanInputObject -Name - -VolumeGroupName [-SizeGiB ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] - [-WhatIf] [] +Update-AzElasticSanVolume -Name -VolumegroupInputObject [-SizeGiB ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] + [] ``` -### UpdateViaIdentityExpanded +### UpdateViaIdentityElasticSanExpanded ``` -Update-AzElasticSanVolume -InputObject [-SizeGiB ] [-DefaultProfile ] - [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzElasticSanVolume -Name -VolumeGroupName -ElasticSanInputObject + [-SizeGiB ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` -### UpdateViaIdentityVolumegroupExpanded +### UpdateViaIdentityExpanded ``` -Update-AzElasticSanVolume -Name -VolumegroupInputObject [-SizeGiB ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +Update-AzElasticSanVolume -InputObject [-SizeGiB ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -106,7 +107,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 @@ -137,7 +137,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 @@ -156,7 +155,7 @@ The name of the Volume. ```yaml Type: System.String -Parameter Sets: UpdateExpanded, UpdateViaIdentityElasticSanExpanded, UpdateViaIdentityVolumegroupExpanded +Parameter Sets: UpdateExpanded, UpdateViaIdentityVolumegroupExpanded, UpdateViaIdentityElasticSanExpanded Aliases: VolumeName Required: True @@ -181,6 +180,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. @@ -229,7 +243,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 @@ -303,4 +316,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS - diff --git a/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolumeGroup.md b/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolumeGroup.md index 6262f3a2e731..388adafdb9bb 100644 --- a/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolumeGroup.md +++ b/src/ElasticSan/ElasticSan/help/Update-AzElasticSanVolumeGroup.md @@ -1,5 +1,5 @@ --- -external help file: +external help file: Az.ElasticSan-help.xml Module Name: Az.ElasticSan online version: https://learn.microsoft.com/powershell/module/az.elasticsan/update-azelasticsanvolumegroup schema: 2.0.0 @@ -18,26 +18,26 @@ Update-AzElasticSanVolumeGroup -ElasticSanName -Name -Resource [-SubscriptionId ] [-Encryption ] [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] [-NetworkAclsVirtualNetworkRule ] - [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] - [] + [-ProtocolType ] [-DefaultProfile ] [-AsJob] [-NoWait] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityElasticSanExpanded ``` -Update-AzElasticSanVolumeGroup -ElasticSanInputObject -Name +Update-AzElasticSanVolumeGroup -Name -ElasticSanInputObject [-Encryption ] [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] - [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded ``` Update-AzElasticSanVolumeGroup -InputObject [-Encryption ] - [-EncryptionUserAssignedIdentity ] [-IdentityType ] - [-IdentityUserAssignedIdentityId ] [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] - [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] + [-EncryptionUserAssignedIdentity ] [-IdentityType ] [-IdentityUserAssignedIdentityId ] + [-KeyName ] [-KeyVaultUri ] [-KeyVersion ] + [-NetworkAclsVirtualNetworkRule ] [-ProtocolType ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -71,7 +71,7 @@ Type : Microsoft.ElasticSan/ElasticSans This example updates the protocol type and virtual network rules of a volume gorup -### Example 2: Update a volume group virtual network rule with JSON input +### Example 2: Update a volume group virtual network rule with JSON input ```powershell Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -ProtocolType 'Iscsi'` -NetworkAclsVirtualNetworkRule ( @@ -100,7 +100,7 @@ Type : Microsoft.ElasticSan/ElasticSans This example updates the protocol type, virtual network rules, and tag of a volume group. It takes in the virtual network rules in JSON format. -### Example 3: Update a volume group from CMK to PMK +### Example 3: Update a volume group from CMK to PMK ```powershell Update-AzElasticSanVolumeGroup -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -Name myvolumegroup -Encryption EncryptionAtRestWithPlatformKey ``` @@ -412,6 +412,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ProgressAction +{{ Fill ProgressAction Description }} + +```yaml +Type: System.Management.Automation.ActionPreference +Parameter Sets: (All) +Aliases: proga + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ProtocolType Type of storage target @@ -503,4 +518,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS -