From e7bc36eb5d33f37edaf587bba6dab5b819a1f9b2 Mon Sep 17 00:00:00 2001 From: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:52:20 +0800 Subject: [PATCH] Migrate Storage from generation to main (#26840) * Move Storage to main * Update ChangeLog.md --------- Co-authored-by: Yabo Hu --- src/Storage/Storage.Autorest/README.md | 7 +- src/Storage/Storage.Autorest/build-module.ps1 | 7 +- .../Start-AzStorageAccountMigration.ps1 | 208 ++++ .../exports/ProxyCmdletDefinitions.ps1 | 28 +- .../Start-AzStorageAccountMigration.ps1 | 28 +- .../Storage.Autorest/generate-portal-ux.ps1 | 9 + .../Storage.Autorest/generated/api/Storage.cs | 1092 ++++++++--------- .../StartAzStorageAccountMigration_Start.cs | 605 +++++++++ ...zStorageAccountMigration_StartExpanded.cs} | 29 +- ...torageAccountMigration_StartViaIdentity.cs | 578 +++++++++ ...ountMigration_StartViaIdentityExpanded.cs} | 33 +- ...eAccountMigration_StartViaJsonFilePath.cs} | 35 +- ...ageAccountMigration_StartViaJsonString.cs} | 35 +- .../internal/ProxyCmdletDefinitions.ps1 | 262 ++++ .../Start-AzStorageAccountMigration.ps1 | 277 +++++ .../Storage.Management/Az.Storage.psd1 | 10 +- src/Storage/Storage.Management/ChangeLog.md | 2 + .../help/Add-AzRmStorageContainerLegalHold.md | 21 +- ...-AzStorageAccountManagementPolicyAction.md | 25 +- .../help/Add-AzStorageAccountNetworkRule.md | 27 +- .../help/Close-AzStorageFileHandle.md | 35 +- .../help/Copy-AzStorageBlob.md | 21 +- ...able-AzStorageBlobDeleteRetentionPolicy.md | 21 +- ...ble-AzStorageBlobLastAccessTimeTracking.md | 19 +- .../Disable-AzStorageBlobRestorePolicy.md | 21 +- ...AzStorageContainerDeleteRetentionPolicy.md | 21 +- .../Disable-AzStorageDeleteRetentionPolicy.md | 17 +- .../help/Disable-AzStorageStaticWebsite.md | 17 +- ...able-AzStorageBlobDeleteRetentionPolicy.md | 21 +- ...ble-AzStorageBlobLastAccessTimeTracking.md | 19 +- .../help/Enable-AzStorageBlobRestorePolicy.md | 21 +- ...AzStorageContainerDeleteRetentionPolicy.md | 21 +- .../Enable-AzStorageDeleteRetentionPolicy.md | 17 +- .../help/Enable-AzStorageStaticWebsite.md | 17 +- .../help/Get-AzDataLakeGen2ChildItem.md | 17 +- .../help/Get-AzDataLakeGen2DeletedItem.md | 17 +- .../help/Get-AzDataLakeGen2Item.md | 17 +- .../help/Get-AzDataLakeGen2ItemContent.md | 19 +- .../help/Get-AzRmStorageContainer.md | 19 +- ...-AzRmStorageContainerImmutabilityPolicy.md | 21 +- .../help/Get-AzRmStorageShare.md | 25 +- .../help/Get-AzStorageAccount.md | 21 +- .../help/Get-AzStorageAccountKey.md | 17 +- .../Get-AzStorageAccountManagementPolicy.md | 21 +- .../help/Get-AzStorageAccountMigration.md | 19 +- .../Get-AzStorageAccountNameAvailability.md | 17 +- .../Get-AzStorageAccountNetworkRuleSet.md | 17 +- .../help/Get-AzStorageBlob.md | 23 +- .../help/Get-AzStorageBlobByTag.md | 17 +- .../help/Get-AzStorageBlobContent.md | 29 +- .../help/Get-AzStorageBlobCopyState.md | 21 +- .../help/Get-AzStorageBlobInventoryPolicy.md | 21 +- .../help/Get-AzStorageBlobQueryResult.md | 21 +- .../help/Get-AzStorageBlobServiceProperty.md | 21 +- .../help/Get-AzStorageBlobTag.md | 21 +- .../help/Get-AzStorageCORSRule.md | 17 +- .../help/Get-AzStorageContainer.md | 19 +- ...et-AzStorageContainerStoredAccessPolicy.md | 17 +- .../help/Get-AzStorageEncryptionScope.md | 19 +- .../help/Get-AzStorageFile.md | 24 +- .../help/Get-AzStorageFileContent.md | 27 +- .../help/Get-AzStorageFileCopyState.md | 21 +- .../help/Get-AzStorageFileHandle.md | 31 +- .../help/Get-AzStorageFileServiceProperty.md | 21 +- .../help/Get-AzStorageLocalUser.md | 19 +- .../help/Get-AzStorageLocalUserKey.md | 21 +- .../Get-AzStorageObjectReplicationPolicy.md | 19 +- .../help/Get-AzStorageQueue.md | 19 +- .../Get-AzStorageQueueStoredAccessPolicy.md | 17 +- .../Get-AzStorageServiceLoggingProperty.md | 17 +- .../Get-AzStorageServiceMetricsProperty.md | 17 +- .../help/Get-AzStorageServiceProperty.md | 17 +- .../help/Get-AzStorageShare.md | 21 +- .../Get-AzStorageShareStoredAccessPolicy.md | 17 +- .../help/Get-AzStorageTable.md | 19 +- .../Get-AzStorageTableStoredAccessPolicy.md | 17 +- .../help/Get-AzStorageUsage.md | 17 +- ...ImmutableStorageWithVersioningMigration.md | 21 +- .../help/Invoke-AzStorageAccountFailover.md | 19 +- ...rageAccountHierarchicalNamespaceUpgrade.md | 19 +- ...-AzRmStorageContainerImmutabilityPolicy.md | 23 +- .../help/Move-AzDataLakeGen2Item.md | 19 +- .../help/New-AzDataLakeGen2Item.md | 19 +- .../help/New-AzDataLakeGen2SasToken.md | 19 +- .../help/New-AzRmStorageContainer.md | 23 +- .../help/New-AzRmStorageShare.md | 19 +- .../help/New-AzStorageAccount.md | 25 +- .../help/New-AzStorageAccountKey.md | 17 +- ...untManagementPolicyBlobIndexMatchObject.md | 17 +- ...-AzStorageAccountManagementPolicyFilter.md | 17 +- ...ew-AzStorageAccountManagementPolicyRule.md | 17 +- .../help/New-AzStorageAccountSASToken.md | 17 +- .../New-AzStorageBlobInventoryPolicyRule.md | 19 +- .../help/New-AzStorageBlobQueryConfig.md | 19 +- .../help/New-AzStorageBlobRangeToRestore.md | 17 +- .../help/New-AzStorageBlobSASToken.md | 23 +- .../help/New-AzStorageContainer.md | 19 +- .../help/New-AzStorageContainerSASToken.md | 19 +- ...ew-AzStorageContainerStoredAccessPolicy.md | 17 +- .../help/New-AzStorageContext.md | 43 +- .../help/New-AzStorageDirectory.md | 24 +- .../help/New-AzStorageEncryptionScope.md | 23 +- .../help/New-AzStorageFileSASToken.md | 27 +- .../New-AzStorageLocalUserPermissionScope.md | 17 +- .../help/New-AzStorageLocalUserSshPassword.md | 21 +- .../New-AzStorageLocalUserSshPublicKey.md | 17 +- ...ew-AzStorageObjectReplicationPolicyRule.md | 17 +- .../help/New-AzStorageQueue.md | 17 +- .../help/New-AzStorageQueueSASToken.md | 19 +- .../New-AzStorageQueueStoredAccessPolicy.md | 17 +- .../help/New-AzStorageShare.md | 17 +- .../help/New-AzStorageShareSASToken.md | 21 +- .../New-AzStorageShareStoredAccessPolicy.md | 18 +- .../help/New-AzStorageTable.md | 17 +- .../help/New-AzStorageTableSASToken.md | 19 +- .../New-AzStorageTableStoredAccessPolicy.md | 17 +- .../help/Remove-AzDataLakeGen2AclRecursive.md | 17 +- .../help/Remove-AzDataLakeGen2Item.md | 19 +- .../help/Remove-AzRmStorageContainer.md | 21 +- ...-AzRmStorageContainerImmutabilityPolicy.md | 23 +- .../Remove-AzRmStorageContainerLegalHold.md | 21 +- .../help/Remove-AzRmStorageShare.md | 27 +- .../help/Remove-AzStorageAccount.md | 17 +- ...Remove-AzStorageAccountManagementPolicy.md | 23 +- .../Remove-AzStorageAccountNetworkRule.md | 27 +- .../help/Remove-AzStorageBlob.md | 21 +- .../Remove-AzStorageBlobImmutabilityPolicy.md | 19 +- .../Remove-AzStorageBlobInventoryPolicy.md | 23 +- .../help/Remove-AzStorageCORSRule.md | 17 +- .../help/Remove-AzStorageContainer.md | 17 +- ...ve-AzStorageContainerStoredAccessPolicy.md | 17 +- .../help/Remove-AzStorageDirectory.md | 27 +- .../help/Remove-AzStorageFile.md | 31 +- .../help/Remove-AzStorageLocalUser.md | 21 +- ...Remove-AzStorageObjectReplicationPolicy.md | 21 +- .../help/Remove-AzStorageQueue.md | 17 +- ...Remove-AzStorageQueueStoredAccessPolicy.md | 17 +- .../help/Remove-AzStorageShare.md | 23 +- ...Remove-AzStorageShareStoredAccessPolicy.md | 19 +- .../help/Remove-AzStorageTable.md | 17 +- ...Remove-AzStorageTableStoredAccessPolicy.md | 17 +- .../help/Rename-AzStorageDirectory.md | 25 +- .../help/Rename-AzStorageFile.md | 27 +- .../help/Restore-AzDataLakeGen2DeletedItem.md | 19 +- .../help/Restore-AzRmStorageShare.md | 21 +- .../help/Restore-AzStorageBlobRange.md | 21 +- .../help/Restore-AzStorageContainer.md | 17 +- ...voke-AzStorageAccountUserDelegationKeys.md | 21 +- .../help/Set-AzCurrentStorageAccount.md | 19 +- .../help/Set-AzDataLakeGen2AclRecursive.md | 17 +- .../help/Set-AzDataLakeGen2ItemAclObject.md | 17 +- ...-AzRmStorageContainerImmutabilityPolicy.md | 31 +- .../help/Set-AzStorageAccount.md | 27 +- .../Set-AzStorageAccountManagementPolicy.md | 176 ++- .../help/Set-AzStorageBlobContent.md | 21 +- .../Set-AzStorageBlobImmutabilityPolicy.md | 19 +- .../help/Set-AzStorageBlobInventoryPolicy.md | 27 +- .../help/Set-AzStorageBlobLegalHold.md | 23 +- .../help/Set-AzStorageBlobTag.md | 21 +- .../help/Set-AzStorageCORSRule.md | 17 +- .../help/Set-AzStorageContainerAcl.md | 17 +- ...et-AzStorageContainerStoredAccessPolicy.md | 17 +- .../help/Set-AzStorageFileContent.md | 21 +- .../help/Set-AzStorageLocalUser.md | 19 +- .../Set-AzStorageObjectReplicationPolicy.md | 21 +- .../Set-AzStorageQueueStoredAccessPolicy.md | 17 +- .../Set-AzStorageServiceLoggingProperty.md | 17 +- .../Set-AzStorageServiceMetricsProperty.md | 17 +- .../help/Set-AzStorageShareQuota.md | 21 +- .../Set-AzStorageShareStoredAccessPolicy.md | 19 +- .../Set-AzStorageTableStoredAccessPolicy.md | 17 +- .../help/Start-AzStorageAccountMigration.md | 37 +- .../help/Start-AzStorageBlobCopy.md | 35 +- .../Start-AzStorageBlobIncrementalCopy.md | 25 +- .../help/Start-AzStorageFileCopy.md | 37 +- ...rageAccountHierarchicalNamespaceUpgrade.md | 19 +- .../help/Stop-AzStorageBlobCopy.md | 21 +- .../help/Stop-AzStorageFileCopy.md | 21 +- .../help/Update-AzDataLakeGen2AclRecursive.md | 17 +- .../help/Update-AzDataLakeGen2Item.md | 19 +- .../help/Update-AzRmStorageContainer.md | 21 +- .../help/Update-AzRmStorageShare.md | 23 +- .../Update-AzStorageAccountNetworkRuleSet.md | 17 +- .../Update-AzStorageBlobServiceProperty.md | 21 +- .../help/Update-AzStorageEncryptionScope.md | 27 +- .../Update-AzStorageFileServiceProperty.md | 21 +- .../help/Update-AzStorageServiceProperty.md | 17 +- 187 files changed, 5783 insertions(+), 1118 deletions(-) create mode 100644 src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 create mode 100644 src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_Start.cs rename src/Storage/Storage.Autorest/generated/cmdlets/{StartAzStorageAccountMigration_CustomerExpanded.cs => StartAzStorageAccountMigration_StartExpanded.cs} (96%) create mode 100644 src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentity.cs rename src/Storage/Storage.Autorest/generated/cmdlets/{StartAzStorageAccountMigration_CustomerViaIdentityExpanded.cs => StartAzStorageAccountMigration_StartViaIdentityExpanded.cs} (95%) rename src/Storage/Storage.Autorest/generated/cmdlets/{StartAzStorageAccountMigration_CustomerViaJsonFilePath.cs => StartAzStorageAccountMigration_StartViaJsonFilePath.cs} (95%) rename src/Storage/Storage.Autorest/generated/cmdlets/{StartAzStorageAccountMigration_CustomerViaJsonString.cs => StartAzStorageAccountMigration_StartViaJsonString.cs} (95%) create mode 100644 src/Storage/Storage.Autorest/internal/Start-AzStorageAccountMigration.ps1 diff --git a/src/Storage/Storage.Autorest/README.md b/src/Storage/Storage.Autorest/README.md index fcf69a24cb0a..96e7c8e9b373 100644 --- a/src/Storage/Storage.Autorest/README.md +++ b/src/Storage/Storage.Autorest/README.md @@ -44,17 +44,18 @@ nested-object-to-string: true identity-correction-for-post: true directive: + - from: swagger-document + where: $.paths.["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"].post.operationId + transform: return "StartAccountMigration" - remove-operation: StorageAccounts_Update - where: subject: ^StorageAccountCustomerInitiatedMigration$ set: subject: StorageAccountMigration - where: - verb: Invoke - subject: ^CustomerStorageAccountInitiatedMigration$ - set: verb: Start subject: AccountMigration + hide: true - where: variant: ^Customer$|^CustomerViaIdentity$ remove: true diff --git a/src/Storage/Storage.Autorest/build-module.ps1 b/src/Storage/Storage.Autorest/build-module.ps1 index 638ba2bb4e43..084df9128b5b 100644 --- a/src/Storage/Storage.Autorest/build-module.ps1 +++ b/src/Storage/Storage.Autorest/build-module.ps1 @@ -75,6 +75,8 @@ if(-not $NotIsolated -and -not $Debugger) { $binFolder = Join-Path $PSScriptRoot 'bin' $objFolder = Join-Path $PSScriptRoot 'obj' +$isAzure = [System.Convert]::ToBoolean('true') + if(-not $Debugger) { Write-Host -ForegroundColor Green 'Cleaning build folders...' $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder @@ -151,7 +153,7 @@ if($NoDocs) { $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue } $null = New-Item -ItemType Directory -Force -Path $docsFolder - $addComplexInterfaceInfo = ![System.Convert]::ToBoolean('true') + $addComplexInterfaceInfo = !$isAzure Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid -AddComplexInterfaceInfo:$addComplexInterfaceInfo } @@ -186,5 +188,4 @@ if (-not $DisableAfterBuildTasks){ } } - -Write-Host -ForegroundColor Green '-------------Done-------------' +Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file diff --git a/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 b/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 new file mode 100644 index 000000000000..a876e5a465e7 --- /dev/null +++ b/src/Storage/Storage.Autorest/custom/Start-AzStorageAccountMigration.ps1 @@ -0,0 +1,208 @@ +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# 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. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Description +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Example +Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob +.Example +Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob +.Example +$properties = '{ + "properties": { + "targetSkuName": "Standard_ZRS" + } +}' + Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob +.Example +# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} +Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +.Outputs +System.Boolean +.Notes +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. + +INPUTOBJECT : Identity Parameter + [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' + [DeletedAccountName ]: Name of the deleted storage account. + [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + [Id ]: Resource identity path + [Location ]: The location of the deleted storage account. + [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' + [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' + [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. +.Link +https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration +#> +function Start-AzStorageAccountMigration { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the storage account within the specified resource group. + # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + ${AccountName}, + + [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the resource group within the user's subscription. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='CustomerExpanded')] + [Parameter(ParameterSetName='CustomerViaJsonFilePath')] + [Parameter(ParameterSetName='CustomerViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] + [Parameter(ParameterSetName='CustomerViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Target sku name for the account + ${TargetSku}, + + [Parameter(ParameterSetName='CustomerExpanded')] + [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # current value is 'default' for customer initiated migration + ${Name}, + + [Parameter(ParameterSetName='CustomerExpanded')] + [Parameter(ParameterSetName='CustomerViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # SrpAccountMigrationType in ARM contract which is 'accountMigrations' + ${Type}, + + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Path of Json file supplied to the Customer operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Json string supplied to the Customer operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + + process { + Write-Warning("After your request to convert the account’s redundancy configuration is validated, the conversion will typically complete in a few days, but can take a few weeks depending on current resource demands in the region, account size, and other factors. The conversion can’t be stopped after being initiated, and for accounts with geo redundancy a failover can’t be initiated while conversion is in progress. The data within the storage account will continue to be accessible with no loss of durability or availability.") + Az.Storage.internal\Start-AzStorageAccountMigration @PSBoundParameters + } +} diff --git a/src/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 index c5d9a8698cbc..1872e94ac5ff 100644 --- a/src/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -271,8 +271,8 @@ function Start-AzStorageAccountMigration { [CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [System.String] # The name of the storage account within the specified resource group. @@ -280,8 +280,8 @@ param( ${AccountName}, [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [System.String] # The name of the resource group within the user's subscription. @@ -289,8 +289,8 @@ param( ${ResourceGroupName}, [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaJsonFilePath')] [Parameter(ParameterSetName='CustomerViaJsonString')] + [Parameter(ParameterSetName='CustomerViaJsonFilePath')] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -325,18 +325,18 @@ param( # SrpAccountMigrationType in ARM contract which is 'accountMigrations' ${Type}, - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Path of Json file supplied to the Customer operation - ${JsonFilePath}, - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] [System.String] # Json string supplied to the Customer operation ${JsonString}, + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Path of Json file supplied to the Customer operation + ${JsonFilePath}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -430,12 +430,12 @@ begin { } $mapping = @{ - CustomerExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerExpanded'; - CustomerViaIdentityExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaIdentityExpanded'; - CustomerViaJsonFilePath = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaJsonFilePath'; - CustomerViaJsonString = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaJsonString'; + CustomerExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaJsonString = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaJsonFilePath = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaIdentityExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; } - if (('CustomerExpanded', 'CustomerViaJsonFilePath', 'CustomerViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if (('CustomerExpanded', 'CustomerViaJsonString', 'CustomerViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { diff --git a/src/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 b/src/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 index b429e9b68eed..2474e48e248a 100644 --- a/src/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 +++ b/src/Storage/Storage.Autorest/exports/Start-AzStorageAccountMigration.ps1 @@ -69,8 +69,8 @@ function Start-AzStorageAccountMigration { [CmdletBinding(DefaultParameterSetName='CustomerExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [System.String] # The name of the storage account within the specified resource group. @@ -78,8 +78,8 @@ param( ${AccountName}, [Parameter(ParameterSetName='CustomerExpanded', Mandatory)] - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [System.String] # The name of the resource group within the user's subscription. @@ -87,8 +87,8 @@ param( ${ResourceGroupName}, [Parameter(ParameterSetName='CustomerExpanded')] - [Parameter(ParameterSetName='CustomerViaJsonFilePath')] [Parameter(ParameterSetName='CustomerViaJsonString')] + [Parameter(ParameterSetName='CustomerViaJsonFilePath')] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] @@ -123,18 +123,18 @@ param( # SrpAccountMigrationType in ARM contract which is 'accountMigrations' ${Type}, - [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] - [System.String] - # Path of Json file supplied to the Customer operation - ${JsonFilePath}, - [Parameter(ParameterSetName='CustomerViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] [System.String] # Json string supplied to the Customer operation ${JsonString}, + [Parameter(ParameterSetName='CustomerViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Path of Json file supplied to the Customer operation + ${JsonFilePath}, + [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] @@ -228,12 +228,12 @@ begin { } $mapping = @{ - CustomerExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerExpanded'; - CustomerViaIdentityExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaIdentityExpanded'; - CustomerViaJsonFilePath = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaJsonFilePath'; - CustomerViaJsonString = 'Az.Storage.private\Start-AzStorageAccountMigration_CustomerViaJsonString'; + CustomerExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaJsonString = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaJsonFilePath = 'Az.Storage.custom\Start-AzStorageAccountMigration'; + CustomerViaIdentityExpanded = 'Az.Storage.custom\Start-AzStorageAccountMigration'; } - if (('CustomerExpanded', 'CustomerViaJsonFilePath', 'CustomerViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + if (('CustomerExpanded', 'CustomerViaJsonString', 'CustomerViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { diff --git a/src/Storage/Storage.Autorest/generate-portal-ux.ps1 b/src/Storage/Storage.Autorest/generate-portal-ux.ps1 index 210a26e0b9aa..59d31fb52867 100644 --- a/src/Storage/Storage.Autorest/generate-portal-ux.ps1 +++ b/src/Storage/Storage.Autorest/generate-portal-ux.ps1 @@ -247,7 +247,16 @@ function New-MetadataForParameterSet() $cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name $description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description [object[]]$example = New-ExampleForParameterSet $ParameterSetInfo + if ($Null -eq $example) + { + $example = @() + } + [string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo + if ($Null -eq $signature) + { + $signature = @() + } return @{ Path = $httpPath diff --git a/src/Storage/Storage.Autorest/generated/api/Storage.cs b/src/Storage/Storage.Autorest/generated/api/Storage.cs index a97ed013a9ad..bff9d1dac36c 100644 --- a/src/Storage/Storage.Autorest/generated/api/Storage.cs +++ b/src/Storage/Storage.Autorest/generated/api/Storage.cs @@ -2688,7 +2688,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// The ID of the target subscription. @@ -2746,7 +2746,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// @@ -2811,7 +2811,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// @@ -2874,7 +2874,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// The ID of the target subscription. @@ -2931,7 +2931,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// The ID of the target subscription. @@ -2986,7 +2986,7 @@ public partial class Storage } /// - /// Patch encryption scope properties as specified in the request body. Update fails if the specified encryption scope does + /// patch encryption scope properties as specified in the request body. patch fails if the specified encryption scope does /// not already exist. /// /// The ID of the target subscription. @@ -3190,9 +3190,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -3250,9 +3250,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// /// Encryption scope properties to be used for the create or update. @@ -3317,9 +3317,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// /// Encryption scope properties to be used for the create or update. @@ -3381,9 +3381,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -3440,9 +3440,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -3496,9 +3496,9 @@ public partial class Storage } /// - /// Synchronously creates or updates an encryption scope under the specified storage account. If an encryption scope is already - /// created and a subsequent request is issued with different properties, the encryption scope properties will be updated - /// per the specified request. + /// Synchronously put an encryption scope under the specified storage account. If an encryption scope is already created and + /// a subsequent request is issued with different properties, the encryption scope properties will be updated per the specified + /// request. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -3713,7 +3713,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -3767,7 +3767,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// /// The local user associated with a storage account. /// a delegate that is called when the remote service returns 200 (OK). @@ -3829,7 +3829,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// /// The local user associated with a storage account. /// an instance that will receive events. @@ -3889,7 +3889,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -3942,7 +3942,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -3993,7 +3993,7 @@ public partial class Storage } } - /// Update the properties of a local user associated with the storage account + /// update the properties of a local user associated with the storage account /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -6726,7 +6726,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -6781,7 +6781,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// /// The object replication policy set to a storage account. A unique policy ID will be created if absent. /// a delegate that is called when the remote service returns 200 (OK). @@ -6843,7 +6843,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// /// The object replication policy set to a storage account. A unique policy ID will be created if absent. /// an instance that will receive events. @@ -6903,7 +6903,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -6957,7 +6957,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -7009,7 +7009,7 @@ public partial class Storage } } - /// Update the object replication policy of the storage account. + /// update the object replication policy of the storage account. /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must @@ -9226,7 +9226,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -9281,7 +9281,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// /// The private endpoint connection properties. @@ -9345,7 +9345,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// /// The private endpoint connection properties. @@ -9407,7 +9407,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -9461,7 +9461,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -9513,7 +9513,7 @@ public partial class Storage } /// - /// Put the state of specified private endpoint connection associated with the storage account. + /// put the state of specified private endpoint connection associated with the storage account. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -10300,20 +10300,27 @@ public partial class Storage } } - /// Abort live Migration of storage account to enable Hns + /// + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// zones in the primary region. + /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must /// be between 3 and 24 characters in length and use numbers and lower-case letters only. + /// The request parameters required to perform storage account migration. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration(string subscriptionId, string resourceGroupName, string accountName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StartAccountMigration(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2023-01-01"; // Constant Parameters @@ -10323,11 +10330,11 @@ public partial class Storage var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourcegroups/" + + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.Storage/storageAccounts/" + global::System.Uri.EscapeDataString(accountName) - + "/aborthnsonmigration" + + "/startAccountMigration" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10340,22 +10347,33 @@ public partial class Storage await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.StorageAccountsAbortHierarchicalNamespaceMigration_Call (request, onOk,onDefault,eventListener,sender); + await this.StartAccountMigration_Call (request, onOk,onDefault,eventListener,sender); } } - /// Abort live Migration of storage account to enable Hns + /// + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// zones in the primary region. + /// /// + /// The request parameters required to perform storage account migration. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigrationViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task StartAccountMigrationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) { var apiVersion = @"2023-01-01"; // Constant Parameters @@ -10363,10 +10381,10 @@ public partial class Storage { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.Storage/storageAccounts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Storage/storageAccounts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'"); } // replace URI parameters with values from identity @@ -10377,11 +10395,11 @@ public partial class Storage var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourcegroups/" + + "/resourceGroups/" + resourceGroupName + "/providers/Microsoft.Storage/storageAccounts/" + accountName - + "/aborthnsonmigration" + + "/startAccountMigration" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10394,14 +10412,71 @@ public partial class Storage await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.StorageAccountsAbortHierarchicalNamespaceMigration_Call (request, onOk,onDefault,eventListener,sender); + await this.StartAccountMigration_Call (request, onOk,onDefault,eventListener,sender); } } /// - /// Actual wire call for method. + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// zones in the primary region. /// + /// The ID of the target subscription. + /// The name of the resource group within the user's subscription. The name is case insensitive. + /// The name of the storage account within the specified resource group. Storage account names must + /// be between 3 and 24 characters in length and use numbers and lower-case letters only. + /// Json string supplied to the StartAccountMigration operation + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task StartAccountMigrationViaJsonString(string subscriptionId, string resourceGroupName, string accountName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-01-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Storage/storageAccounts/" + + global::System.Uri.EscapeDataString(accountName) + + "/startAccountMigration" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.StartAccountMigration_Call (request, onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10411,7 +10486,7 @@ public partial class Storage /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StartAccountMigration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10529,7 +10604,7 @@ public partial class Storage default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -10545,18 +10620,19 @@ public partial class Storage } /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must /// be between 3 and 24 characters in length and use numbers and lower-case letters only. + /// The request parameters required to perform storage account migration. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StartAccountMigration_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10570,21 +10646,25 @@ public partial class Storage await eventListener.AssertMinimumLength(nameof(accountName),accountName,3); await eventListener.AssertMaximumLength(nameof(accountName),accountName,24); await eventListener.AssertRegEx(nameof(accountName), accountName, @"^[a-z0-9]+$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Checks that the storage account name is valid and is not already in use. + /// Abort live Migration of storage account to enable Hns /// The ID of the target subscription. - /// The name of the storage account within the specified resource group. Storage account names must be - /// between 3 and 24 characters in length and use numbers and lower-case letters only. + /// The name of the resource group within the user's subscription. The name is case insensitive. + /// The name of the storage account within the specified resource group. Storage account names must + /// be between 3 and 24 characters in length and use numbers and lower-case letters only. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailability(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration(string subscriptionId, string resourceGroupName, string accountName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { var apiVersion = @"2023-01-01"; // Constant Parameters @@ -10594,7 +10674,11 @@ public partial class Storage var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Storage/checkNameAvailability" + + "/resourcegroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Storage/storageAccounts/" + + global::System.Uri.EscapeDataString(accountName) + + "/aborthnsonmigration" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10607,27 +10691,22 @@ public partial class Storage await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.StorageAccountsCheckNameAvailability_Call (request, onOk,eventListener,sender); + await this.StorageAccountsAbortHierarchicalNamespaceMigration_Call (request, onOk,onDefault,eventListener,sender); } } - /// Checks that the storage account name is valid and is not already in use. + /// Abort live Migration of storage account to enable Hns /// - /// The name of the storage account within the specified resource group. Storage account names must be - /// between 3 and 24 characters in length and use numbers and lower-case letters only. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + public async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigrationViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { var apiVersion = @"2023-01-01"; // Constant Parameters @@ -10635,19 +10714,25 @@ public partial class Storage { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Storage$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourcegroups/(?[^/]+)/providers/Microsoft.Storage/storageAccounts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Storage'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var accountName = _match.Groups["accountName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.Storage/checkNameAvailability" + + "/resourcegroups/" + + resourceGroupName + + "/providers/Microsoft.Storage/storageAccounts/" + + accountName + + "/aborthnsonmigration" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10660,93 +10745,359 @@ public partial class Storage await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.StorageAccountsCheckNameAvailability_Call (request, onOk,eventListener,sender); + await this.StorageAccountsAbortHierarchicalNamespaceMigration_Call (request, onOk,onDefault,eventListener,sender); } } - /// Checks that the storage account name is valid and is not already in use. - /// - /// The name of the storage account within the specified resource group. Storage account names must be - /// between 3 and 24 characters in length and use numbers and lower-case letters only. + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . /// - /// A that will be complete when handling of the response is completed. + /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + internal async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { - var apiVersion = @"2023-01-01"; - // Constant Parameters using( NoSynchronizationContext ) { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Storage$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) + global::System.Net.Http.HttpResponseMessage _response = null; + try { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Storage'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.Storage/checkNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + var operationLocation = _response.GetFirstHeader(@"Operation-Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + // delay before making the next polling request + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { + operationLocation = _response.GetFirstHeader(@"Operation-Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } - // make the call - return await this.StorageAccountsCheckNameAvailabilityWithResult_Call (request, eventListener,sender); - } - } + // drop the old response + _response?.Dispose(); - /// Checks that the storage account name is valid and is not already in use. - /// The ID of the target subscription. - /// Json string supplied to the StorageAccountsCheckNameAvailability operation - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaJsonString(string subscriptionId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-01-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.Storage/checkNameAvailability" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. + /// + /// The ID of the target subscription. + /// The name of the resource group within the user's subscription. The name is case insensitive. + /// The name of the storage account within the specified resource group. Storage account names must + /// be between 3 and 24 characters in length and use numbers and lower-case letters only. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task StorageAccountsAbortHierarchicalNamespaceMigration_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[-\w\._\(\)]+$"); + await eventListener.AssertNotNull(nameof(accountName),accountName); + await eventListener.AssertMinimumLength(nameof(accountName),accountName,3); + await eventListener.AssertMaximumLength(nameof(accountName),accountName,24); + await eventListener.AssertRegEx(nameof(accountName), accountName, @"^[a-z0-9]+$"); + } + } + + /// Checks that the storage account name is valid and is not already in use. + /// The ID of the target subscription. + /// The name of the storage account within the specified resource group. Storage account names must be + /// between 3 and 24 characters in length and use numbers and lower-case letters only. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailability(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-01-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Storage/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.StorageAccountsCheckNameAvailability_Call (request, onOk,eventListener,sender); + } + } + + /// Checks that the storage account name is valid and is not already in use. + /// + /// The name of the storage account within the specified resource group. Storage account names must be + /// between 3 and 24 characters in length and use numbers and lower-case letters only. + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-01-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Storage$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Storage'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Storage/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.StorageAccountsCheckNameAvailability_Call (request, onOk,eventListener,sender); + } + } + + /// Checks that the storage account name is valid and is not already in use. + /// + /// The name of the storage account within the specified resource group. Storage account names must be + /// between 3 and 24 characters in length and use numbers and lower-case letters only. + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaIdentityWithResult(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCheckNameAvailabilityParameters body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) + { + var apiVersion = @"2023-01-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.Storage$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.Storage'"); + } + + // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/providers/Microsoft.Storage/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return null; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return null; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return null; } + // make the call + return await this.StorageAccountsCheckNameAvailabilityWithResult_Call (request, eventListener,sender); + } + } + + /// Checks that the storage account name is valid and is not already in use. + /// The ID of the target subscription. + /// Json string supplied to the StorageAccountsCheckNameAvailability operation + /// a delegate that is called when the remote service returns 200 (OK). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task StorageAccountsCheckNameAvailabilityViaJsonString(string subscriptionId, global::System.String jsonString, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + { + var apiVersion = @"2023-01-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/providers/Microsoft.Storage/checkNameAvailability" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); @@ -10966,9 +11317,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -11018,9 +11369,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// /// The parameters to provide for the created account. @@ -11079,9 +11430,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// /// The parameters to provide for the created account. @@ -11140,9 +11491,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -11191,9 +11542,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -11242,9 +11593,9 @@ public partial class Storage } /// - /// Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent + /// Asynchronously create a new storage account with the specified parameters. If an account is already created and a subsequent /// create request is issued with different properties, the account properties will be updated. If an account is already created - /// and a subsequent create or update request is issued with the exact same set of properties, the request will succeed. + /// and a subsequent create request is issued with the exact same set of properties, the request will succeed. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. @@ -11298,151 +11649,10 @@ public partial class Storage /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. /// - /// A - /// that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task StorageAccountsCreateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: default - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - var operationLocation = _response.GetFirstHeader(@"Operation-Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Operation-Location"))) { - operationLocation = _response.GetFirstHeader(@"Operation-Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? global::System.String.IsNullOrEmpty(operationLocation) ? _originalUri : operationLocation : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) - { - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - break; - } - } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } - var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) ); - return await _result; - } - default: - { - throw new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException(_response); - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. + /// A + /// that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageAccountsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageAccountsCreateWithResult_Call(global::System.Net.Http.HttpRequestMessage request, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11450,10 +11660,10 @@ public partial class Storage try { var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return null; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 0); if( eventListener.Token.IsCancellationRequested ) { return null; } _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default @@ -11463,7 +11673,7 @@ public partial class Storage while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { // delay before making the next polling request - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // while we wait, let's grab the headers and get ready to poll. if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { @@ -11486,7 +11696,7 @@ public partial class Storage // make the polling call _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } // if we got back an OK, take a peek inside and see if it's done if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) @@ -11544,20 +11754,20 @@ public partial class Storage // make the final call _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } break; } } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return null; } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) { case global::System.Net.HttpStatusCode.OK: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return null; } + var _result = _response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) ); + return await _result; } default: { @@ -11575,227 +11785,15 @@ public partial class Storage } } - /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. - /// - /// The ID of the target subscription. - /// The name of the resource group within the user's subscription. The name is case insensitive. - /// The name of the storage account within the specified resource group. Storage account names must - /// be between 3 and 24 characters in length and use numbers and lower-case letters only. - /// The parameters to provide for the created account. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task StorageAccountsCreate_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCreateParameters body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertRegEx(nameof(resourceGroupName), resourceGroupName, @"^[-\w\._\(\)]+$"); - await eventListener.AssertNotNull(nameof(accountName),accountName); - await eventListener.AssertMinimumLength(nameof(accountName),accountName,3); - await eventListener.AssertMaximumLength(nameof(accountName),accountName,24); - await eventListener.AssertRegEx(nameof(accountName), accountName, @"^[a-z0-9]+$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); - } - } - - /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability - /// zones in the primary region. - /// - /// The ID of the target subscription. - /// The name of the resource group within the user's subscription. The name is case insensitive. - /// The name of the storage account within the specified resource group. Storage account names must - /// be between 3 and 24 characters in length and use numbers and lower-case letters only. - /// The request parameters required to perform storage account migration. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task StorageAccountsCustomerInitiatedMigration(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2023-01-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Storage/storageAccounts/" - + global::System.Uri.EscapeDataString(accountName) - + "/startAccountMigration" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.StorageAccountsCustomerInitiatedMigration_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability - /// zones in the primary region. - /// - /// - /// The request parameters required to perform storage account migration. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// Allows the caller to choose the depth of the serialization. See . - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task StorageAccountsCustomerInitiatedMigrationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeCreate|Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SerializationMode.IncludeUpdate) - { - var apiVersion = @"2023-01-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri - - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Storage/storageAccounts/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}'"); - } - - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var accountName = _match.Groups["accountName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.Storage/storageAccounts/" - + accountName - + "/startAccountMigration" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null, serializationMode).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.StorageAccountsCustomerInitiatedMigration_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability - /// zones in the primary region. - /// - /// The ID of the target subscription. - /// The name of the resource group within the user's subscription. The name is case insensitive. - /// The name of the storage account within the specified resource group. Storage account names must - /// be between 3 and 24 characters in length and use numbers and lower-case letters only. - /// Json string supplied to the StorageAccountsCustomerInitiatedMigration operation - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task StorageAccountsCustomerInitiatedMigrationViaJsonString(string subscriptionId, string resourceGroupName, string accountName, global::System.String jsonString, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) - { - var apiVersion = @"2023-01-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Storage/storageAccounts/" - + global::System.Uri.EscapeDataString(accountName) - + "/startAccountMigration" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(jsonString, global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.StorageAccountsCustomerInitiatedMigration_Call (request, onOk,onDefault,eventListener,sender); - } - } - - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageAccountsCustomerInitiatedMigration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task StorageAccountsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11809,8 +11807,7 @@ public partial class Storage await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); + // declared final-state-via: default var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); var operationLocation = _response.GetFirstHeader(@"Operation-Location"); @@ -11888,16 +11885,19 @@ public partial class Storage continue; } // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); + if (!string.IsNullOrWhiteSpace(_originalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Method.Get); - // drop the old response - _response?.Dispose(); + // drop the old response + _response?.Dispose(); - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress, "intentional placeholder", 100); if( eventListener.Token.IsCancellationRequested ) { return; } var _contentType = _response.Content.Headers.ContentType?.MediaType; @@ -11907,14 +11907,12 @@ public partial class Storage case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.StorageAccount.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ErrorResponseAutoGenerated.FromJson(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + throw new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException(_response); } } } @@ -11929,19 +11927,19 @@ public partial class Storage } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The ID of the target subscription. /// The name of the resource group within the user's subscription. The name is case insensitive. /// The name of the storage account within the specified resource group. Storage account names must /// be between 3 and 24 characters in length and use numbers and lower-case letters only. - /// The request parameters required to perform storage account migration. + /// The parameters to provide for the created account. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task StorageAccountsCustomerInitiatedMigration_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task StorageAccountsCreate_Validate(string subscriptionId, string resourceGroupName, string accountName, Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountCreateParameters body, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_Start.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_Start.cs new file mode 100644 index 000000000000..15f0064940da --- /dev/null +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_Start.cs @@ -0,0 +1,605 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Cmdlets; + using System; + + /// + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// zones in the primary region. + /// + /// + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_Start", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] + public partial class StartAzStorageAccountMigration_Start : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// Backing field for property. + private string _accountName; + + /// + /// The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters + /// in length and use numbers and lower-case letters only. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.", + SerializedName = @"accountName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Path)] + public string AccountName { get => this._accountName; set => this._accountName = value; } + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Storage Client => Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration _parameter; + + /// + /// The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current + /// SKU or region. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// + /// The name of the resource group within the user's subscription. The name is case insensitive. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the resource group within the user's subscription. The name is case insensitive.")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the resource group within the user's subscription. The name is case insensitive.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// The ID of the target subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The ID of the target subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The ID of the target subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id", + SetCondition = @"")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IErrorResponseAutoGenerated + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzStorageAccountMigration_Start + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_Start Clone() + { + var clone = new StartAzStorageAccountMigration_Start(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.SubscriptionId = this.SubscriptionId; + clone.ResourceGroupName = this.ResourceGroupName; + clone.AccountName = this.AccountName; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + await this.Client.StartAccountMigration(SubscriptionId, ResourceGroupName, AccountName, Parameter, onOk, onDefault, this, Pipeline); + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId,ResourceGroupName=ResourceGroupName,AccountName=AccountName}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public StartAzStorageAccountMigration_Start() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.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). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IErrorResponseAutoGenerated + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerExpanded.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartExpanded.cs similarity index 96% rename from src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerExpanded.cs rename to src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartExpanded.cs index a2d4ec4aeb6b..c9b239e71be8 100644 --- a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerExpanded.cs +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartExpanded.cs @@ -11,20 +11,21 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets using System; /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability /// zones in the primary region. /// /// - /// [OpenAPI] CustomerInitiatedMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_CustomerExpanded", SupportsShouldProcess = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_StartExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] - public partial class StartAzStorageAccountMigration_CustomerExpanded : global::System.Management.Automation.PSCmdlet, + public partial class StartAzStorageAccountMigration_StartExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext { @@ -275,10 +276,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of StartAzStorageAccountMigration_CustomerExpanded - public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_CustomerExpanded Clone() + /// a duplicate instance of StartAzStorageAccountMigration_StartExpanded + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_StartExpanded Clone() { - var clone = new StartAzStorageAccountMigration_CustomerExpanded(); + var clone = new StartAzStorageAccountMigration_StartExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -447,7 +448,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'StorageAccountsCustomerInitiatedMigration' operation")) + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -511,7 +512,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.StorageAccountsCustomerInitiatedMigration(SubscriptionId, ResourceGroupName, AccountName, _parametersBody, onOk, onDefault, this, Pipeline); + await this.Client.StartAccountMigration(SubscriptionId, ResourceGroupName, AccountName, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException urexception) @@ -529,9 +530,9 @@ protected override void ProcessRecord() } /// - /// Initializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// - public StartAzStorageAccountMigration_CustomerExpanded() + public StartAzStorageAccountMigration_StartExpanded() { } diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentity.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentity.cs new file mode 100644 index 000000000000..8a7eee060932 --- /dev/null +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentity.cs @@ -0,0 +1,578 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Extensions; + using Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell; + using Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Cmdlets; + using System; + + /// + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// zones in the primary region. + /// + /// + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_StartViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] + public partial class StartAzStorageAccountMigration_StartViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// A dictionary to carry over additional data for pipeline. + private global::System.Collections.Generic.Dictionary _extensibleParameters = new System.Collections.Generic.Dictionary(); + + /// A buffer to record first returned object in response. + private object _firstResponse = null; + + /// + /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. + /// Two means multiple returned objects in response. + /// + private int _responseSize = 0; + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// Accessor for cancellationTokenSource. + public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Storage Client => Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Accessor for extensibleParameters. + public global::System.Collections.Generic.IDictionary ExtensibleParameters { get => _extensibleParameters ; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration _parameter; + + /// + /// The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current + /// SKU or region. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region.", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region.", + SerializedName = @"parameters", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Body)] + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration Parameter { get => this._parameter; set => this._parameter = value; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Category(global::Microsoft.Azure.PowerShell.Cmdlets.Storage.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IErrorResponseAutoGenerated + /// from the remote call + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of StartAzStorageAccountMigration_StartViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_StartViaIdentity Clone() + { + var clone = new StartAzStorageAccountMigration_StartViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Parameter = this.Parameter; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + if (1 ==_responseSize) + { + // Flush buffer + WriteObject(_firstResponse); + } + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} 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. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.Progress: + { + var data = messageData(); + int progress = (int)data.Value; + string activityMessage, statusDescription; + global::System.Management.Automation.ProgressRecordType recordType; + if (progress < 100) + { + activityMessage = "In progress"; + statusDescription = "Checking operation status"; + recordType = System.Management.Automation.ProgressRecordType.Processing; + } + else + { + activityMessage = "Completed"; + statusDescription = "Completed"; + recordType = System.Management.Automation.ProgressRecordType.Completed; + } + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) + { + PercentComplete = progress, + RecordType = recordType + }); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.DelayBeforePolling: + { + var data = messageData(); + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + else + { + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + int delay = (int)(response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + WriteDebug($"Delaying {delay} seconds before polling."); + for (var now = 0; now < delay; ++now) + { + WriteProgress(new global::System.Management.Automation.ProgressRecord(1, "In progress", "Checking operation status") + { + PercentComplete = now * 100 / delay + }); + await global::System.Threading.Tasks.Task.Delay(1000, token); + } + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(i, t, () => Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.EventDataConverter.ConvertFrom(m()) as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.EventData), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName, this.ExtensibleParameters); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + try + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + if (InputObject?.Id != null) + { + await this.Client.StartAccountMigrationViaIdentity(InputObject.Id, Parameter, onOk, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.AccountName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.AccountName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.StartAccountMigration(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.AccountName ?? null, Parameter, onOk, onDefault, this, Pipeline); + } + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + catch (Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException urexception) + { + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Initializes a new instance of the cmdlet class. + /// + public StartAzStorageAccountMigration_StartViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.Storage.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). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IErrorResponseAutoGenerated + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, response, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // Error Response : default + var code = (await response)?.Code; + var message = (await response)?.Message; + if ((null == code || null == message)) + { + // Unrecognized Response. Create an error record based on what we have. + var ex = new Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.RestException(responseMessage, await response); + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + else + { + WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } + }); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + } +} \ No newline at end of file diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaIdentityExpanded.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentityExpanded.cs similarity index 95% rename from src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaIdentityExpanded.cs rename to src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentityExpanded.cs index 9f70f4df2f73..1c34e7012c67 100644 --- a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaIdentityExpanded.cs +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaIdentityExpanded.cs @@ -11,20 +11,21 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets using System; /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability /// zones in the primary region. /// /// - /// [OpenAPI] CustomerInitiatedMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_CustomerViaIdentityExpanded", SupportsShouldProcess = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_StartViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] - public partial class StartAzStorageAccountMigration_CustomerViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + public partial class StartAzStorageAccountMigration_StartViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext { @@ -231,12 +232,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// - /// a duplicate instance of StartAzStorageAccountMigration_CustomerViaIdentityExpanded - /// - public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_CustomerViaIdentityExpanded Clone() + /// a duplicate instance of StartAzStorageAccountMigration_StartViaIdentityExpanded + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_StartViaIdentityExpanded Clone() { - var clone = new StartAzStorageAccountMigration_CustomerViaIdentityExpanded(); + var clone = new StartAzStorageAccountMigration_StartViaIdentityExpanded(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -402,7 +401,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'StorageAccountsCustomerInitiatedMigration' operation")) + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -468,7 +467,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.StorageAccountsCustomerInitiatedMigrationViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); + await this.Client.StartAccountMigrationViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -485,7 +484,7 @@ protected override void ProcessRecord() { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.AccountName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } - await this.Client.StorageAccountsCustomerInitiatedMigration(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.AccountName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); + await this.Client.StartAccountMigration(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.AccountName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } @@ -504,9 +503,9 @@ protected override void ProcessRecord() } /// - /// Initializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// - public StartAzStorageAccountMigration_CustomerViaIdentityExpanded() + public StartAzStorageAccountMigration_StartViaIdentityExpanded() { } diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonFilePath.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonFilePath.cs similarity index 95% rename from src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonFilePath.cs rename to src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonFilePath.cs index 992aa09dd9bf..52e8a49c2428 100644 --- a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonFilePath.cs +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonFilePath.cs @@ -11,21 +11,22 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets using System; /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability /// zones in the primary region. /// /// - /// [OpenAPI] CustomerInitiatedMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_CustomerViaJsonFilePath", SupportsShouldProcess = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_StartViaJsonFilePath", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.NotSuggestDefaultParameterSet] - public partial class StartAzStorageAccountMigration_CustomerViaJsonFilePath : global::System.Management.Automation.PSCmdlet, + public partial class StartAzStorageAccountMigration_StartViaJsonFilePath : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext { @@ -121,12 +122,12 @@ public partial class StartAzStorageAccountMigration_CustomerViaJsonFilePath : gl /// Backing field for property. private string _jsonFilePath; - /// Path of Json file supplied to the Customer operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Customer operation")] + /// Path of Json file supplied to the Start operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Path of Json file supplied to the Start operation")] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Path of Json file supplied to the Customer operation", + Description = @"Path of Json file supplied to the Start operation", SerializedName = @"JsonFilePath", PossibleTypes = new [] { typeof(string) })] public string JsonFilePath { get => this._jsonFilePath; set { if (!System.IO.File.Exists(value)) { throw new Exception("Cannot find File " + value); } this._jsonString = System.IO.File.ReadAllText(value); this._jsonFilePath = value; } } @@ -251,10 +252,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of StartAzStorageAccountMigration_CustomerViaJsonFilePath - public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_CustomerViaJsonFilePath Clone() + /// a duplicate instance of StartAzStorageAccountMigration_StartViaJsonFilePath + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_StartViaJsonFilePath Clone() { - var clone = new StartAzStorageAccountMigration_CustomerViaJsonFilePath(); + var clone = new StartAzStorageAccountMigration_StartViaJsonFilePath(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -423,7 +424,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'StorageAccountsCustomerInitiatedMigration' operation")) + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -487,7 +488,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.StorageAccountsCustomerInitiatedMigrationViaJsonString(SubscriptionId, ResourceGroupName, AccountName, _jsonString, onOk, onDefault, this, Pipeline); + await this.Client.StartAccountMigrationViaJsonString(SubscriptionId, ResourceGroupName, AccountName, _jsonString, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException urexception) @@ -505,9 +506,9 @@ protected override void ProcessRecord() } /// - /// Initializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// - public StartAzStorageAccountMigration_CustomerViaJsonFilePath() + public StartAzStorageAccountMigration_StartViaJsonFilePath() { } diff --git a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonString.cs b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonString.cs similarity index 95% rename from src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonString.cs rename to src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonString.cs index 4a6ef9d97aad..47e2df85e8de 100644 --- a/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_CustomerViaJsonString.cs +++ b/src/Storage/Storage.Autorest/generated/cmdlets/StartAzStorageAccountMigration_StartViaJsonString.cs @@ -11,21 +11,22 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets using System; /// - /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates - /// the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability - /// and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability + /// Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the + /// non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and + /// availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability /// zones in the primary region. /// /// - /// [OpenAPI] CustomerInitiatedMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" + /// [OpenAPI] StartAccountMigration=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration" /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_CustomerViaJsonString", SupportsShouldProcess = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.InternalExport] + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Start, @"AzStorageAccountMigration_StartViaJsonString", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(bool))] - [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Description(@"Account Migration request can be triggered for a storage account to change its redundancy level. The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.Generated] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration", ApiVersion = "2023-01-01")] [global::Microsoft.Azure.PowerShell.Cmdlets.Storage.NotSuggestDefaultParameterSet] - public partial class StartAzStorageAccountMigration_CustomerViaJsonString : global::System.Management.Automation.PSCmdlet, + public partial class StartAzStorageAccountMigration_StartViaJsonString : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener, Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IContext { @@ -119,12 +120,12 @@ public partial class StartAzStorageAccountMigration_CustomerViaJsonString : glob /// Backing field for property. private string _jsonString; - /// Json string supplied to the Customer operation - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Customer operation")] + /// Json string supplied to the Start operation + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Json string supplied to the Start operation")] [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Info( Required = true, ReadOnly = false, - Description = @"Json string supplied to the Customer operation", + Description = @"Json string supplied to the Start operation", SerializedName = @"JsonString", PossibleTypes = new [] { typeof(string) })] public string JsonString { get => this._jsonString; set => this._jsonString = value; } @@ -249,10 +250,10 @@ protected override void BeginProcessing() } /// Creates a duplicate instance of this cmdlet (via JSON serialization). - /// a duplicate instance of StartAzStorageAccountMigration_CustomerViaJsonString - public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_CustomerViaJsonString Clone() + /// a duplicate instance of StartAzStorageAccountMigration_StartViaJsonString + public Microsoft.Azure.PowerShell.Cmdlets.Storage.Cmdlets.StartAzStorageAccountMigration_StartViaJsonString Clone() { - var clone = new StartAzStorageAccountMigration_CustomerViaJsonString(); + var clone = new StartAzStorageAccountMigration_StartViaJsonString(); clone.__correlationId = this.__correlationId; clone.__processRecordId = this.__processRecordId; clone.DefaultProfile = this.DefaultProfile; @@ -421,7 +422,7 @@ protected override void ProcessRecord() try { // work - if (ShouldProcess($"Call remote 'StorageAccountsCustomerInitiatedMigration' operation")) + if (ShouldProcess($"Call remote 'StartAccountMigration' operation")) { if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) { @@ -485,7 +486,7 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.StorageAccountsCustomerInitiatedMigrationViaJsonString(SubscriptionId, ResourceGroupName, AccountName, _jsonString, onOk, onDefault, this, Pipeline); + await this.Client.StartAccountMigrationViaJsonString(SubscriptionId, ResourceGroupName, AccountName, _jsonString, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.UndeclaredResponseException urexception) @@ -503,9 +504,9 @@ protected override void ProcessRecord() } /// - /// Initializes a new instance of the cmdlet class. + /// Initializes a new instance of the cmdlet class. /// - public StartAzStorageAccountMigration_CustomerViaJsonString() + public StartAzStorageAccountMigration_StartViaJsonString() { } diff --git a/src/Storage/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 b/src/Storage/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 index 261de533042b..a57529f2dda3 100644 --- a/src/Storage/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/src/Storage/Storage.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -123,3 +123,265 @@ end { } } } + +<# +.Synopsis +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Description +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Example +Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob +.Example +Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob +.Example +$properties = '{ + "properties": { + "targetSkuName": "Standard_ZRS" + } +}' + Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob +.Example +# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} +Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +.Outputs +System.Boolean +.Notes +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. + +INPUTOBJECT : Identity Parameter + [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' + [DeletedAccountName ]: Name of the deleted storage account. + [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + [Id ]: Resource identity path + [Location ]: The location of the deleted storage account. + [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' + [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' + [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. + +PARAMETER : The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. + DetailTargetSkuName : Target sku name for the account + [Name ]: current value is 'default' for customer initiated migration + [Type ]: SrpAccountMigrationType in ARM contract which is 'accountMigrations' +.Link +https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration +#> +function Start-AzStorageAccountMigration { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the storage account within the specified resource group. + # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + ${AccountName}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the resource group within the user's subscription. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaJsonFilePath')] + [Parameter(ParameterSetName='StartViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration] + # The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. + ${Parameter}, + + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Target sku name for the account + ${TargetSku}, + + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # current value is 'default' for customer initiated migration + ${Name}, + + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # SrpAccountMigrationType in ARM contract which is 'accountMigrations' + ${Type}, + + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Path of Json file supplied to the Start operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Json string supplied to the Start operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Start = 'Az.Storage.private\Start-AzStorageAccountMigration_Start'; + StartExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartExpanded'; + StartViaIdentity = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentity'; + StartViaIdentityExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentityExpanded'; + StartViaJsonFilePath = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonFilePath'; + StartViaJsonString = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonString'; + } + if (('Start', 'StartExpanded', 'StartViaJsonFilePath', 'StartViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.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) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/Storage/Storage.Autorest/internal/Start-AzStorageAccountMigration.ps1 b/src/Storage/Storage.Autorest/internal/Start-AzStorageAccountMigration.ps1 new file mode 100644 index 000000000000..52e6f7668689 --- /dev/null +++ b/src/Storage/Storage.Autorest/internal/Start-AzStorageAccountMigration.ps1 @@ -0,0 +1,277 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# 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. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Description +Account Migration request can be triggered for a storage account to change its redundancy level. +The migration start the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. +Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. +.Example +Start-AzStorageAccountMigration -AccountName myaccount -ResourceGroupName myresourcegroup -TargetSku Standard_LRS -Name migration1 -AsJob +.Example +Get-AzStorageAccount -ResourceGroupName myresourcegroup -Name myaccount | Start-AzStorageAccountMigration -TargetSku Standard_LRS -AsJob +.Example +$properties = '{ + "properties": { + "targetSkuName": "Standard_ZRS" + } +}' + Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonString $properties -AsJob +.Example +# Before executing the cmdlet, make sure you have a json file that contains {"properties": {"targetSkuName": }} +Start-AzStorageAccountMigration -ResourceGroupName myresourcegroup -AccountName myaccount -JsonFilePath properties.json -AsJob + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity +.Outputs +System.Boolean +.Notes +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. + +INPUTOBJECT : Identity Parameter + [AccountName ]: The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + [BlobInventoryPolicyName ]: The name of the storage account blob inventory policy. It should always be 'default' + [DeletedAccountName ]: Name of the deleted storage account. + [EncryptionScopeName ]: The name of the encryption scope within the specified storage account. Encryption scope names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number. + [Id ]: Resource identity path + [Location ]: The location of the deleted storage account. + [ManagementPolicyName ]: The name of the Storage Account Management Policy. It should always be 'default' + [MigrationName ]: The name of the Storage Account Migration. It should always be 'default' + [ObjectReplicationPolicyId ]: For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file. + [PrivateEndpointConnectionName ]: The name of the private endpoint connection associated with the Azure resource + [ResourceGroupName ]: The name of the resource group within the user's subscription. The name is case insensitive. + [SubscriptionId ]: The ID of the target subscription. + [Username ]: The name of local user. The username must contain lowercase letters and numbers only. It must be unique only within the storage account. + +PARAMETER : The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. + DetailTargetSkuName : Target sku name for the account + [Name ]: current value is 'default' for customer initiated migration + [Type ]: SrpAccountMigrationType in ARM contract which is 'accountMigrations' +.Link +https://learn.microsoft.com/powershell/module/az.storage/start-azstorageaccountmigration +#> +function Start-AzStorageAccountMigration { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='StartExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the storage account within the specified resource group. + # Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. + ${AccountName}, + + [Parameter(ParameterSetName='Start', Mandatory)] + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [System.String] + # The name of the resource group within the user's subscription. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Start')] + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaJsonFilePath')] + [Parameter(ParameterSetName='StartViaJsonString')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # The ID of the target subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity] + # Identity Parameter + ${InputObject}, + + [Parameter(ParameterSetName='Start', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageAccountMigration] + # The parameters or status associated with an ongoing or enqueued storage account migration in order to update its current SKU or region. + ${Parameter}, + + [Parameter(ParameterSetName='StartExpanded', Mandatory)] + [Parameter(ParameterSetName='StartViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.PSArgumentCompleterAttribute("Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS", "Standard_GZRS", "Standard_RAGZRS")] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Target sku name for the account + ${TargetSku}, + + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # current value is 'default' for customer initiated migration + ${Name}, + + [Parameter(ParameterSetName='StartExpanded')] + [Parameter(ParameterSetName='StartViaIdentityExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # SrpAccountMigrationType in ARM contract which is 'accountMigrations' + ${Type}, + + [Parameter(ParameterSetName='StartViaJsonFilePath', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Path of Json file supplied to the Start operation + ${JsonFilePath}, + + [Parameter(ParameterSetName='StartViaJsonString', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')] + [System.String] + # Json string supplied to the Start operation + ${JsonString}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + $mapping = @{ + Start = 'Az.Storage.private\Start-AzStorageAccountMigration_Start'; + StartExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartExpanded'; + StartViaIdentity = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentity'; + StartViaIdentityExpanded = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaIdentityExpanded'; + StartViaJsonFilePath = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonFilePath'; + StartViaJsonString = 'Az.Storage.private\Start-AzStorageAccountMigration_StartViaJsonString'; + } + if (('Start', 'StartExpanded', 'StartViaJsonFilePath', 'StartViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.Storage.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) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + + throw + } + +} +end { + try { + $steppablePipeline.End() + + } catch { + + throw + } +} +} diff --git a/src/Storage/Storage.Management/Az.Storage.psd1 b/src/Storage/Storage.Management/Az.Storage.psd1 index b9c9bc43caba..72d6bd13d524 100644 --- a/src/Storage/Storage.Management/Az.Storage.psd1 +++ b/src/Storage/Storage.Management/Az.Storage.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 11/15/2024 +# Generated on: 12/5/2024 # @{ @@ -74,10 +74,10 @@ RequiredAssemblies = 'Azure.Data.Tables.dll', 'Azure.Storage.Blobs.dll', 'System.IO.Hashing.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 = 'Storage.Autorest/Az.Storage.format.ps1xml', @@ -231,7 +231,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Storage','StorageAccount' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Storage', 'StorageAccount' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -281,7 +281,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/Storage/Storage.Management/ChangeLog.md b/src/Storage/Storage.Management/ChangeLog.md index 753ee3396f28..5581b3a6eef7 100644 --- a/src/Storage/Storage.Management/ChangeLog.md +++ b/src/Storage/Storage.Management/ChangeLog.md @@ -18,6 +18,8 @@ - Additional information about change #1 --> ## Upcoming Release +* Added warning message for account migration cmdlet. + - `Start-AzStorageAccountMigration` * Fixed error message when creating OAuth based Storage context without first login with Connect-AzAccount. - `New-AzStorageContext` * Upgraded Azure.Storage.Blobs to 12.23.0 diff --git a/src/Storage/Storage.Management/help/Add-AzRmStorageContainerLegalHold.md b/src/Storage/Storage.Management/help/Add-AzRmStorageContainerLegalHold.md index 819b61b69ab6..18bcf6239165 100644 --- a/src/Storage/Storage.Management/help/Add-AzRmStorageContainerLegalHold.md +++ b/src/Storage/Storage.Management/help/Add-AzRmStorageContainerLegalHold.md @@ -16,21 +16,21 @@ Adds legal hold tags to a Storage blob container ``` Add-AzRmStorageContainerLegalHold [-ResourceGroupName] [-StorageAccountName] -Name -Tag [-AllowProtectedAppendWriteAll ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Add-AzRmStorageContainerLegalHold -Name -StorageAccount -Tag [-AllowProtectedAppendWriteAll ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Add-AzRmStorageContainerLegalHold -Container -Tag [-AllowProtectedAppendWriteAll ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -123,6 +123,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md b/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md index 19329be6152d..4c53a836df6f 100644 --- a/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md +++ b/src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md @@ -16,35 +16,35 @@ Adds an action to the input ManagementPolicy Action Group object, or creates a M ``` Add-AzStorageAccountManagementPolicyAction -BaseBlobAction -DaysAfterModificationGreaterThan [-DaysAfterLastTierChangeGreaterThan ] [-InputObject ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BaseBlobLastAccessTime ``` Add-AzStorageAccountManagementPolicyAction -BaseBlobAction -DaysAfterLastAccessTimeGreaterThan [-EnableAutoTierToHotFromCool] [-InputObject ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BaseBlobCreationTime ``` Add-AzStorageAccountManagementPolicyAction -BaseBlobAction -DaysAfterCreationGreaterThan [-InputObject ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### Snapshot ``` Add-AzStorageAccountManagementPolicyAction -SnapshotAction -DaysAfterCreationGreaterThan [-DaysAfterLastTierChangeGreaterThan ] [-InputObject ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BlobVersion ``` Add-AzStorageAccountManagementPolicyAction -BlobVersionAction -DaysAfterCreationGreaterThan [-DaysAfterLastTierChangeGreaterThan ] [-InputObject ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -292,6 +292,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -SnapshotAction The management policy action for snapshot. diff --git a/src/Storage/Storage.Management/help/Add-AzStorageAccountNetworkRule.md b/src/Storage/Storage.Management/help/Add-AzStorageAccountNetworkRule.md index 192862e0448c..ded2a8a38a50 100644 --- a/src/Storage/Storage.Management/help/Add-AzStorageAccountNetworkRule.md +++ b/src/Storage/Storage.Management/help/Add-AzStorageAccountNetworkRule.md @@ -16,13 +16,13 @@ schema: 2.0.0 ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -VirtualNetworkResourceId [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### IpRuleObject ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -IPRule [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -30,27 +30,27 @@ Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] - ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -VirtualNetworkRule [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceAccessRuleObject ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -ResourceAccessRule [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### IpRuleString ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -IPAddressOrRange - [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceAccessRuleString ``` Add-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -TenantId - -ResourceId [-AsJob] [-DefaultProfile ] + -ResourceId [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -180,6 +180,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ResourceAccessRule Storage Account NetworkRule ResourceAccessRules. diff --git a/src/Storage/Storage.Management/help/Close-AzStorageFileHandle.md b/src/Storage/Storage.Management/help/Close-AzStorageFileHandle.md index 86ed126cc2eb..3b53cae2a02c 100644 --- a/src/Storage/Storage.Management/help/Close-AzStorageFileHandle.md +++ b/src/Storage/Storage.Management/help/Close-AzStorageFileHandle.md @@ -17,31 +17,31 @@ Closes file handles of a file share, a file directory or a file. Close-AzStorageFileHandle [-ShareName] [[-Path] ] [-Recursive] [-CloseAll] [-DisAllowTrailingDot] [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareNameCloseSingle ``` Close-AzStorageFileHandle [-ShareName] -FileHandle [-DisAllowTrailingDot] [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### ShareCloseAll ``` Close-AzStorageFileHandle [-ShareClient] [[-Path] ] [-Recursive] [-CloseAll] [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### ShareCloseSingle ``` Close-AzStorageFileHandle [-ShareClient] -FileHandle [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### DirectoryCloseAll @@ -49,15 +49,15 @@ Close-AzStorageFileHandle [-ShareClient] -FileHandle [[-Path] ] [-Recursive] [-CloseAll] [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### FileCloseAll ``` Close-AzStorageFileHandle [-ShareFileClient] [-CloseAll] [-PassThru] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -250,6 +250,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 +``` + ### -Recursive List handles Recursively. Only works on File Directory. diff --git a/src/Storage/Storage.Management/help/Copy-AzStorageBlob.md b/src/Storage/Storage.Management/help/Copy-AzStorageBlob.md index 5c9a23c9ceb2..c80db6528d37 100644 --- a/src/Storage/Storage.Management/help/Copy-AzStorageBlob.md +++ b/src/Storage/Storage.Management/help/Copy-AzStorageBlob.md @@ -17,7 +17,7 @@ Copy a blob synchronously. Copy-AzStorageBlob [-SrcBlob] -SrcContainer -DestContainer [-DestBlob ] [-DestBlobType ] [-StandardBlobTier ] [-RehydratePriority ] [-EncryptionScope ] [-Context ] [-DestContext ] [-Force] [-AsJob] - [-TagCondition ] [-DefaultProfile ] + [-TagCondition ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Copy-AzStorageBlob [-SrcBlob] -SrcContainer -DestContainer ] -DestContainer [-DestBlob ] [-DestBlobType ] [-StandardBlobTier ] [-RehydratePriority ] [-EncryptionScope ] [-Context ] [-DestContext ] [-Force] [-AsJob] - [-TagCondition ] [-DefaultProfile ] + [-TagCondition ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -35,7 +35,7 @@ Copy-AzStorageBlob [-BlobBaseClient ] -DestContainer [- Copy-AzStorageBlob -AbsoluteUri -DestContainer -DestBlob [-DestBlobType ] [-StandardBlobTier ] [-RehydratePriority ] [-EncryptionScope ] [-Context ] [-DestContext ] [-Force] [-AsJob] [-TagCondition ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -272,6 +272,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 +``` + ### -RehydratePriority Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageBlobDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Disable-AzStorageBlobDeleteRetentionPolicy.md index 46a0e148a778..03e848ee0c46 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageBlobDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageBlobDeleteRetentionPolicy.md @@ -15,21 +15,21 @@ Disable delete retention policy for the Azure Storage Blob service. ### AccountName (Default) ``` Disable-AzStorageBlobDeleteRetentionPolicy [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Disable-AzStorageBlobDeleteRetentionPolicy -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Disable-AzStorageBlobDeleteRetentionPolicy [-ResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -83,6 +83,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageBlobLastAccessTimeTracking.md b/src/Storage/Storage.Management/help/Disable-AzStorageBlobLastAccessTimeTracking.md index d20847c99cb0..213cf47312f5 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageBlobLastAccessTimeTracking.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageBlobLastAccessTimeTracking.md @@ -15,14 +15,14 @@ Disable last access time tracking for the Azure Storage Blob service. ### AccountName (Default) ``` Disable-AzStorageBlobLastAccessTimeTracking [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Disable-AzStorageBlobLastAccessTimeTracking -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -70,6 +70,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageBlobRestorePolicy.md b/src/Storage/Storage.Management/help/Disable-AzStorageBlobRestorePolicy.md index 2a33fca51b60..b930041d8231 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageBlobRestorePolicy.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageBlobRestorePolicy.md @@ -15,21 +15,21 @@ Disables Blob Restore Policy on a Storage account. ### AccountName (Default) ``` Disable-AzStorageBlobRestorePolicy [-ResourceGroupName] [-StorageAccountName] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Disable-AzStorageBlobRestorePolicy -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Disable-AzStorageBlobRestorePolicy [-ResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -77,6 +77,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageContainerDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Disable-AzStorageContainerDeleteRetentionPolicy.md index 7f2d826b6489..43aecf3ecc0a 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageContainerDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageContainerDeleteRetentionPolicy.md @@ -15,21 +15,21 @@ Disable delete retention policy for Azure Storage blob containers. ### AccountName (Default) ``` Disable-AzStorageContainerDeleteRetentionPolicy [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Disable-AzStorageContainerDeleteRetentionPolicy -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Disable-AzStorageContainerDeleteRetentionPolicy [-ResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -83,6 +83,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Disable-AzStorageDeleteRetentionPolicy.md index cfe876f9feda..25f8e8ce04c7 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageDeleteRetentionPolicy.md @@ -14,7 +14,7 @@ Disable delete retention policy for the Azure Storage Blob service. ``` Disable-AzStorageDeleteRetentionPolicy [-PassThru] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -77,6 +77,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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Disable-AzStorageStaticWebsite.md b/src/Storage/Storage.Management/help/Disable-AzStorageStaticWebsite.md index 8e0b987c24ba..31c782710fd6 100644 --- a/src/Storage/Storage.Management/help/Disable-AzStorageStaticWebsite.md +++ b/src/Storage/Storage.Management/help/Disable-AzStorageStaticWebsite.md @@ -14,7 +14,7 @@ Disable static website for the Azure Storage account. ``` Disable-AzStorageStaticWebsite [-PassThru] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -77,6 +77,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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageBlobDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Enable-AzStorageBlobDeleteRetentionPolicy.md index e71c3a5b940b..bcb6a58a0445 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageBlobDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageBlobDeleteRetentionPolicy.md @@ -16,20 +16,20 @@ Enable delete retention policy for the Azure Storage Blob service. ``` Enable-AzStorageBlobDeleteRetentionPolicy [-ResourceGroupName] [-StorageAccountName] -RetentionDays [-PassThru] [-AllowPermanentDelete] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Enable-AzStorageBlobDeleteRetentionPolicy -StorageAccount -RetentionDays [-PassThru] - [-AllowPermanentDelete] [-DefaultProfile ] + [-AllowPermanentDelete] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Enable-AzStorageBlobDeleteRetentionPolicy [-ResourceId] -RetentionDays [-PassThru] - [-AllowPermanentDelete] [-DefaultProfile ] + [-AllowPermanentDelete] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -98,6 +98,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageBlobLastAccessTimeTracking.md b/src/Storage/Storage.Management/help/Enable-AzStorageBlobLastAccessTimeTracking.md index 68784903c356..ae8c86f1b2aa 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageBlobLastAccessTimeTracking.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageBlobLastAccessTimeTracking.md @@ -15,14 +15,14 @@ Enable last access time tracking for the Azure Storage Blob service. ### AccountName (Default) ``` Enable-AzStorageBlobLastAccessTimeTracking [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Enable-AzStorageBlobLastAccessTimeTracking -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -76,6 +76,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md b/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md index ba955684d284..e1def21c5d49 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageBlobRestorePolicy.md @@ -16,20 +16,20 @@ Enables Blob Restore Policy on a Storage account. ``` Enable-AzStorageBlobRestorePolicy [-ResourceGroupName] [-StorageAccountName] -RestoreDays [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Enable-AzStorageBlobRestorePolicy -StorageAccount -RestoreDays [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Enable-AzStorageBlobRestorePolicy [-ResourceId] -RestoreDays [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -111,6 +111,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageContainerDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Enable-AzStorageContainerDeleteRetentionPolicy.md index 395d150554bc..8f1374017081 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageContainerDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageContainerDeleteRetentionPolicy.md @@ -16,20 +16,20 @@ Enable delete retention policy for Azure Storage blob containers. ``` Enable-AzStorageContainerDeleteRetentionPolicy [-ResourceGroupName] [-StorageAccountName] -RetentionDays [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Enable-AzStorageContainerDeleteRetentionPolicy -StorageAccount -RetentionDays - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobServicePropertiesResourceId ``` Enable-AzStorageContainerDeleteRetentionPolicy [-ResourceId] -RetentionDays [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -83,6 +83,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageDeleteRetentionPolicy.md b/src/Storage/Storage.Management/help/Enable-AzStorageDeleteRetentionPolicy.md index 4234f7644119..b80b1503276e 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageDeleteRetentionPolicy.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageDeleteRetentionPolicy.md @@ -14,7 +14,7 @@ Enable delete retention policy for the Azure Storage Blob service. ``` Enable-AzStorageDeleteRetentionPolicy [-RetentionDays] [-PassThru] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -77,6 +77,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 +``` + ### -RetentionDays Sets the number of retention days for the DeleteRetentionPolicy. diff --git a/src/Storage/Storage.Management/help/Enable-AzStorageStaticWebsite.md b/src/Storage/Storage.Management/help/Enable-AzStorageStaticWebsite.md index e9c2a33b8b0f..927daa1d50f1 100644 --- a/src/Storage/Storage.Management/help/Enable-AzStorageStaticWebsite.md +++ b/src/Storage/Storage.Management/help/Enable-AzStorageStaticWebsite.md @@ -14,7 +14,7 @@ Enable static website for the Azure Storage account. ``` Enable-AzStorageStaticWebsite [[-IndexDocument] ] [[-ErrorDocument404Path] ] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -107,6 +107,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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ChildItem.md b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ChildItem.md index ac08ffc5191e..0dd9847e6dc1 100644 --- a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ChildItem.md +++ b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ChildItem.md @@ -15,7 +15,7 @@ Lists sub directories and files from a directory or filesystem root. ``` Get-AzDataLakeGen2ChildItem [-FileSystem] [[-Path] ] [-FetchProperty] [-Recurse] [-MaxCount ] [-ContinuationToken ] [-AsJob] [-OutputUserPrincipalName] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -221,6 +221,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Recurse Indicates if will recursively get the Child Item. The default is false. diff --git a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2DeletedItem.md b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2DeletedItem.md index f9ea6b8cc435..c91d7ee54b4c 100644 --- a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2DeletedItem.md +++ b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2DeletedItem.md @@ -15,7 +15,7 @@ List all deleted files or directories from a directory or filesystem root. ``` Get-AzDataLakeGen2DeletedItem [-FileSystem] [[-Path] ] [-MaxCount ] [-ContinuationToken ] [-AsJob] [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -165,6 +165,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md index fce0d9b94958..db6a5fa3b83c 100644 --- a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2Item.md @@ -14,7 +14,7 @@ Gets the details of a file or directory in a filesystem. ``` Get-AzDataLakeGen2Item [-FileSystem] [-Path ] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -173,6 +173,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ItemContent.md b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ItemContent.md index 591c951706c3..52adeb895b00 100644 --- a/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ItemContent.md +++ b/src/Storage/Storage.Management/help/Get-AzDataLakeGen2ItemContent.md @@ -16,14 +16,14 @@ Download a file. ``` Get-AzDataLakeGen2ItemContent [-FileSystem] [-Path] [-Destination ] [-CheckMd5] [-Force] [-AsJob] [-Context ] [-DefaultProfile ] - [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] [] + [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ItemPipeline ``` Get-AzDataLakeGen2ItemContent -InputObject [-Destination ] [-CheckMd5] [-Force] [-AsJob] [-Context ] [-DefaultProfile ] - [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] [] + [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -216,6 +216,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Get-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/Get-AzRmStorageContainer.md index 37c01a4d6c35..ed9d09eb0338 100644 --- a/src/Storage/Storage.Management/help/Get-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/Get-AzRmStorageContainer.md @@ -15,14 +15,14 @@ Gets or lists Storage blob containers ### AccountName (Default) ``` Get-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] [-Name ] - [-IncludeDeleted] [-AsJob] [-DefaultProfile ] + [-IncludeDeleted] [-AsJob] [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzRmStorageContainer -StorageAccount [-Name ] [-IncludeDeleted] [-AsJob] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -131,6 +131,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzRmStorageContainerImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Get-AzRmStorageContainerImmutabilityPolicy.md index 51613ea21fa2..ad1632ebe8be 100644 --- a/src/Storage/Storage.Management/help/Get-AzRmStorageContainerImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzRmStorageContainerImmutabilityPolicy.md @@ -16,20 +16,20 @@ Gets ImmutabilityPolicy of a Storage blob containers ``` Get-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-StorageAccountName] -ContainerName [-Etag ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccount - [-Etag ] [-DefaultProfile ] + [-Etag ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### ContainerObject ``` Get-AzRmStorageContainerImmutabilityPolicy -Container [-Etag ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -122,6 +122,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md index 826de07fc623..15ee6ae9249f 100644 --- a/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Get-AzRmStorageShare.md @@ -16,33 +16,33 @@ Gets or lists Storage file shares. ``` Get-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] [-Name ] [-SnapshotTime ] [-GetShareUsage] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### AccountName ``` Get-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] [-IncludeDeleted] [-IncludeSnapshot] [-Filter ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### AccountObjectSingle ``` Get-AzRmStorageShare -StorageAccount -Name [-SnapshotTime ] - [-GetShareUsage] [-DefaultProfile ] + [-GetShareUsage] [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzRmStorageShare -StorageAccount [-IncludeDeleted] [-IncludeSnapshot] [-Filter ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ShareResourceId ``` Get-AzRmStorageShare [-ResourceId] [-GetShareUsage] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -263,6 +263,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccount.md b/src/Storage/Storage.Management/help/Get-AzStorageAccount.md index 55bc54abf58f..c8aa364f9baa 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccount.md @@ -16,19 +16,19 @@ Gets a Storage account. ### ResourceGroupParameterSet ``` Get-AzStorageAccount [[-ResourceGroupName] ] [-AsJob] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### AccountNameParameterSet ``` Get-AzStorageAccount [-ResourceGroupName] [-Name] [-IncludeGeoReplicationStats] [-AsJob] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### BlobRestoreStatusParameterSet ``` Get-AzStorageAccount [-ResourceGroupName] [-Name] [-IncludeBlobRestoreStatus] [-AsJob] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -149,6 +149,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the name of the resource group that contains the Storage account to get. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md index 9197d7b22767..52e5079184de 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountKey.md @@ -15,7 +15,7 @@ Gets the access keys for an Azure Storage account. ``` Get-AzStorageAccountKey [-ResourceGroupName] [-Name] [-ListKerbKey] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -105,6 +105,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the name of the resource group that contains the Storage account. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountManagementPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountManagementPolicy.md index 1a1e9aca896d..c231a554cb3d 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountManagementPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountManagementPolicy.md @@ -15,19 +15,19 @@ Gets the management policy of an Azure Storage account. ### AccountName (Default) ``` Get-AzStorageAccountManagementPolicy [-ResourceGroupName] [-StorageAccountName] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountResourceId ``` Get-AzStorageAccountManagementPolicy [-StorageAccountResourceId] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageAccountManagementPolicy -StorageAccount - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -124,6 +124,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountMigration.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountMigration.md index 25a22cb358d1..2a445d44665c 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountMigration.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountMigration.md @@ -15,13 +15,13 @@ Gets the status of the ongoing migration for the specified storage account. ### Get (Default) ``` Get-AzStorageAccountMigration -AccountName -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### GetViaIdentity ``` Get-AzStorageAccountMigration -InputObject [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -97,6 +97,21 @@ Accept pipeline input: True (ByValue) 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 within the user's subscription. The name is case insensitive. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountNameAvailability.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountNameAvailability.md index 4e175bba7138..27da890c4a7e 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountNameAvailability.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountNameAvailability.md @@ -15,7 +15,7 @@ Checks the availability of a Storage account name. ``` Get-AzStorageAccountNameAvailability [-Name] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -62,6 +62,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Get-AzStorageAccountNetworkRuleSet.md b/src/Storage/Storage.Management/help/Get-AzStorageAccountNetworkRuleSet.md index 038bd64b3eed..e04424592f30 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageAccountNetworkRuleSet.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageAccountNetworkRuleSet.md @@ -14,7 +14,7 @@ Get the NetWorkRule property of a Storage account ``` Get-AzStorageAccountNetworkRuleSet [-ResourceGroupName] [-Name] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -61,6 +61,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the name of the resource group contains the Storage account. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlob.md b/src/Storage/Storage.Management/help/Get-AzStorageBlob.md index 240d2c39f62b..cd8ef3d7feab 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlob.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlob.md @@ -18,7 +18,7 @@ Lists blobs in a container. Get-AzStorageBlob [[-Blob] ] [-Container] [-IncludeDeleted] [-IncludeTag] [-MaxCount ] [-ContinuationToken ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -28,7 +28,7 @@ Get-AzStorageBlob [-Blob] [-Container] [-IncludeDeleted] [-Inc -SnapshotTime [-MaxCount ] [-ContinuationToken ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [] + [-ProgressAction ] [] ``` ### SingleBlobVersionID @@ -36,7 +36,7 @@ Get-AzStorageBlob [-Blob] [-Container] [-IncludeDeleted] [-Inc Get-AzStorageBlob [-Blob] [-Container] [-IncludeDeleted] [-IncludeTag] -VersionId [-MaxCount ] [-ContinuationToken ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -45,7 +45,7 @@ Get-AzStorageBlob [-Blob] [-Container] [-IncludeDeleted] [-Inc Get-AzStorageBlob [-Prefix ] [-Container] [-IncludeDeleted] [-IncludeVersion] [-IncludeTag] [-MaxCount ] [-ContinuationToken ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -423,6 +423,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobByTag.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobByTag.md index d7a9405ff42f..1b2588df8b38 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobByTag.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobByTag.md @@ -16,7 +16,7 @@ Lists blobs in a storage account across containers, with a blob tag filter sql e Get-AzStorageBlobByTag -TagFilterSqlExpression [-MaxCount ] [-ContinuationToken ] [-GetBlobProperty] [-Container ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -211,6 +211,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobContent.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobContent.md index 62e00fcc004a..5b2422f5025e 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobContent.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobContent.md @@ -18,7 +18,7 @@ Downloads a storage blob. Get-AzStorageBlobContent [-Blob] [-Container] [-Destination ] [-CheckMd5] [-Context ] [-Force] [-AsJob] [-TagCondition ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobPipeline @@ -26,8 +26,8 @@ Get-AzStorageBlobContent [-Blob] [-Container] [-Destination [-BlobBaseClient ] [-Destination ] [-CheckMd5] [-Context ] [-Force] [-AsJob] [-TagCondition ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### ContainerPipeline @@ -35,16 +35,16 @@ Get-AzStorageBlobContent -CloudBlob [-BlobBaseClient [-Blob] [-Destination ] [-CheckMd5] [-Context ] [-Force] [-AsJob] [-TagCondition ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### UriPipeline ``` Get-AzStorageBlobContent [-Destination ] -AbsoluteUri [-Force] [-AsJob] [-TagCondition ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -311,6 +311,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobCopyState.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobCopyState.md index 75b5fa8236ca..d39ed751f890 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobCopyState.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobCopyState.md @@ -17,7 +17,7 @@ Gets the copy status of an Azure Storage blob. ``` Get-AzStorageBlobCopyState [-Blob] [-Container] [-WaitForComplete] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -25,7 +25,7 @@ Get-AzStorageBlobCopyState [-Blob] [-Container] [-WaitForCompl ``` Get-AzStorageBlobCopyState -CloudBlob [-WaitForComplete] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -33,7 +33,7 @@ Get-AzStorageBlobCopyState -CloudBlob [-WaitForComplete] [-Context < ``` Get-AzStorageBlobCopyState -CloudBlobContainer [-Blob] [-WaitForComplete] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -210,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md index 14b89ef3c102..bb56922a1b83 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobInventoryPolicy.md @@ -15,19 +15,19 @@ Gets blob inventory policy from a Storage account. ### AccountName (Default) ``` Get-AzStorageBlobInventoryPolicy [-ResourceGroupName] [-StorageAccountName] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountResourceId ``` Get-AzStorageBlobInventoryPolicy [-StorageAccountResourceId] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageBlobInventoryPolicy -StorageAccount [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -80,6 +80,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md index 3ebe74f5ee96..b2bfe27838b0 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobQueryResult.md @@ -19,7 +19,7 @@ Get-AzStorageBlobQueryResult [-Blob] [-Container] [-SnapshotTi [-InputTextConfiguration ] [-OutputTextConfiguration ] [-PassThru] [-Force] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -29,7 +29,7 @@ Get-AzStorageBlobQueryResult -BlobBaseClient -QueryString ] [-OutputTextConfiguration ] [-PassThru] [-Force] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -40,7 +40,7 @@ Get-AzStorageBlobQueryResult -BlobContainerClient [-Blob] [-InputTextConfiguration ] [-OutputTextConfiguration ] [-PassThru] [-Force] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -285,6 +285,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 +``` + ### -QueryString Query string, see more details in: https://learn.microsoft.com/azure/storage/blobs/query-acceleration-sql-reference diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobServiceProperty.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobServiceProperty.md index b3fdd0aa3fa5..d06264464ce4 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobServiceProperty.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobServiceProperty.md @@ -15,19 +15,19 @@ Gets service properties for Azure Storage Blob services. ### AccountName (Default) ``` Get-AzStorageBlobServiceProperty [-ResourceGroupName] [-StorageAccountName] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageBlobServiceProperty -StorageAccount [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### BlobServicePropertiesResourceId ``` Get-AzStorageBlobServiceProperty [-ResourceId] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -71,6 +71,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageBlobTag.md b/src/Storage/Storage.Management/help/Get-AzStorageBlobTag.md index 858b543fdb1d..80e3542ec36d 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageBlobTag.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageBlobTag.md @@ -16,7 +16,7 @@ Get blob tags of a specific blob. ``` Get-AzStorageBlobTag [-Blob] [-Container] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Get-AzStorageBlobTag [-Blob] [-Container] [-TagCondition [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Get-AzStorageBlobTag -BlobBaseClient [-TagCondition ] [ ``` Get-AzStorageBlobTag -CloudBlobContainer [-Blob] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -193,6 +193,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageCORSRule.md b/src/Storage/Storage.Management/help/Get-AzStorageCORSRule.md index aa8e839dc54e..473e6be53682 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageCORSRule.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageCORSRule.md @@ -16,7 +16,7 @@ Gets CORS rules for a Storage service type. ``` Get-AzStorageCORSRule [-ServiceType] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -101,6 +101,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageContainer.md b/src/Storage/Storage.Management/help/Get-AzStorageContainer.md index fb3aa54ccafe..d060f36cb462 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageContainer.md @@ -18,7 +18,7 @@ Lists the storage containers. Get-AzStorageContainer [[-Name] ] [-MaxCount ] [-ContinuationToken ] [-IncludeDeleted] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [] + [-ProgressAction ] [] ``` ### ContainerPrefix @@ -26,7 +26,7 @@ Get-AzStorageContainer [[-Name] ] [-MaxCount ] [-ContinuationToke Get-AzStorageContainer -Prefix [-MaxCount ] [-ContinuationToken ] [-IncludeDeleted] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -233,6 +233,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageContainerStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageContainerStoredAccessPolicy.md index e06c339fbfe1..07ceea7a70ec 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageContainerStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageContainerStoredAccessPolicy.md @@ -16,7 +16,7 @@ Gets the stored access policy or policies for an Azure storage container. ``` Get-AzStorageContainerStoredAccessPolicy [-Container] [[-Policy] ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -137,6 +137,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md b/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md index e1f0424125c6..fabff22debf6 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageEncryptionScope.md @@ -16,14 +16,14 @@ Get or list encryption scopes from a Storage account. ``` Get-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] [-EncryptionScopeName ] [-MaxPageSize ] [-Filter ] [-Include ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageEncryptionScope -StorageAccount [-EncryptionScopeName ] [-MaxPageSize ] [-Filter ] [-Include ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -176,6 +176,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFile.md b/src/Storage/Storage.Management/help/Get-AzStorageFile.md index 54312449bc2c..4679526b3647 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFile.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFile.md @@ -17,21 +17,24 @@ Lists directories and files for a path. ``` Get-AzStorageFile [-ShareName] [[-Path] ] [-ExcludeExtendedInfo] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Share ``` Get-AzStorageFile [-ShareClient] [[-Path] ] [-ExcludeExtendedInfo] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Directory ``` Get-AzStorageFile [-ShareDirectoryClient] [[-Path] ] [-ExcludeExtendedInfo] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -174,6 +177,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 +``` + ### -ServerTimeoutPerRequest Specifies the service-side timeout interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the Storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFileContent.md b/src/Storage/Storage.Management/help/Get-AzStorageFileContent.md index b5a8fc2da3d2..5e11ddc36beb 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFileContent.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFileContent.md @@ -18,8 +18,8 @@ Downloads the contents of a file. Get-AzStorageFileContent [-ShareName] [-Path] [[-Destination] ] [-CheckMd5] [-PassThru] [-Force] [-AsJob] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [-PreserveSMBAttribute] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ### Share @@ -27,7 +27,7 @@ Get-AzStorageFileContent [-ShareName] [-Path] [[-Destination] Get-AzStorageFileContent [-ShareClient] [-Path] [[-Destination] ] [-CheckMd5] [-PassThru] [-Force] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ### Directory @@ -35,8 +35,8 @@ Get-AzStorageFileContent [-ShareClient] [-Path] [[-Destin Get-AzStorageFileContent [-ShareDirectoryClient] [-Path] [[-Destination] ] [-CheckMd5] [-PassThru] [-Force] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [-PreserveSMBAttribute] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ### File @@ -44,7 +44,7 @@ Get-AzStorageFileContent [-ShareDirectoryClient] [-Path] Get-AzStorageFileContent [-ShareFileClient] [[-Destination] ] [-CheckMd5] [-PassThru] [-Force] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ## DESCRIPTION @@ -266,6 +266,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFileCopyState.md b/src/Storage/Storage.Management/help/Get-AzStorageFileCopyState.md index e17830be09c1..60c682d76dd7 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFileCopyState.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFileCopyState.md @@ -17,14 +17,16 @@ Gets the state of a copy operation. ``` Get-AzStorageFileCopyState [-ShareName] [-FilePath] [-WaitForComplete] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### File ``` Get-AzStorageFileCopyState [-ShareFileClient] [-WaitForComplete] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -149,6 +151,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFileHandle.md b/src/Storage/Storage.Management/help/Get-AzStorageFileHandle.md index 8a91668e5580..7ec7bc408a09 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFileHandle.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFileHandle.md @@ -16,32 +16,32 @@ Lists file handles of a file share, a file directory or a file. ``` Get-AzStorageFileHandle [-ShareName] [[-Path] ] [-Recursive] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-IncludeTotalCount] - [-Skip ] [-First ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-IncludeTotalCount] [-Skip ] [-First ] [] ``` ### Share ``` Get-AzStorageFileHandle [-ShareClient] [[-Path] ] [-Recursive] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-IncludeTotalCount] - [-Skip ] [-First ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-IncludeTotalCount] [-Skip ] [-First ] [] ``` ### Directory ``` Get-AzStorageFileHandle [-ShareDirectoryClient] [[-Path] ] [-Recursive] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-IncludeTotalCount] - [-Skip ] [-First ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-IncludeTotalCount] [-Skip ] [-First ] [] ``` ### File ``` Get-AzStorageFileHandle [-ShareFileClient ] [-Recursive] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-IncludeTotalCount] - [-Skip ] [-First ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-IncludeTotalCount] [-Skip ] [-First ] [] ``` ## DESCRIPTION @@ -190,6 +190,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 +``` + ### -Recursive List handles Recursively. Only works on File Directory. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageFileServiceProperty.md b/src/Storage/Storage.Management/help/Get-AzStorageFileServiceProperty.md index 6f133b0252a8..73b263d159b8 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageFileServiceProperty.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageFileServiceProperty.md @@ -15,19 +15,19 @@ Gets service properties for Azure Storage File services. ### AccountName (Default) ``` Get-AzStorageFileServiceProperty [-ResourceGroupName] [-StorageAccountName] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageFileServiceProperty -StorageAccount [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### FileServicePropertiesResourceId ``` Get-AzStorageFileServiceProperty [-ResourceId] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -71,6 +71,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md b/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md index 19d66f8568d0..526af4698233 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageLocalUser.md @@ -15,13 +15,13 @@ Gets a specified local user or lists all local users in a storage account. ### AccountName (Default) ``` Get-AzStorageLocalUser [-ResourceGroupName] [-StorageAccountName] [-UserName ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageLocalUser -StorageAccount [-UserName ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -87,6 +87,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageLocalUserKey.md b/src/Storage/Storage.Management/help/Get-AzStorageLocalUserKey.md index 6e641ce7f7a4..9ddf0fc17609 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageLocalUserKey.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageLocalUserKey.md @@ -15,21 +15,21 @@ Lists SSH authorized keys and shared key of a specified local user. ### AccountName (Default) ``` Get-AzStorageLocalUserKey [-ResourceGroupName] [-StorageAccountName] -UserName - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Get-AzStorageLocalUserKey -StorageAccount -UserName - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UserObject ``` Get-AzStorageLocalUserKey [-InputObject] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -82,6 +82,21 @@ Accept pipeline input: True (ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md index 1ea8568a06fc..497db400409c 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageObjectReplicationPolicy.md @@ -15,14 +15,14 @@ Gets or lists object replication policy of a Storage account. ### AccountName (Default) ``` Get-AzStorageObjectReplicationPolicy [-ResourceGroupName] [-StorageAccountName] - [-PolicyId ] [-DefaultProfile ] + [-PolicyId ] [-DefaultProfile ] [-ProgressAction ] [] ``` ### AccountObject ``` Get-AzStorageObjectReplicationPolicy -StorageAccount [-PolicyId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -101,6 +101,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageQueue.md b/src/Storage/Storage.Management/help/Get-AzStorageQueue.md index 7df6e920734d..5c280acf45b2 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageQueue.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageQueue.md @@ -16,13 +16,13 @@ Lists storage queues. ### QueueName (Default) ``` Get-AzStorageQueue [[-Name] ] [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### QueuePrefix ``` Get-AzStorageQueue -Prefix [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -116,6 +116,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Get-AzStorageQueueStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageQueueStoredAccessPolicy.md index e7a58bfc5328..13a07359204c 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageQueueStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageQueueStoredAccessPolicy.md @@ -15,7 +15,7 @@ Gets the stored access policy or policies for an Azure storage queue. ``` Get-AzStorageQueueStoredAccessPolicy [-Queue] [[-Policy] ] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,6 +85,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -Queue Specifies the Azure storage queue name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageServiceLoggingProperty.md b/src/Storage/Storage.Management/help/Get-AzStorageServiceLoggingProperty.md index 31fcff2aaabf..35407cc7d168 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageServiceLoggingProperty.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageServiceLoggingProperty.md @@ -15,7 +15,7 @@ Gets logging properties for Azure Storage services. ``` Get-AzStorageServiceLoggingProperty [-ServiceType] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -63,6 +63,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 +``` + ### -ServiceType Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageServiceMetricsProperty.md b/src/Storage/Storage.Management/help/Get-AzStorageServiceMetricsProperty.md index f430a2883603..fbb091f4e3a1 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageServiceMetricsProperty.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageServiceMetricsProperty.md @@ -15,7 +15,7 @@ Gets metrics properties for the Azure Storage service. ``` Get-AzStorageServiceMetricsProperty [-ServiceType] [-MetricsType] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -82,6 +82,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 +``` + ### -ServiceType Specifies the storage service type. This cmdlet gets the metrics properties for the type that this parameter specifies. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageServiceProperty.md b/src/Storage/Storage.Management/help/Get-AzStorageServiceProperty.md index 924364ae3add..17614235ffa5 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageServiceProperty.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageServiceProperty.md @@ -14,7 +14,7 @@ Gets properties for Azure Storage services. ``` Get-AzStorageServiceProperty [-ServiceType] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -78,6 +78,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 +``` + ### -ServiceType Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageShare.md b/src/Storage/Storage.Management/help/Get-AzStorageShare.md index 339d8df25ebd..1067b6d2a581 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageShare.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageShare.md @@ -17,14 +17,16 @@ Gets a list of file shares. ``` Get-AzStorageShare [[-Prefix] ] [-IncludeDeleted] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Specific ``` Get-AzStorageShare [-Name] [[-SnapshotTime] ] [-SkipGetProperty] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -187,6 +189,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageShareStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageShareStoredAccessPolicy.md index 91a0aa7f54f1..e49b619810dd 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageShareStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageShareStoredAccessPolicy.md @@ -16,7 +16,7 @@ Gets stored access policies for a Storage share. ``` Get-AzStorageShareStoredAccessPolicy [-ShareName] [[-Policy] ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -124,6 +124,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageTable.md b/src/Storage/Storage.Management/help/Get-AzStorageTable.md index 396db7a40850..50e93b4e90ed 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageTable.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageTable.md @@ -16,13 +16,13 @@ Lists the storage tables. ### TableName (Default) ``` Get-AzStorageTable [[-Name] ] [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### TablePrefix ``` Get-AzStorageTable -Prefix [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -117,6 +117,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Get-AzStorageTableStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Get-AzStorageTableStoredAccessPolicy.md index 4a2099737a31..fe308c588718 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageTableStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageTableStoredAccessPolicy.md @@ -15,7 +15,7 @@ Gets the stored access policy or policies for an Azure storage table. ``` Get-AzStorageTableStoredAccessPolicy [-Table] [[-Policy] ] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -85,6 +85,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -Table Specifies the Azure storage table name. diff --git a/src/Storage/Storage.Management/help/Get-AzStorageUsage.md b/src/Storage/Storage.Management/help/Get-AzStorageUsage.md index d256e1dfe5c6..34438007e87a 100644 --- a/src/Storage/Storage.Management/help/Get-AzStorageUsage.md +++ b/src/Storage/Storage.Management/help/Get-AzStorageUsage.md @@ -15,7 +15,7 @@ Gets the Storage resource usage of the current subscription. ``` Get-AzStorageUsage -Location [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -71,6 +71,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration.md b/src/Storage/Storage.Management/help/Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration.md index afaff4848a17..66125aa05d20 100644 --- a/src/Storage/Storage.Management/help/Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration.md +++ b/src/Storage/Storage.Management/help/Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration.md @@ -16,20 +16,20 @@ Migrate an existing Storage blob containers to enable immutable Storage with ver ``` Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration [-ResourceGroupName] [-StorageAccountName] -Name [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration -Name -StorageAccount [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Invoke-AzRmStorageContainerImmutableStorageWithVersioningMigration -InputObject [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -112,6 +112,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md index 9243e3709b05..bf60eb94f48c 100644 --- a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md +++ b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountFailover.md @@ -15,14 +15,14 @@ Invokes failover of a Storage account. ### AccountName (Default) ``` Invoke-AzStorageAccountFailover [-ResourceGroupName] [-Name] [-Force] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Invoke-AzStorageAccountFailover -InputObject [-Force] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -131,6 +131,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md index 46ba4022a92c..f794c94331fc 100644 --- a/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md +++ b/src/Storage/Storage.Management/help/Invoke-AzStorageAccountHierarchicalNamespaceUpgrade.md @@ -16,13 +16,13 @@ Validates if a storage account can be upgraded to enable HierarchicalNamespace, ``` Invoke-AzStorageAccountHierarchicalNamespaceUpgrade [-ResourceGroupName] [-Name] -RequestType [-Force] [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Invoke-AzStorageAccountHierarchicalNamespaceUpgrade -InputObject -RequestType - [-Force] [-AsJob] [-DefaultProfile ] [-WhatIf] + [-Force] [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -124,6 +124,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 +``` + ### -RequestType The HierarchicalNamespaceUpgrade requestType to run: - Validation: Validate if the account can be upgrade to enable HierarchicalNamespace. diff --git a/src/Storage/Storage.Management/help/Lock-AzRmStorageContainerImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Lock-AzRmStorageContainerImmutabilityPolicy.md index cfd57a5a1c27..134d5ac42d2f 100644 --- a/src/Storage/Storage.Management/help/Lock-AzRmStorageContainerImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Lock-AzRmStorageContainerImmutabilityPolicy.md @@ -16,27 +16,27 @@ Locks ImmutabilityPolicy of a Storage blob containers ``` Lock-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-StorageAccountName] -ContainerName -Etag [-Force] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Lock-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccount - -Etag [-Force] [-DefaultProfile ] + -Etag [-Force] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Lock-AzRmStorageContainerImmutabilityPolicy -Container -Etag [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ImmutabilityPolicyObject ``` Lock-AzRmStorageContainerImmutabilityPolicy [-InputObject] [-Force] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -170,6 +170,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Move-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Move-AzDataLakeGen2Item.md index 31fb912b1774..b50b800ae4dc 100644 --- a/src/Storage/Storage.Management/help/Move-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Move-AzDataLakeGen2Item.md @@ -16,14 +16,14 @@ Move a file or directory to another a file or directory in same Storage account. ``` Move-AzDataLakeGen2Item [-FileSystem] [-Path] -DestFileSystem -DestPath [-Force] [-Context ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ItemPipeline ``` Move-AzDataLakeGen2Item -InputObject -DestFileSystem -DestPath [-Force] [-Context ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -205,6 +205,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/New-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/New-AzDataLakeGen2Item.md index 9e3854315dd8..0190bf60a62e 100644 --- a/src/Storage/Storage.Management/help/New-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/New-AzDataLakeGen2Item.md @@ -17,7 +17,7 @@ Create a file or directory in a filesystem. New-AzDataLakeGen2Item [-FileSystem] [-Path] -Source [-Umask ] [-Permission ] [-EncryptionContext ] [-Property ] [-Metadata ] [-Force] [-AsJob] [-Context ] [-DefaultProfile ] - [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] [] + [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### Directory @@ -25,7 +25,7 @@ New-AzDataLakeGen2Item [-FileSystem] [-Path] -Source New-AzDataLakeGen2Item [-FileSystem] [-Path] [-Directory] [-Umask ] [-Permission ] [-Property ] [-Metadata ] [-Force] [-AsJob] [-Context ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -248,6 +248,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 +``` + ### -Property Specifies properties for the created directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. diff --git a/src/Storage/Storage.Management/help/New-AzDataLakeGen2SasToken.md b/src/Storage/Storage.Management/help/New-AzDataLakeGen2SasToken.md index 047c85dfa189..d579da5ae4fc 100644 --- a/src/Storage/Storage.Management/help/New-AzDataLakeGen2SasToken.md +++ b/src/Storage/Storage.Management/help/New-AzDataLakeGen2SasToken.md @@ -17,7 +17,7 @@ Generates a SAS token for Azure DatalakeGen2 item. New-AzDataLakeGen2SasToken [-FileSystem] [-Path ] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-EncryptionScope ] [-FullUri] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### ItemPipeline @@ -25,7 +25,7 @@ New-AzDataLakeGen2SasToken [-FileSystem] [-Path ] [-Permission New-AzDataLakeGen2SasToken -InputObject [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-EncryptionScope ] [-FullUri] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -202,6 +202,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 +``` + ### -Protocol Protocol can be used in the request with this SAS token. diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md index b9829375dca2..88a4439e6364 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageContainer.md @@ -17,7 +17,7 @@ Creates a Storage blob container New-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] -Name [-PublicAccess ] [-Metadata ] [-RootSquash ] [-EnableImmutableStorageWithVersioning] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountNameEncryptionScope @@ -25,7 +25,7 @@ New-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] [-StorageAccountName] -Name -DefaultEncryptionScope -PreventEncryptionScopeOverride [-PublicAccess ] [-Metadata ] [-RootSquash ] [-EnableImmutableStorageWithVersioning] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -33,7 +33,7 @@ New-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] -Name [-PublicAccess ] [-Metadata ] [-RootSquash ] [-EnableImmutableStorageWithVersioning] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -42,7 +42,7 @@ New-AzRmStorageContainer -StorageAccount -Name [-Pub New-AzRmStorageContainer -StorageAccount -Name -DefaultEncryptionScope -PreventEncryptionScopeOverride [-PublicAccess ] [-Metadata ] [-RootSquash ] [-EnableImmutableStorageWithVersioning] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -216,6 +216,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 +``` + ### -PublicAccess Container PublicAccess diff --git a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md index 7cd493c007af..f6e8d78c943e 100644 --- a/src/Storage/Storage.Management/help/New-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/New-AzRmStorageShare.md @@ -16,7 +16,7 @@ Creates a Storage file share. ``` New-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-Snapshot] [-EnabledProtocol ] - [-RootSquash ] [-DefaultProfile ] + [-RootSquash ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ New-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-Snapshot] [-EnabledProtocol ] [-RootSquash ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -195,6 +195,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 +``` + ### -QuotaGiB Share Quota in Gibibyte. diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccount.md b/src/Storage/Storage.Management/help/New-AzStorageAccount.md index fb23fa21800a..dc739decb7a8 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccount.md @@ -29,7 +29,7 @@ New-AzStorageAccount [-ResourceGroupName] [-Name] [-SkuName] < [-AllowCrossTenantReplication ] [-DefaultSharePermission ] [-EdgeZone ] [-PublicNetworkAccess ] [-EnableAccountLevelImmutability] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-AllowedCopyScope ] [-DnsEndpointType ] - [-DefaultProfile ] [-RoutingChoice ] + [-DefaultProfile ] [-RoutingChoice ] [-ProgressAction ] [] ``` @@ -50,7 +50,7 @@ New-AzStorageAccount [-ResourceGroupName] [-Name] [-SkuName] < [-DefaultSharePermission ] [-EdgeZone ] [-PublicNetworkAccess ] [-EnableAccountLevelImmutability] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-AllowedCopyScope ] [-DnsEndpointType ] [-DefaultProfile ] - [-RoutingChoice ] [] + [-RoutingChoice ] [-ProgressAction ] [] ``` ### ActiveDirectoryDomainServicesForFile @@ -73,7 +73,7 @@ New-AzStorageAccount [-ResourceGroupName] [-Name] [-SkuName] < [-DefaultSharePermission ] [-EdgeZone ] [-PublicNetworkAccess ] [-EnableAccountLevelImmutability] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-AllowedCopyScope ] [-DnsEndpointType ] [-DefaultProfile ] - [-RoutingChoice ] [] + [-RoutingChoice ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -395,7 +395,7 @@ the *AccessTier* parameter. Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Hot, Cool +Accepted values: Hot, Cool, Cold Required: False Position: Named @@ -1066,7 +1066,7 @@ The minimum TLS version to be permitted on requests to storage. The default inte Type: System.String Parameter Sets: (All) Aliases: -Accepted values: TLS1_0, TLS1_1, TLS1_2 +Accepted values: TLS1_0, TLS1_1, TLS1_2, TLS1_3 Required: False Position: Named @@ -1105,6 +1105,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 Storage Account.Possible values include: 'Enabled', 'Disabled'. diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountKey.md b/src/Storage/Storage.Management/help/New-AzStorageAccountKey.md index b14a4bf4c253..39bb35b01120 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountKey.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountKey.md @@ -15,7 +15,7 @@ Regenerates a storage key for an Azure Storage account. ``` New-AzStorageAccountKey [-ResourceGroupName] [-Name] [-KeyName] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -83,6 +83,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the name of the resource group that contains the Storage account. diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md index ab91eacacc9e..5acfb181b115 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyBlobIndexMatchObject.md @@ -14,7 +14,7 @@ Creates a ManagementPolicy BlobIndexMatch object, which can be used in New-AzSto ``` New-AzStorageAccountManagementPolicyBlobIndexMatchObject [-Name ] [-Value ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -78,6 +78,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 +``` + ### -Value Gets or sets this is the filter tag value field used for tag based filtering, it can have 0 - 256 characters. diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md index 4653a6582538..7f424cae4d3f 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyFilter.md @@ -15,7 +15,7 @@ Creates a ManagementPolicy rule filter object, which can be used in New-AzStorag ``` New-AzStorageAccountManagementPolicyFilter [-PrefixMatch ] [-BlobType ] [-BlobIndexMatch ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -108,6 +108,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md index c4b78be043ea..5427e408989c 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountManagementPolicyRule.md @@ -15,7 +15,7 @@ Creates a ManagementPolicy rule object, which can be used in Set-AzStorageAccoun ``` New-AzStorageAccountManagementPolicyRule [-Name] [-Disabled] -Action [-Filter ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -156,6 +156,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/New-AzStorageAccountSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageAccountSASToken.md index 0343f4e18ade..5723843cada6 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageAccountSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageAccountSASToken.md @@ -17,7 +17,7 @@ Creates an account-level SAS token. New-AzStorageAccountSASToken -Service -ResourceType [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-EncryptionScope ] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -146,6 +146,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 +``` + ### -Protocol Specifies the protocol permitted for a request made with the account SAS. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md b/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md index 41ab39cbbc21..2640ffc1c854 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md +++ b/src/Storage/Storage.Management/help/New-AzStorageBlobInventoryPolicyRule.md @@ -18,14 +18,14 @@ New-AzStorageBlobInventoryPolicyRule [-Name] [-Disabled] -Destination < -Schedule -BlobSchemaField -BlobType [-PrefixMatch ] [-ExcludePrefix ] [-IncludeSnapshot] [-IncludeBlobVersion] [-IncludeDeleted] [-CreationTimeLastNDay ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ### ContainerRuleParameterSet ``` New-AzStorageBlobInventoryPolicyRule [-Name] [-Disabled] -Destination -Format -Schedule -ContainerSchemaField [-PrefixMatch ] [-ExcludePrefix ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -291,6 +291,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 +``` + ### -Schedule This field is used to schedule an inventory formation. Possible values include: 'Daily', 'Weekly' diff --git a/src/Storage/Storage.Management/help/New-AzStorageBlobQueryConfig.md b/src/Storage/Storage.Management/help/New-AzStorageBlobQueryConfig.md index c1e0af9e78ef..0855394b5a73 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageBlobQueryConfig.md +++ b/src/Storage/Storage.Management/help/New-AzStorageBlobQueryConfig.md @@ -16,13 +16,13 @@ Creates a blob query configuration object, which can be used in Get-AzStorageBlo ``` New-AzStorageBlobQueryConfig [-AsCsv] [-RecordSeparator ] [-ColumnSeparator ] [-QuotationCharacter ] [-EscapeCharacter ] [-HasHeader] [-AsJob] - [] + [-ProgressAction ] [] ``` ### Json ``` New-AzStorageBlobQueryConfig [-AsJson] [-RecordSeparator ] [-AsJob] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -146,6 +146,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 +``` + ### -QuotationCharacter Optional. The char used to quote a specific field. diff --git a/src/Storage/Storage.Management/help/New-AzStorageBlobRangeToRestore.md b/src/Storage/Storage.Management/help/New-AzStorageBlobRangeToRestore.md index f79a053f7328..52d702319b04 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageBlobRangeToRestore.md +++ b/src/Storage/Storage.Management/help/New-AzStorageBlobRangeToRestore.md @@ -14,7 +14,7 @@ Creates a Blob Range object to restores a Storage account. ``` New-AzStorageBlobRangeToRestore [-StartRange ] [-EndRange ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,6 +84,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 +``` + ### -StartRange Specify the blob restore start range. Start range will be included in restore blobs. diff --git a/src/Storage/Storage.Management/help/New-AzStorageBlobSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageBlobSASToken.md index 74691e60b783..970912d68340 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageBlobSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageBlobSASToken.md @@ -18,7 +18,7 @@ Generates a SAS token for an Azure storage blob. New-AzStorageBlobSASToken [-Container] [-Blob] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -27,7 +27,7 @@ New-AzStorageBlobSASToken [-Container] [-Blob] [-Permission [-BlobBaseClient ] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -36,7 +36,7 @@ New-AzStorageBlobSASToken -CloudBlob [-BlobBaseClient [-BlobBaseClient ] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -45,7 +45,7 @@ New-AzStorageBlobSASToken -CloudBlob [-BlobBaseClient [-Blob] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -267,6 +267,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageContainer.md b/src/Storage/Storage.Management/help/New-AzStorageContainer.md index 231373007874..20154071c0e9 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/New-AzStorageContainer.md @@ -17,7 +17,7 @@ Creates an Azure storage container. ``` New-AzStorageContainer [-Name] [[-Permission] ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -26,7 +26,7 @@ New-AzStorageContainer [-Name] [[-Permission] [[-Permission] ] -DefaultEncryptionScope -PreventEncryptionScopeOverride [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -207,6 +207,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/New-AzStorageContainerSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageContainerSASToken.md index c9517f65e8e2..09e4be8851c2 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageContainerSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageContainerSASToken.md @@ -18,7 +18,7 @@ Generates an SAS token for an Azure storage container. New-AzStorageContainerSASToken [-Name] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### SasPermission @@ -26,7 +26,7 @@ New-AzStorageContainerSASToken [-Name] -Policy [-Protocol [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-EncryptionScope ] [-Context ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -209,6 +209,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageContainerStoredAccessPolicy.md b/src/Storage/Storage.Management/help/New-AzStorageContainerStoredAccessPolicy.md index 62d99b9b4aa0..0562d5fbdccd 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageContainerStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/New-AzStorageContainerStoredAccessPolicy.md @@ -17,7 +17,7 @@ Creates a stored access policy for an Azure storage container. New-AzStorageContainerStoredAccessPolicy [-Container] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -163,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 +``` + ### -ServerTimeoutPerRequest Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. diff --git a/src/Storage/Storage.Management/help/New-AzStorageContext.md b/src/Storage/Storage.Management/help/New-AzStorageContext.md index 5c6a9786ec6d..771e75098665 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageContext.md +++ b/src/Storage/Storage.Management/help/New-AzStorageContext.md @@ -16,50 +16,50 @@ Creates an Azure Storage context. ### OAuthAccount (Default) ``` New-AzStorageContext [-StorageAccountName] [-UseConnectedAccount] [-Protocol ] - [-Endpoint ] [-EnableFileBackupRequestIntent] + [-Endpoint ] [-EnableFileBackupRequestIntent] [-ProgressAction ] [] ``` ### AccountNameAndKey ``` New-AzStorageContext [-StorageAccountName] [-StorageAccountKey] [-Protocol ] - [-Endpoint ] [] + [-Endpoint ] [-ProgressAction ] [] ``` ### AccountNameAndKeyEnvironment ``` New-AzStorageContext [-StorageAccountName] [-StorageAccountKey] [-Protocol ] - -Environment [] + -Environment [-ProgressAction ] [] ``` ### AnonymousAccount ``` New-AzStorageContext [-StorageAccountName] [-Anonymous] [-Protocol ] [-Endpoint ] - [] + [-ProgressAction ] [] ``` ### AnonymousAccountEnvironment ``` New-AzStorageContext [-StorageAccountName] [-Anonymous] [-Protocol ] -Environment - [] + [-ProgressAction ] [] ``` ### SasToken ``` New-AzStorageContext [-StorageAccountName] -SasToken [-Protocol ] - [-Endpoint ] [] + [-Endpoint ] [-ProgressAction ] [] ``` ### SasTokenWithAzureEnvironment ``` New-AzStorageContext [-StorageAccountName] -SasToken -Environment - [] + [-ProgressAction ] [] ``` ### OAuthAccountEnvironment ``` New-AzStorageContext [-StorageAccountName] [-UseConnectedAccount] [-Protocol ] - -Environment [-EnableFileBackupRequestIntent] + -Environment [-EnableFileBackupRequestIntent] [-ProgressAction ] [] ``` @@ -67,36 +67,36 @@ New-AzStorageContext [-StorageAccountName] [-UseConnectedAccount] [-Pro ``` New-AzStorageContext [-StorageAccountName] [-StorageAccountKey] -BlobEndpoint [-FileEndpoint ] [-QueueEndpoint ] [-TableEndpoint ] - [] + [-ProgressAction ] [] ``` ### SasTokenServiceEndpoint ``` New-AzStorageContext -SasToken [-BlobEndpoint ] [-FileEndpoint ] - [-QueueEndpoint ] [-TableEndpoint ] [] + [-QueueEndpoint ] [-TableEndpoint ] [-ProgressAction ] [] ``` ### ConnectionString ``` -New-AzStorageContext -ConnectionString [] +New-AzStorageContext -ConnectionString [-ProgressAction ] [] ``` ### LocalDevelopment ``` -New-AzStorageContext [-Local] [] +New-AzStorageContext [-Local] [-ProgressAction ] [] ``` ### AnonymousAccountServiceEndpoint ``` New-AzStorageContext [-Anonymous] [-BlobEndpoint ] [-FileEndpoint ] [-QueueEndpoint ] - [-TableEndpoint ] [] + [-TableEndpoint ] [-ProgressAction ] [] ``` ### OAuthAccountServiceEndpoint ``` New-AzStorageContext [-UseConnectedAccount] [-BlobEndpoint ] [-FileEndpoint ] [-QueueEndpoint ] [-TableEndpoint ] [-EnableFileBackupRequestIntent] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -377,6 +377,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 +``` + ### -Protocol Transfer Protocol (https/http). diff --git a/src/Storage/Storage.Management/help/New-AzStorageDirectory.md b/src/Storage/Storage.Management/help/New-AzStorageDirectory.md index 4940b1cde374..4dbd1320f5fd 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageDirectory.md +++ b/src/Storage/Storage.Management/help/New-AzStorageDirectory.md @@ -17,21 +17,24 @@ Creates a directory. ``` New-AzStorageDirectory [-ShareName] [-Path] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Share ``` New-AzStorageDirectory [-ShareClient] [-Path] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Directory ``` New-AzStorageDirectory [-ShareDirectoryClient] [-Path] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -155,6 +158,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/New-AzStorageEncryptionScope.md b/src/Storage/Storage.Management/help/New-AzStorageEncryptionScope.md index c0245d679178..f40072e4488f 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageEncryptionScope.md +++ b/src/Storage/Storage.Management/help/New-AzStorageEncryptionScope.md @@ -16,7 +16,7 @@ Creates an encryption scope for a Storage account. ``` New-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] -EncryptionScopeName [-StorageEncryption] [-RequireInfrastructureEncryption] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ New-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] ``` New-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] -EncryptionScopeName [-KeyvaultEncryption] -KeyUri [-RequireInfrastructureEncryption] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,14 +32,14 @@ New-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] ``` New-AzStorageEncryptionScope -StorageAccount -EncryptionScopeName [-StorageEncryption] [-RequireInfrastructureEncryption] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectKeyVault ``` New-AzStorageEncryptionScope -StorageAccount -EncryptionScopeName [-KeyvaultEncryption] -KeyUri [-RequireInfrastructureEncryption] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -143,6 +143,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 +``` + ### -RequireInfrastructureEncryption The encryption scope will apply a secondary layer of encryption with platform managed keys for data at rest. diff --git a/src/Storage/Storage.Management/help/New-AzStorageFileSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageFileSASToken.md index a41bdc4f594d..09ec9311d920 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageFileSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageFileSASToken.md @@ -17,28 +17,32 @@ Generates a shared access signature token for a Storage file. ``` New-AzStorageFileSASToken [-ShareName] [-Path] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### NameSasPolicy ``` New-AzStorageFileSASToken [-ShareName] [-Path] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### FileSasPermission ``` New-AzStorageFileSASToken -ShareFileClient [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### FileSasPolicy ``` New-AzStorageFileSASToken -ShareFileClient -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -193,6 +197,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md b/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md index a716b2abc0b8..73c072e9818a 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md +++ b/src/Storage/Storage.Management/help/New-AzStorageLocalUserPermissionScope.md @@ -14,7 +14,7 @@ Creates a permission scope object, which can be used in Set-AzStorageLocalUser. ``` New-AzStorageLocalUserPermissionScope -Permission -Service -ResourceName - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -84,6 +84,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 +``` + ### -ResourceName Specify the name of resource, normally the container name or the file share name, used by the local user. diff --git a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPassword.md b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPassword.md index f47c96874a30..b93ae93a7588 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPassword.md +++ b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPassword.md @@ -15,21 +15,21 @@ Regenerate SSH password of a specified local user in a storage account. ### AccountName (Default) ``` New-AzStorageLocalUserSshPassword [-ResourceGroupName] [-StorageAccountName] - -UserName [-DefaultProfile ] [-WhatIf] + -UserName [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` New-AzStorageLocalUserSshPassword -StorageAccount -UserName - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UserObject ``` New-AzStorageLocalUserSshPassword [-InputObject] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -82,6 +82,21 @@ Accept pipeline input: True (ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md index 9905f3ded0dc..240e97385102 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md +++ b/src/Storage/Storage.Management/help/New-AzStorageLocalUserSshPublicKey.md @@ -14,7 +14,7 @@ Creates a SSH public key object, which can be used in Set-AzStorageLocalUser. ``` New-AzStorageLocalUserSshPublicKey -Key [-Description ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -102,6 +102,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/New-AzStorageObjectReplicationPolicyRule.md b/src/Storage/Storage.Management/help/New-AzStorageObjectReplicationPolicyRule.md index 3063bfa509aa..11ea237284b1 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageObjectReplicationPolicyRule.md +++ b/src/Storage/Storage.Management/help/New-AzStorageObjectReplicationPolicyRule.md @@ -15,7 +15,7 @@ Creates an object replication policy rule. ``` New-AzStorageObjectReplicationPolicyRule -SourceContainer -DestinationContainer [-PrefixMatch ] [-MinCreationTime ] [-RuleId ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -115,6 +115,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 +``` + ### -RuleId Object Replication Rule Id. diff --git a/src/Storage/Storage.Management/help/New-AzStorageQueue.md b/src/Storage/Storage.Management/help/New-AzStorageQueue.md index a730eb316b13..f740f06ea353 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageQueue.md +++ b/src/Storage/Storage.Management/help/New-AzStorageQueue.md @@ -15,7 +15,7 @@ Creates a storage queue. ``` New-AzStorageQueue [-Name] [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -86,6 +86,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/New-AzStorageQueueSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageQueueSASToken.md index 44bbf36fd21a..beac46d3e911 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageQueueSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageQueueSASToken.md @@ -17,14 +17,14 @@ Generates a shared access signature token for an Azure storage queue. ``` New-AzStorageQueueSASToken [-Name] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### SasPermission ``` New-AzStorageQueueSASToken [-Name] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -165,6 +165,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageQueueStoredAccessPolicy.md b/src/Storage/Storage.Management/help/New-AzStorageQueueStoredAccessPolicy.md index 8c2f9e21c856..02cc84d2a4ae 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageQueueStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/New-AzStorageQueueStoredAccessPolicy.md @@ -16,7 +16,7 @@ Creates a stored access policy for an Azure storage queue. ``` New-AzStorageQueueStoredAccessPolicy [-Queue] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -110,6 +110,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 +``` + ### -Queue Specifies the Azure storage queue name. diff --git a/src/Storage/Storage.Management/help/New-AzStorageShare.md b/src/Storage/Storage.Management/help/New-AzStorageShare.md index a76d953ad8b8..4a0a70366ed3 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageShare.md +++ b/src/Storage/Storage.Management/help/New-AzStorageShare.md @@ -16,7 +16,7 @@ Creates a file share. ``` New-AzStorageShare [-Name] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -116,6 +116,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/New-AzStorageShareSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageShareSASToken.md index 71545b42db8c..98ecf1b3f121 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageShareSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageShareSASToken.md @@ -17,14 +17,16 @@ Generate Shared Access Signature token for Azure Storage share. ``` New-AzStorageShareSASToken [-ShareName] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ### SasPermission ``` New-AzStorageShareSASToken [-ShareName] [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] - [-Context ] [-DefaultProfile ] [] + [-Context ] [-DefaultProfile ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -165,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageShareStoredAccessPolicy.md b/src/Storage/Storage.Management/help/New-AzStorageShareStoredAccessPolicy.md index 8249a96c05c6..5fb46a0608f7 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageShareStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/New-AzStorageShareStoredAccessPolicy.md @@ -17,7 +17,8 @@ Creates a stored access policy on a Storage share. New-AzStorageShareStoredAccessPolicy [-ShareName] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -147,6 +148,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/New-AzStorageTable.md b/src/Storage/Storage.Management/help/New-AzStorageTable.md index 51b5d2fcd66a..e77d31d33dea 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageTable.md +++ b/src/Storage/Storage.Management/help/New-AzStorageTable.md @@ -15,7 +15,7 @@ Creates a storage table. ``` New-AzStorageTable [-Name] [-Context ] [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -89,6 +89,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/New-AzStorageTableSASToken.md b/src/Storage/Storage.Management/help/New-AzStorageTableSASToken.md index 7331a7a0d12e..6742475c31ce 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageTableSASToken.md +++ b/src/Storage/Storage.Management/help/New-AzStorageTableSASToken.md @@ -18,7 +18,7 @@ Generates an SAS token for an Azure Storage table. New-AzStorageTableSASToken [-Name] -Policy [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-StartPartitionKey ] [-StartRowKey ] [-EndPartitionKey ] [-EndRowKey ] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -27,7 +27,7 @@ New-AzStorageTableSASToken [-Name] -Policy [-Protocol [-Permission ] [-Protocol ] [-IPAddressOrRange ] [-StartTime ] [-ExpiryTime ] [-FullUri] [-StartPartitionKey ] [-StartRowKey ] [-EndPartitionKey ] [-EndRowKey ] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -216,6 +216,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 +``` + ### -Protocol Specifies the protocol permitted for a request. The acceptable values for this parameter are: diff --git a/src/Storage/Storage.Management/help/New-AzStorageTableStoredAccessPolicy.md b/src/Storage/Storage.Management/help/New-AzStorageTableStoredAccessPolicy.md index b5c93b1631cf..a381fe4a2a46 100644 --- a/src/Storage/Storage.Management/help/New-AzStorageTableStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/New-AzStorageTableStoredAccessPolicy.md @@ -16,7 +16,7 @@ Creates a stored access policy for an Azure storage table. ``` New-AzStorageTableStoredAccessPolicy [-Table] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -110,6 +110,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 +``` + ### -StartTime Specifies the time at which the stored access policy becomes valid. diff --git a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md index 28bedd7585e3..47bb65e28dac 100644 --- a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2AclRecursive.md @@ -15,7 +15,7 @@ Remove ACL recursively on the specified path. ``` Remove-AzDataLakeGen2AclRecursive [-FileSystem] [[-Path] ] [-ContinuationToken ] -Acl [-ContinueOnFailure] [-BatchSize ] [-MaxBatchCount ] [-AsJob] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -306,6 +306,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2Item.md index f5d289b8536e..fb92f6f23f21 100644 --- a/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Remove-AzDataLakeGen2Item.md @@ -15,14 +15,14 @@ Remove a file or directory. ### ReceiveManual (Default) ``` Remove-AzDataLakeGen2Item [-FileSystem] [-Path] [-Force] [-AsJob] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ItemPipeline ``` Remove-AzDataLakeGen2Item -InputObject [-Force] [-AsJob] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -176,6 +176,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainer.md index 998aae8377d3..cdc7fd8494c8 100644 --- a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainer.md @@ -15,21 +15,21 @@ Removes a Storage blob container ### AccountName (Default) ``` Remove-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] -Name - [-Force] [-PassThru] [-DefaultProfile ] [-WhatIf] + [-Force] [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzRmStorageContainer -Name -StorageAccount [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Remove-AzRmStorageContainer -InputObject [-Force] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -138,6 +138,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerImmutabilityPolicy.md index da410599447f..bc93fce3c6fa 100644 --- a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerImmutabilityPolicy.md @@ -16,27 +16,27 @@ Removes ImmutabilityPolicy of a Storage blob container with an unlocked policy ``` Remove-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-StorageAccountName] -ContainerName -Etag [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccount - -Etag [-DefaultProfile ] [-WhatIf] + -Etag [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Remove-AzRmStorageContainerImmutabilityPolicy -Container -Etag - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ImmutabilityPolicyObject ``` Remove-AzRmStorageContainerImmutabilityPolicy [-InputObject] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -155,6 +155,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerLegalHold.md b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerLegalHold.md index 0174d697688e..1997499e5101 100644 --- a/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerLegalHold.md +++ b/src/Storage/Storage.Management/help/Remove-AzRmStorageContainerLegalHold.md @@ -15,21 +15,21 @@ Removes legal hold tags from a Storage blob container ### AccountName (Default) ``` Remove-AzRmStorageContainerLegalHold [-ResourceGroupName] [-StorageAccountName] - -Name -Tag [-DefaultProfile ] + -Name -Tag [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzRmStorageContainerLegalHold -Name -StorageAccount -Tag - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Remove-AzRmStorageContainerLegalHold -Container -Tag - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -107,6 +107,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md index a467239f22b9..8b510ad29770 100644 --- a/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Remove-AzRmStorageShare.md @@ -16,41 +16,41 @@ Removes a Storage file share. ``` Remove-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name [-Force] [-Include ] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountNameSnapshot ``` Remove-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name -SnapshotTime [-Force] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzRmStorageShare -Name -StorageAccount [-Force] [-Include ] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectSnapshot ``` Remove-AzRmStorageShare -Name -StorageAccount -SnapshotTime [-Force] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareResourceId ``` Remove-AzRmStorageShare [-ResourceId] [-Force] [-Include ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareObject ``` Remove-AzRmStorageShare -InputObject [-Force] [-Include ] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -201,6 +201,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageAccount.md b/src/Storage/Storage.Management/help/Remove-AzStorageAccount.md index a2668c97f0c9..54a91ff35e81 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageAccount.md @@ -15,7 +15,7 @@ Removes a Storage account from Azure. ``` Remove-AzStorageAccount [-ResourceGroupName] [-Name] [-Force] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -91,6 +91,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the name of the resource group that contains the Storage account to remove. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageAccountManagementPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageAccountManagementPolicy.md index 728871eaea41..4726927da3b1 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageAccountManagementPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageAccountManagementPolicy.md @@ -15,28 +15,28 @@ Removes the management policy of an Azure Storage account. ### AccountName (Default) ``` Remove-AzStorageAccountManagementPolicy [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzStorageAccountManagementPolicy -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceId ``` Remove-AzStorageAccountManagementPolicy [-StorageAccountResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### PolicyObject ``` Remove-AzStorageAccountManagementPolicy [-InputObject] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -100,6 +100,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageAccountNetworkRule.md b/src/Storage/Storage.Management/help/Remove-AzStorageAccountNetworkRule.md index ba0520c509c7..3fac6c0296f9 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageAccountNetworkRule.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageAccountNetworkRule.md @@ -16,13 +16,13 @@ Remove IpRules or VirtualNetworkRules from the NetWorkRule property of a Storage ``` Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -VirtualNetworkResourceId [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### IpRuleObject ``` Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -IPRule [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -30,27 +30,27 @@ Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] [-Name] -VirtualNetworkRule [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceAccessRuleObject ``` Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -ResourceAccessRule [-AsJob] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### IpRuleString ``` Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -IPAddressOrRange - [-AsJob] [-DefaultProfile ] [-WhatIf] [-Confirm] + [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ResourceAccessRuleString ``` Remove-AzStorageAccountNetworkRule [-ResourceGroupName] [-Name] -TenantId - -ResourceId [-AsJob] [-DefaultProfile ] + -ResourceId [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -178,6 +178,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ResourceAccessRule Storage Account NetworkRule ResourceAccessRules. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageBlob.md b/src/Storage/Storage.Management/help/Remove-AzStorageBlob.md index 913bfdb353d8..18b392937079 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageBlob.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageBlob.md @@ -18,7 +18,7 @@ Removes the specified storage blob. Remove-AzStorageBlob [-Blob] [-Container] [-DeleteSnapshot] [-SnapshotTime ] [-VersionId ] [-Force] [-PassThru] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -27,7 +27,7 @@ Remove-AzStorageBlob [-Blob] [-Container] [-DeleteSnapshot] [- Remove-AzStorageBlob -CloudBlob [-BlobBaseClient ] [-DeleteSnapshot] [-Force] [-PassThru] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerPipeline @@ -35,7 +35,7 @@ Remove-AzStorageBlob -CloudBlob [-BlobBaseClient ] [ Remove-AzStorageBlob -CloudBlobContainer [-Blob] [-DeleteSnapshot] [-SnapshotTime ] [-VersionId ] [-Force] [-PassThru] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -273,6 +273,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 +``` + ### -ServerTimeoutPerRequest Specifies the Azure profile for the cmdlet to read. If not specified, the cmdlet reads from the default profile. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md index d466ea4f7c24..8fbf45826751 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageBlobImmutabilityPolicy.md @@ -16,7 +16,7 @@ Removes ImmutabilityPolicy of a Storage blob. ``` Remove-AzStorageBlobImmutabilityPolicy [-Blob] [-Container] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Remove-AzStorageBlobImmutabilityPolicy [-Blob] [-Container] [- ``` Remove-AzStorageBlobImmutabilityPolicy -BlobBaseClient [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -164,6 +164,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageBlobInventoryPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageBlobInventoryPolicy.md index 15881595382f..048dd3d9c270 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageBlobInventoryPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageBlobInventoryPolicy.md @@ -15,28 +15,28 @@ Removes blob inventory policy from a Storage account. ### AccountName (Default) ``` Remove-AzStorageBlobInventoryPolicy [-ResourceGroupName] [-StorageAccountName] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzStorageBlobInventoryPolicy -StorageAccount [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceId ``` Remove-AzStorageBlobInventoryPolicy [-StorageAccountResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### PolicyObject ``` Remove-AzStorageBlobInventoryPolicy [-InputObject] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -99,6 +99,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageCORSRule.md b/src/Storage/Storage.Management/help/Remove-AzStorageCORSRule.md index 5a29707da24f..42fcfd66de83 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageCORSRule.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageCORSRule.md @@ -16,7 +16,7 @@ Removes CORS for a Storage service. ``` Remove-AzStorageCORSRule [-ServiceType] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -103,6 +103,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageContainer.md b/src/Storage/Storage.Management/help/Remove-AzStorageContainer.md index 15b6e029fd44..0fd71495f64e 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageContainer.md @@ -16,7 +16,7 @@ Removes the specified storage container. ``` Remove-AzStorageContainer [-Name] [-Force] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -147,6 +147,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageContainerStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageContainerStoredAccessPolicy.md index b6d227c4d9aa..1a520b7cbba8 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageContainerStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageContainerStoredAccessPolicy.md @@ -16,7 +16,7 @@ Removes a stored access policy from an Azure storage container. ``` Remove-AzStorageContainerStoredAccessPolicy [-Container] [-Policy] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -147,6 +147,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ServerTimeoutPerRequest Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageDirectory.md b/src/Storage/Storage.Management/help/Remove-AzStorageDirectory.md index 38f45267382a..b9b143b597e5 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageDirectory.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageDirectory.md @@ -17,24 +17,24 @@ Deletes a directory. ``` Remove-AzStorageDirectory [-ShareName] [-Path] [-PassThru] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Share ``` Remove-AzStorageDirectory [-ShareClient] [-Path] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Directory ``` Remove-AzStorageDirectory [-ShareDirectoryClient] [[-Path] ] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -179,6 +179,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageFile.md b/src/Storage/Storage.Management/help/Remove-AzStorageFile.md index a407dc0b4eb7..611cec085bd1 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageFile.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageFile.md @@ -17,32 +17,32 @@ Deletes a file. ``` Remove-AzStorageFile [-ShareName] [-Path] [-PassThru] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Share ``` Remove-AzStorageFile [-ShareClient] [-Path] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Directory ``` Remove-AzStorageFile [-ShareDirectoryClient] [-Path] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### File ``` Remove-AzStorageFile [-ShareFileClient] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -181,6 +181,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageLocalUser.md b/src/Storage/Storage.Management/help/Remove-AzStorageLocalUser.md index 631ab313657f..12a09e6b17fe 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageLocalUser.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageLocalUser.md @@ -15,21 +15,21 @@ Removes a specified local user in a storage account. ### AccountName (Default) ``` Remove-AzStorageLocalUser [-ResourceGroupName] [-StorageAccountName] -UserName - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzStorageLocalUser -StorageAccount -UserName [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UserObject ``` Remove-AzStorageLocalUser [-InputObject] [-PassThru] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -91,6 +91,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageObjectReplicationPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageObjectReplicationPolicy.md index b88ddd37ea54..48f42674bc38 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageObjectReplicationPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageObjectReplicationPolicy.md @@ -15,21 +15,21 @@ Removes the specified object replication policy from a Storage account. ### AccountName (Default) ``` Remove-AzStorageObjectReplicationPolicy [-ResourceGroupName] [-StorageAccountName] - -PolicyId [-PassThru] [-DefaultProfile ] + -PolicyId [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Remove-AzStorageObjectReplicationPolicy -StorageAccount -PolicyId [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### PolicyObject ``` Remove-AzStorageObjectReplicationPolicy -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -107,6 +107,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageQueue.md b/src/Storage/Storage.Management/help/Remove-AzStorageQueue.md index 8f8a60a3bfb2..557ffffe5145 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageQueue.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageQueue.md @@ -15,7 +15,7 @@ Removes a storage queue. ``` Remove-AzStorageQueue [-Name] [-Force] [-PassThru] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -117,6 +117,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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageQueueStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageQueueStoredAccessPolicy.md index 7e9f1dc03d04..ad8e5fba893d 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageQueueStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageQueueStoredAccessPolicy.md @@ -15,7 +15,7 @@ Removes a stored access policy from an Azure storage queue. ``` Remove-AzStorageQueueStoredAccessPolicy [-Queue] [-Policy] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -95,6 +95,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -Queue Specifies the Azure storage queue name. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageShare.md b/src/Storage/Storage.Management/help/Remove-AzStorageShare.md index 4e58b0ea930f..dac6639140e6 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageShare.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageShare.md @@ -17,16 +17,16 @@ Deletes a file share. ``` Remove-AzStorageShare [-Name] [-IncludeAllSnapshot] [-SnapshotTime ] [-Force] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### Share ``` Remove-AzStorageShare [-ShareClient] [-IncludeAllSnapshot] [-Force] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -179,6 +179,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageShareStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageShareStoredAccessPolicy.md index 5929f3d1cb5f..23432c7710cf 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageShareStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageShareStoredAccessPolicy.md @@ -16,8 +16,8 @@ Removes a stored access policy from a Storage share. ``` Remove-AzStorageShareStoredAccessPolicy [-ShareName] [-Policy] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -132,6 +132,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageTable.md b/src/Storage/Storage.Management/help/Remove-AzStorageTable.md index a4a3bc6e05d0..9c73563ad82f 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageTable.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageTable.md @@ -15,7 +15,7 @@ Removes a storage table. ``` Remove-AzStorageTable [-Name] [-Force] [-PassThru] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -117,6 +117,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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Remove-AzStorageTableStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Remove-AzStorageTableStoredAccessPolicy.md index d124c7ebf517..025bed61d747 100644 --- a/src/Storage/Storage.Management/help/Remove-AzStorageTableStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Remove-AzStorageTableStoredAccessPolicy.md @@ -15,7 +15,7 @@ Removes a stored access policy from an Azure storage table. ``` Remove-AzStorageTableStoredAccessPolicy [-Table] [-Policy] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -95,6 +95,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -Table Specifies the Azure table name. diff --git a/src/Storage/Storage.Management/help/Rename-AzStorageDirectory.md b/src/Storage/Storage.Management/help/Rename-AzStorageDirectory.md index fc454332dd30..c1b73155c0f8 100644 --- a/src/Storage/Storage.Management/help/Rename-AzStorageDirectory.md +++ b/src/Storage/Storage.Management/help/Rename-AzStorageDirectory.md @@ -16,22 +16,24 @@ Renames a directory. ``` Rename-AzStorageDirectory [-ShareName] [-SourcePath] [[-DestinationPath] ] [-Permission ] [-DisAllowSourceTrailingDot] [-DisAllowDestTrailingDot] [-Force] [-AsJob] - [-Context ] [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] - [] + [-Context ] [-DefaultProfile ] [-IgnoreReadonly] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareObject ``` Rename-AzStorageDirectory [-ShareClient] [-SourcePath] [[-DestinationPath] ] [-Permission ] [-Force] [-AsJob] [-Context ] - [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-IgnoreReadonly] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DirecotryObject ``` Rename-AzStorageDirectory [-ShareDirectoryClient] [[-DestinationPath] ] [-Permission ] [-Force] [-AsJob] [-Context ] - [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-IgnoreReadonly] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ## DESCRIPTION @@ -210,6 +212,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 +``` + ### -ShareClient ShareClienr indicated the share where the directory would be listed. diff --git a/src/Storage/Storage.Management/help/Rename-AzStorageFile.md b/src/Storage/Storage.Management/help/Rename-AzStorageFile.md index 87edd3aa2c8e..368b66d6b6d7 100644 --- a/src/Storage/Storage.Management/help/Rename-AzStorageFile.md +++ b/src/Storage/Storage.Management/help/Rename-AzStorageFile.md @@ -17,29 +17,31 @@ Renames a file. Rename-AzStorageFile [-ShareName] [-SourcePath] [[-DestinationPath] ] [-ContentType ] [-Permission ] [-DisAllowSourceTrailingDot] [-DisAllowDestTrailingDot] [-Force] [-AsJob] [-Context ] [-DefaultProfile ] [-IgnoreReadonly] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### FileObject ``` Rename-AzStorageFile [-ShareFileClient] [[-DestinationPath] ] [-ContentType ] [-Permission ] [-Force] [-AsJob] [-Context ] - [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-IgnoreReadonly] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### ShareObject ``` Rename-AzStorageFile [-ShareClient] [-SourcePath] [[-DestinationPath] ] [-ContentType ] [-Permission ] [-Force] [-AsJob] [-Context ] - [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-IgnoreReadonly] [-ProgressAction ] [-WhatIf] + [-Confirm] [] ``` ### DirecotryObject ``` Rename-AzStorageFile [-ShareDirectoryClient] [-SourcePath] [[-DestinationPath] ] [-ContentType ] [-Permission ] [-Force] [-AsJob] - [-Context ] [-DefaultProfile ] [-IgnoreReadonly] [-WhatIf] [-Confirm] - [] + [-Context ] [-DefaultProfile ] [-IgnoreReadonly] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -234,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 +``` + ### -ShareClient ShareClient indicated the share where the file would be listed. diff --git a/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md b/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md index 95bdd85aec01..b45bf7380de0 100644 --- a/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md +++ b/src/Storage/Storage.Management/help/Restore-AzDataLakeGen2DeletedItem.md @@ -15,14 +15,14 @@ Restores a deleted file or directory in a filesystem. ### ReceiveManual (Default) ``` Restore-AzDataLakeGen2DeletedItem [-FileSystem] [-Path] [-DeletionId] [-AsJob] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ItemPipeline ``` Restore-AzDataLakeGen2DeletedItem -InputObject [-AsJob] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -185,6 +185,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md index 7d973a2de363..ba8761d37bba 100644 --- a/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Restore-AzRmStorageShare.md @@ -15,21 +15,21 @@ Restores a deleted file share. ### AccountName (Default) ``` Restore-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name - -DeletedShareVersion [-DefaultProfile ] + -DeletedShareVersion [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Restore-AzRmStorageShare -StorageAccount -Name -DeletedShareVersion - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareObject ``` Restore-AzRmStorageShare -InputObject [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -127,6 +127,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md b/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md index 1eae16d4bc7e..cddc5c3c099c 100644 --- a/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md +++ b/src/Storage/Storage.Management/help/Restore-AzStorageBlobRange.md @@ -16,7 +16,7 @@ Restores a Storage account for specific blob ranges. ``` Restore-AzStorageBlobRange [-ResourceGroupName] [-StorageAccountName] -TimeToRestore [-BlobRestoreRange ] [-WaitForComplete] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Restore-AzStorageBlobRange [-ResourceGroupName] [-StorageAccountName] < ``` Restore-AzStorageBlobRange [-ResourceId] -TimeToRestore [-BlobRestoreRange ] [-WaitForComplete] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Restore-AzStorageBlobRange [-ResourceId] -TimeToRestore ``` Restore-AzStorageBlobRange -StorageAccount -TimeToRestore [-BlobRestoreRange ] [-WaitForComplete] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -146,6 +146,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md b/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md index 4fb7993215a7..3cb240b37e76 100644 --- a/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md +++ b/src/Storage/Storage.Management/help/Restore-AzStorageContainer.md @@ -14,7 +14,7 @@ Restores a previously deleted Azure storage blob container. ``` Restore-AzStorageContainer [-Name] [-VersionId] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -113,6 +113,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### -VersionId The version of the previously deleted container. diff --git a/src/Storage/Storage.Management/help/Revoke-AzStorageAccountUserDelegationKeys.md b/src/Storage/Storage.Management/help/Revoke-AzStorageAccountUserDelegationKeys.md index 4647d81c1668..4223b595ab78 100644 --- a/src/Storage/Storage.Management/help/Revoke-AzStorageAccountUserDelegationKeys.md +++ b/src/Storage/Storage.Management/help/Revoke-AzStorageAccountUserDelegationKeys.md @@ -15,21 +15,21 @@ Revoke all User Delegation keys of a Storage account. ### AccountName (Default) ``` Revoke-AzStorageAccountUserDelegationKeys [-ResourceGroupName] [-StorageAccountName] - [-PassThru] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Revoke-AzStorageAccountUserDelegationKeys -InputObject [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceId ``` Revoke-AzStorageAccountUserDelegationKeys [-ResourceId] [-PassThru] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -92,6 +92,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 resource group name containing the storage account resource. diff --git a/src/Storage/Storage.Management/help/Set-AzCurrentStorageAccount.md b/src/Storage/Storage.Management/help/Set-AzCurrentStorageAccount.md index b124c86d0c5c..dfaa1c330c40 100644 --- a/src/Storage/Storage.Management/help/Set-AzCurrentStorageAccount.md +++ b/src/Storage/Storage.Management/help/Set-AzCurrentStorageAccount.md @@ -16,13 +16,13 @@ Modifies the current Storage account of the specified subscription. ### UsingResourceGroupAndNameParameterSet (Default) ``` Set-AzCurrentStorageAccount -ResourceGroupName -Name - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ### UsingStorageContext ``` Set-AzCurrentStorageAccount -Context [-DefaultProfile ] - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -86,6 +86,21 @@ Accept pipeline input: True (ByPropertyName) 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 Specifies the resource group that contains the Storage account to modify. diff --git a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md index d9d47f322b58..c84abfab8b75 100644 --- a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2AclRecursive.md @@ -15,7 +15,7 @@ Set ACL recursively on the specified path. ``` Set-AzDataLakeGen2AclRecursive [-FileSystem] [[-Path] ] [-ContinuationToken ] -Acl [-ContinueOnFailure] [-BatchSize ] [-MaxBatchCount ] [-AsJob] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -303,6 +303,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md index 1a42d352dc02..1fd48d37d793 100644 --- a/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md +++ b/src/Storage/Storage.Management/help/Set-AzDataLakeGen2ItemAclObject.md @@ -15,7 +15,7 @@ Creates/Updates a DataLake gen2 item ACL object, which can be used in Update-AzD ``` Set-AzDataLakeGen2ItemAclObject [-EntityId ] [-DefaultScope] -Permission [-InputObject ] -AccessControlType - [] + [-ProgressAction ] [] ``` ## DESCRIPTION @@ -157,6 +157,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 +``` + ### 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). diff --git a/src/Storage/Storage.Management/help/Set-AzRmStorageContainerImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Set-AzRmStorageContainerImmutabilityPolicy.md index ab7a23a69f9e..9a9c7e0acd05 100644 --- a/src/Storage/Storage.Management/help/Set-AzRmStorageContainerImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzRmStorageContainerImmutabilityPolicy.md @@ -17,14 +17,14 @@ Creates or updates ImmutabilityPolicy of a Storage blob containers Set-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-StorageAccountName] -ContainerName [-ImmutabilityPeriod ] [-AllowProtectedAppendWriteAll ] [-AllowProtectedAppendWrite ] [-Etag ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ExtendAccountName ``` Set-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-StorageAccountName] -ContainerName -ImmutabilityPeriod -Etag [-ExtendPolicy] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Set-AzRmStorageContainerImmutabilityPolicy [-ResourceGroupName] [-Stora ``` Set-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccount [-ImmutabilityPeriod ] [-AllowProtectedAppendWriteAll ] [-AllowProtectedAppendWrite ] - [-Etag ] [-DefaultProfile ] [-WhatIf] + [-Etag ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -40,21 +40,21 @@ Set-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccou ``` Set-AzRmStorageContainerImmutabilityPolicy -ContainerName -StorageAccount -ImmutabilityPeriod -Etag [-ExtendPolicy] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Set-AzRmStorageContainerImmutabilityPolicy -Container [-ImmutabilityPeriod ] [-AllowProtectedAppendWriteAll ] [-AllowProtectedAppendWrite ] [-Etag ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ExtendContainerObject ``` Set-AzRmStorageContainerImmutabilityPolicy -Container -ImmutabilityPeriod -Etag - [-ExtendPolicy] [-DefaultProfile ] [-WhatIf] + [-ExtendPolicy] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -62,14 +62,14 @@ Set-AzRmStorageContainerImmutabilityPolicy -Container -Immutabilit ``` Set-AzRmStorageContainerImmutabilityPolicy [-InputObject] [-ImmutabilityPeriod ] [-AllowProtectedAppendWriteAll ] [-AllowProtectedAppendWrite ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ExtendImmutabilityPolicyObject ``` Set-AzRmStorageContainerImmutabilityPolicy [-InputObject] -ImmutabilityPeriod - [-ExtendPolicy] [-DefaultProfile ] [-WhatIf] + [-ExtendPolicy] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -278,6 +278,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md index 1f8af7a7eb39..06c6e9f78fcd 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageAccount.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageAccount.md @@ -27,7 +27,7 @@ Set-AzStorageAccount [-ResourceGroupName] [-Name] [-Force] [-S [-DefaultSharePermission ] [-PublicNetworkAccess ] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-EnableSftp ] [-EnableLocalUser ] [-AllowedCopyScope ] [-AsJob] [-DefaultProfile ] [-RoutingChoice ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### KeyvaultEncryption @@ -45,7 +45,7 @@ Set-AzStorageAccount [-ResourceGroupName] [-Name] [-Force] [-S [-DefaultSharePermission ] [-PublicNetworkAccess ] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-EnableSftp ] [-EnableLocalUser ] [-AllowedCopyScope ] [-AsJob] [-DefaultProfile ] [-RoutingChoice ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AzureActiveDirectoryKerberosForFile @@ -62,7 +62,7 @@ Set-AzStorageAccount [-ResourceGroupName] [-Name] [-Force] [-S [-AllowCrossTenantReplication ] [-DefaultSharePermission ] [-PublicNetworkAccess ] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-EnableSftp ] [-EnableLocalUser ] [-AllowedCopyScope ] [-AsJob] [-DefaultProfile ] - [-RoutingChoice ] [-WhatIf] [-Confirm] [] + [-RoutingChoice ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ActiveDirectoryDomainServicesForFile @@ -82,7 +82,7 @@ Set-AzStorageAccount [-ResourceGroupName] [-Name] [-Force] [-S [-AllowCrossTenantReplication ] [-DefaultSharePermission ] [-PublicNetworkAccess ] [-ImmutabilityPeriod ] [-ImmutabilityPolicyState ] [-EnableSftp ] [-EnableLocalUser ] [-AllowedCopyScope ] [-AsJob] [-DefaultProfile ] - [-RoutingChoice ] [-WhatIf] [-Confirm] [] + [-RoutingChoice ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -460,7 +460,7 @@ If the Storage account has Kind as Storage, do not specify the *AccessTier* para Type: System.String Parameter Sets: (All) Aliases: -Accepted values: Hot, Cool +Accepted values: Hot, Cool, Cold Required: False Position: Named @@ -1013,7 +1013,7 @@ The minimum TLS version to be permitted on requests to storage. Type: System.String Parameter Sets: (All) Aliases: -Accepted values: TLS1_0, TLS1_1, TLS1_2 +Accepted values: TLS1_0, TLS1_1, TLS1_2, TLS1_3 Required: False Position: Named @@ -1052,6 +1052,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 Storage Account.Possible values include: 'Enabled', 'Disabled'. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md index 4becc2d40038..b4f048580fec 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageAccountManagementPolicy.md @@ -16,41 +16,41 @@ Creates or modifies the management policy of an Azure Storage account. ``` Set-AzStorageAccountManagementPolicy [-ResourceGroupName] [-StorageAccountName] -Rule [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountNamePolicyObject ``` Set-AzStorageAccountManagementPolicy [-ResourceGroupName] [-StorageAccountName] - -Policy [-DefaultProfile ] + -Policy [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectPolicyRule ``` Set-AzStorageAccountManagementPolicy -StorageAccount -Rule - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectPolicyObject ``` Set-AzStorageAccountManagementPolicy -StorageAccount -Policy - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceIdPolicyRule ``` Set-AzStorageAccountManagementPolicy [-StorageAccountResourceId] -Rule - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceIdPolicyObject ``` Set-AzStorageAccountManagementPolicy [-StorageAccountResourceId] -Policy - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -1257,3 +1257,167 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS + + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Policy +Management Policy Object to Set + +```yaml +Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicy +Parameter Sets: AccountNamePolicyObject, AccountObjectPolicyObject, AccountResourceIdPolicyObject +Aliases: ManagementPolicy + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +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 +Resource Group Name. + +```yaml +Type: System.String +Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Rule +The Management Policy rules. Get the object with New-AzStorageAccountManagementPolicyRule cmdlet. + +```yaml +Type: Microsoft.Azure.Commands.Management.Storage.Models.PSManagementPolicyRule[] +Parameter Sets: AccountNamePolicyRule, AccountObjectPolicyRule, AccountResourceIdPolicyRule +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -StorageAccount +Storage account object + +```yaml +Type: Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount +Parameter Sets: AccountObjectPolicyRule, AccountObjectPolicyObject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -StorageAccountName +Storage Account Name. + +```yaml +Type: System.String +Parameter Sets: AccountNamePolicyRule, AccountNamePolicyObject +Aliases: AccountName + +Required: True +Position: 1 +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -StorageAccountResourceId +Storage Account Resource Id. + +```yaml +Type: System.String +Parameter Sets: AccountResourceIdPolicyRule, AccountResourceIdPolicyObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +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 + +## OUTPUTS + +## NOTES + +## RELATED LINKS diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobContent.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobContent.md index 24658ee9c24a..8a9ff11de0ed 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobContent.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobContent.md @@ -20,7 +20,7 @@ Set-AzStorageBlobContent [-File] [-Container] [-Blob ] [-PremiumPageBlobTier ] [-StandardBlobTier ] [-EncryptionScope ] [-Force] [-AsJob] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerPipeline @@ -30,7 +30,7 @@ Set-AzStorageBlobContent [-File] [-Blob ] -CloudBlobContainer < [-PremiumPageBlobTier ] [-StandardBlobTier ] [-EncryptionScope ] [-Force] [-AsJob] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobPipeline @@ -39,7 +39,7 @@ Set-AzStorageBlobContent [-File] -CloudBlob [-BlobType ] [-Tag ] [-PremiumPageBlobTier ] [-StandardBlobTier ] [-EncryptionScope ] [-Force] [-AsJob] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -382,6 +382,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 +``` + ### -Properties Specifies properties for the uploaded blob. The supported properties are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md index aef6b6866bd7..aca2e5e11a1f 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobImmutabilityPolicy.md @@ -17,7 +17,7 @@ Creates or updates ImmutabilityPolicy of a Storage blob. Set-AzStorageBlobImmutabilityPolicy [-Blob] [-Container] -ExpiresOn [-PolicyMode ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Set-AzStorageBlobImmutabilityPolicy [-Blob] [-Container] -Expi Set-AzStorageBlobImmutabilityPolicy -BlobBaseClient -ExpiresOn [-PolicyMode ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -200,6 +200,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md index 2bb53d6871e6..9e3540a47f6b 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobInventoryPolicy.md @@ -16,41 +16,41 @@ Creates or updates blob inventory policy in a Storage account. ``` Set-AzStorageBlobInventoryPolicy [-ResourceGroupName] [-StorageAccountName] -Rule [-Disabled] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountNamePolicyObject ``` Set-AzStorageBlobInventoryPolicy [-ResourceGroupName] [-StorageAccountName] -Policy [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectPolicyRule ``` Set-AzStorageBlobInventoryPolicy -StorageAccount -Rule - [-Disabled] [-DefaultProfile ] [-WhatIf] + [-Disabled] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectPolicyObject ``` Set-AzStorageBlobInventoryPolicy -StorageAccount -Policy - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceIdPolicyRule ``` Set-AzStorageBlobInventoryPolicy [-StorageAccountResourceId] -Rule - [-Disabled] [-DefaultProfile ] [-WhatIf] + [-Disabled] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountResourceIdPolicyObject ``` Set-AzStorageBlobInventoryPolicy [-StorageAccountResourceId] -Policy - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -239,6 +239,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md index 1047fcddc368..9e1b07f8105b 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobLegalHold.md @@ -16,7 +16,7 @@ Enables or disables legal hold on a Storage blob. ``` Set-AzStorageBlobLegalHold [-Blob] [-Container] [-EnableLegalHold] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Set-AzStorageBlobLegalHold [-Blob] [-Container] [-EnableLegalH ``` Set-AzStorageBlobLegalHold -BlobBaseClient [-EnableLegalHold] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Set-AzStorageBlobLegalHold -BlobBaseClient [-EnableLegalHold] [ ``` Set-AzStorageBlobLegalHold -BlobBaseClient [-DisableLegalHold] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -40,7 +40,7 @@ Set-AzStorageBlobLegalHold -BlobBaseClient [-DisableLegalHold] ``` Set-AzStorageBlobLegalHold [-Blob] [-Container] [-DisableLegalHold] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -232,6 +232,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageBlobTag.md b/src/Storage/Storage.Management/help/Set-AzStorageBlobTag.md index 74ea4b677649..f53437d8fc23 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageBlobTag.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageBlobTag.md @@ -16,7 +16,7 @@ Set blob tags of a specific blob. ``` Set-AzStorageBlobTag [-Blob] [-Container] -Tag [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Set-AzStorageBlobTag [-Blob] [-Container] -Tag [-T ``` Set-AzStorageBlobTag -BlobBaseClient -Tag [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -33,7 +33,7 @@ Set-AzStorageBlobTag -BlobBaseClient -Tag [-TagCond Set-AzStorageBlobTag -CloudBlobContainer [-Blob] -Tag [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -193,6 +193,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageCORSRule.md b/src/Storage/Storage.Management/help/Set-AzStorageCORSRule.md index 7510170a60d6..6191c92f5b8d 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageCORSRule.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageCORSRule.md @@ -16,7 +16,7 @@ Sets the CORS rules for a type of Storage service. ``` Set-AzStorageCORSRule [-ServiceType] -CorsRules [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -164,6 +164,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageContainerAcl.md b/src/Storage/Storage.Management/help/Set-AzStorageContainerAcl.md index 382526a08fb4..1fec1a8eee98 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageContainerAcl.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageContainerAcl.md @@ -16,7 +16,7 @@ Sets the public access permission to a storage container. ``` Set-AzStorageContainerAcl [-Name] [-Permission] [-PassThru] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [] ``` @@ -167,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageContainerStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageContainerStoredAccessPolicy.md index f39fb479a218..92305f333eec 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageContainerStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageContainerStoredAccessPolicy.md @@ -17,7 +17,7 @@ Sets a stored access policy for an Azure storage container. Set-AzStorageContainerStoredAccessPolicy [-Container] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-NoStartTime] [-NoExpiryTime] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -193,6 +193,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 +``` + ### -ServerTimeoutPerRequest Specifies the client-side time-out interval, in seconds, for one service request. If the previous call fails in the specified interval, this cmdlet retries the request. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md b/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md index 13a0383fa9d2..2fe8ad2731e2 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageFileContent.md @@ -18,7 +18,7 @@ Uploads the contents of a file. Set-AzStorageFileContent [-ShareName] [-Source] [[-Path] ] [-PassThru] [-Force] [-AsJob] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ### Share @@ -26,7 +26,7 @@ Set-AzStorageFileContent [-ShareName] [-Source] [[-Path] [-Source] [[-Path] ] [-PassThru] [-Force] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ### Directory @@ -34,7 +34,7 @@ Set-AzStorageFileContent [-ShareClient] [-Source] [[-Path Set-AzStorageFileContent [-ShareDirectoryClient] [-Source] [[-Path] ] [-PassThru] [-Force] [-AsJob] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [-PreserveSMBAttribute] [] ``` ## DESCRIPTION @@ -240,6 +240,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md b/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md index 26dfc61a9f47..ec1032ea0181 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageLocalUser.md @@ -17,7 +17,7 @@ Creates or updates a specified local user in a storage account. Set-AzStorageLocalUser [-ResourceGroupName] [-StorageAccountName] -UserName [-HomeDirectory ] [-SshAuthorizedKey ] [-PermissionScope ] [-HasSharedKey ] [-HasSshKey ] [-HasSshPassword ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -26,7 +26,7 @@ Set-AzStorageLocalUser [-ResourceGroupName] [-StorageAccountName] -UserName [-HomeDirectory ] [-SshAuthorizedKey ] [-PermissionScope ] [-HasSharedKey ] [-HasSshKey ] [-HasSshPassword ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -200,6 +200,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md index 010ccab271a5..5cd98d8c67a1 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageObjectReplicationPolicy.md @@ -17,21 +17,21 @@ Creates or updates the specified object replication policy in a Storage account. Set-AzStorageObjectReplicationPolicy [-ResourceGroupName] [-StorageAccountName] [-PolicyId ] -SourceAccount [-DestinationAccount ] -Rule [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### PolicyObject ``` Set-AzStorageObjectReplicationPolicy [-ResourceGroupName] [-StorageAccountName] -InputObject [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Set-AzStorageObjectReplicationPolicy -StorageAccount [-PolicyId ] -SourceAccount [-DestinationAccount ] -Rule - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -134,6 +134,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageQueueStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageQueueStoredAccessPolicy.md index daa77688db0d..6090d4dad6c3 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageQueueStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageQueueStoredAccessPolicy.md @@ -16,7 +16,7 @@ Sets a stored access policy for an Azure storage queue. ``` Set-AzStorageQueueStoredAccessPolicy [-Queue] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-NoStartTime] [-NoExpiryTime] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -141,6 +141,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 +``` + ### -Queue Specifies the Azure storage queue name. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageServiceLoggingProperty.md b/src/Storage/Storage.Management/help/Set-AzStorageServiceLoggingProperty.md index 850e7aa6b30a..c3c6723fac61 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageServiceLoggingProperty.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageServiceLoggingProperty.md @@ -16,7 +16,7 @@ Modifies logging for Azure Storage services. ``` Set-AzStorageServiceLoggingProperty [-ServiceType] [-Version ] [-RetentionDays ] [-LoggingOperations ] [-PassThru] [-Context ] - [-DefaultProfile ] [] + [-DefaultProfile ] [-ProgressAction ] [] ``` ## DESCRIPTION @@ -105,6 +105,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 +``` + ### -RetentionDays Specifies the number of days that the Azure Storage service retains logged information. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageServiceMetricsProperty.md b/src/Storage/Storage.Management/help/Set-AzStorageServiceMetricsProperty.md index d5ded9b7ae19..6f8e064bd800 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageServiceMetricsProperty.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageServiceMetricsProperty.md @@ -16,7 +16,7 @@ Modifies metrics properties for the Azure Storage service. ``` Set-AzStorageServiceMetricsProperty [-ServiceType] [-MetricsType] [-Version ] [-RetentionDays ] [-MetricsLevel ] [-PassThru] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [] ``` @@ -121,6 +121,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 +``` + ### -RetentionDays Specifies the number of days that the Azure Storage service retains metrics information. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md b/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md index 96c71f8a5bba..17b588857a66 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageShareQuota.md @@ -17,14 +17,16 @@ Sets the storage capacity for a share. ``` Set-AzStorageShareQuota [-ShareName] [-Quota] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ### Share ``` Set-AzStorageShareQuota [-ShareClient] [-Quota] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [] ``` ## DESCRIPTION @@ -108,6 +110,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 +``` + ### -Quota Specifies the quota value in gigabytes (GB). See the quota limitation in https://learn.microsoft.com/azure/azure-subscription-service-limits#azure-files-limits. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageShareStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageShareStoredAccessPolicy.md index 3f3f747e0d29..bbaeaca8850a 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageShareStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageShareStoredAccessPolicy.md @@ -17,8 +17,8 @@ Updates a stored access policy on a Storage share. Set-AzStorageShareStoredAccessPolicy [-ShareName] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-NoStartTime] [-NoExpiryTime] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -178,6 +178,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Set-AzStorageTableStoredAccessPolicy.md b/src/Storage/Storage.Management/help/Set-AzStorageTableStoredAccessPolicy.md index e29b7ef07857..0e1f6f51b223 100644 --- a/src/Storage/Storage.Management/help/Set-AzStorageTableStoredAccessPolicy.md +++ b/src/Storage/Storage.Management/help/Set-AzStorageTableStoredAccessPolicy.md @@ -16,7 +16,7 @@ Sets the stored access policy for an Azure storage table. ``` Set-AzStorageTableStoredAccessPolicy [-Table] [-Policy] [-Permission ] [-StartTime ] [-ExpiryTime ] [-NoStartTime] [-NoExpiryTime] [-Context ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -141,6 +141,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 +``` + ### -StartTime Specifies the time at which the stored access policy becomes valid. diff --git a/src/Storage/Storage.Management/help/Start-AzStorageAccountMigration.md b/src/Storage/Storage.Management/help/Start-AzStorageAccountMigration.md index 04680fe7d044..617c304217f9 100644 --- a/src/Storage/Storage.Management/help/Start-AzStorageAccountMigration.md +++ b/src/Storage/Storage.Management/help/Start-AzStorageAccountMigration.md @@ -18,28 +18,28 @@ Zone-redundant storage (ZRS) replicates your storage account synchronously acros ``` Start-AzStorageAccountMigration -AccountName -ResourceGroupName [-SubscriptionId ] -TargetSku [-Name ] [-Type ] [-DefaultProfile ] [-AsJob] [-NoWait] - [-PassThru] [-WhatIf] [-Confirm] [] + [-PassThru] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### CustomerViaJsonString +### CustomerViaJsonFilePath ``` Start-AzStorageAccountMigration -AccountName -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` -### CustomerViaJsonFilePath +### CustomerViaJsonString ``` Start-AzStorageAccountMigration -AccountName -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### CustomerViaIdentityExpanded ``` Start-AzStorageAccountMigration -InputObject -TargetSku [-Name ] [-Type ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -91,7 +91,7 @@ Storage account names must be between 3 and 24 characters in length and use numb ```yaml Type: System.String -Parameter Sets: CustomerExpanded, CustomerViaJsonString, CustomerViaJsonFilePath +Parameter Sets: CustomerExpanded, CustomerViaJsonFilePath, CustomerViaJsonString Aliases: Required: True @@ -223,13 +223,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 within the user's subscription. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: CustomerExpanded, CustomerViaJsonString, CustomerViaJsonFilePath +Parameter Sets: CustomerExpanded, CustomerViaJsonFilePath, CustomerViaJsonString Aliases: Required: True @@ -244,7 +259,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: CustomerExpanded, CustomerViaJsonString, CustomerViaJsonFilePath +Parameter Sets: CustomerExpanded, CustomerViaJsonFilePath, CustomerViaJsonString Aliases: Required: False diff --git a/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md b/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md index 0d18b3787a8e..7957e3432441 100644 --- a/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md +++ b/src/Storage/Storage.Management/help/Start-AzStorageBlobCopy.md @@ -20,7 +20,7 @@ Start-AzStorageBlobCopy [-SrcBlob] -SrcContainer -DestContaine [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-TagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -31,7 +31,7 @@ Start-AzStorageBlobCopy -CloudBlob [-BlobBaseClient [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-TagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -42,7 +42,7 @@ Start-AzStorageBlobCopy -CloudBlob [-BlobBaseClient [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-TagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -53,7 +53,7 @@ Start-AzStorageBlobCopy -CloudBlobContainer [-SrcBlob] ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-TagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -63,7 +63,7 @@ Start-AzStorageBlobCopy -SrcShareName -SrcFilePath -DestContai [-DestBlob ] [-StandardBlobTier ] [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -73,7 +73,7 @@ Start-AzStorageBlobCopy -SrcShare -SrcFilePath -DestCo [-DestBlob ] [-StandardBlobTier ] [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -83,7 +83,7 @@ Start-AzStorageBlobCopy -SrcDir -SrcFilePath -Dest [-DestBlob ] [-StandardBlobTier ] [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -93,7 +93,7 @@ Start-AzStorageBlobCopy -SrcFile -DestContainer [-DestBlob [-StandardBlobTier ] [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -103,7 +103,7 @@ Start-AzStorageBlobCopy -SrcFile -DestCloudBlob [-Standa [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UriPipeline @@ -112,7 +112,7 @@ Start-AzStorageBlobCopy -AbsoluteUri -DestContainer -DestBlob [-StandardBlobTier ] [-RehydratePriority ] [-Tag ] [-Context ] [-DestContext ] [-DestTagCondition ] [-TagCondition ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -467,6 +467,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 +``` + ### -RehydratePriority Block Blob RehydratePriority. Indicates the priority with which to rehydrate an archived blob. Valid values are High/Standard. diff --git a/src/Storage/Storage.Management/help/Start-AzStorageBlobIncrementalCopy.md b/src/Storage/Storage.Management/help/Start-AzStorageBlobIncrementalCopy.md index 96e005203baf..dd2a3b0470ad 100644 --- a/src/Storage/Storage.Management/help/Start-AzStorageBlobIncrementalCopy.md +++ b/src/Storage/Storage.Management/help/Start-AzStorageBlobIncrementalCopy.md @@ -18,7 +18,7 @@ Start-AzStorageBlobIncrementalCopy -CloudBlobContainer -Src -SrcBlobSnapshotTime -DestContainer [-DestBlob ] [-Context ] [-DestContext ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobInstance @@ -26,7 +26,7 @@ Start-AzStorageBlobIncrementalCopy -CloudBlobContainer -Src Start-AzStorageBlobIncrementalCopy -CloudBlob -DestContainer [-DestBlob ] [-Context ] [-DestContext ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobInstanceToBlobInstance @@ -34,7 +34,7 @@ Start-AzStorageBlobIncrementalCopy -CloudBlob -DestContainer -DestCloudBlob [-Context ] [-DestContext ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerName @@ -43,7 +43,7 @@ Start-AzStorageBlobIncrementalCopy -SrcBlob -SrcContainer -SrcBlobSnapshotTime -DestContainer [-DestBlob ] [-Context ] [-DestContext ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UriPipeline @@ -51,7 +51,7 @@ Start-AzStorageBlobIncrementalCopy -SrcBlob -SrcContainer Start-AzStorageBlobIncrementalCopy -AbsoluteUri -DestContainer -DestBlob [-Context ] [-DestContext ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -281,6 +281,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 +``` + ### -ServerTimeoutPerRequest The server time out for each request in seconds. diff --git a/src/Storage/Storage.Management/help/Start-AzStorageFileCopy.md b/src/Storage/Storage.Management/help/Start-AzStorageFileCopy.md index 905b79209343..89ebc305f127 100644 --- a/src/Storage/Storage.Management/help/Start-AzStorageFileCopy.md +++ b/src/Storage/Storage.Management/help/Start-AzStorageFileCopy.md @@ -18,8 +18,8 @@ Starts to copy a source file. Start-AzStorageFileCopy -SrcBlobName -SrcContainerName -DestShareName -DestFilePath [-Context ] [-DestContext ] [-DisAllowDestTrailingDot] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ### ContainerInstance @@ -27,7 +27,7 @@ Start-AzStorageFileCopy -SrcBlobName -SrcContainerName -DestSh Start-AzStorageFileCopy -SrcBlobName -SrcContainer -DestShareName -DestFilePath [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobInstanceFilePath @@ -35,7 +35,7 @@ Start-AzStorageFileCopy -SrcBlobName -SrcContainer Start-AzStorageFileCopy -SrcBlob -DestShareName -DestFilePath [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobInstanceFileInstance @@ -43,7 +43,7 @@ Start-AzStorageFileCopy -SrcBlob -DestShareName -DestFilePa Start-AzStorageFileCopy -SrcBlob [-DestShareFileClient ] [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareName @@ -52,7 +52,7 @@ Start-AzStorageFileCopy -SrcFilePath -SrcShareName -DestShareN -DestFilePath [-Context ] [-DestContext ] [-DisAllowSourceTrailingDot] [-DisAllowDestTrailingDot] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareInstance @@ -60,7 +60,7 @@ Start-AzStorageFileCopy -SrcFilePath -SrcShareName -DestShareN Start-AzStorageFileCopy -SrcFilePath -SrcShare -DestShareName -DestFilePath [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### FileInstanceToFilePath @@ -68,7 +68,7 @@ Start-AzStorageFileCopy -SrcFilePath -SrcShare -DestShare Start-AzStorageFileCopy -SrcFile -DestShareName -DestFilePath [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### FileInstanceToFileInstance @@ -76,7 +76,7 @@ Start-AzStorageFileCopy -SrcFile -DestShareName -Dest Start-AzStorageFileCopy -SrcFile [-DestShareFileClient ] [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UriToFilePath @@ -84,7 +84,7 @@ Start-AzStorageFileCopy -SrcFile [-DestShareFileClient -DestShareName -DestFilePath [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### UriToFileInstance @@ -92,7 +92,7 @@ Start-AzStorageFileCopy -AbsoluteUri -DestShareName -DestFileP Start-AzStorageFileCopy -AbsoluteUri [-DestShareFileClient ] [-DestContext ] [-Force] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -308,6 +308,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Stop-AzStorageAccountHierarchicalNamespaceUpgrade.md b/src/Storage/Storage.Management/help/Stop-AzStorageAccountHierarchicalNamespaceUpgrade.md index 5ba6ca71da3e..f451091437dc 100644 --- a/src/Storage/Storage.Management/help/Stop-AzStorageAccountHierarchicalNamespaceUpgrade.md +++ b/src/Storage/Storage.Management/help/Stop-AzStorageAccountHierarchicalNamespaceUpgrade.md @@ -15,14 +15,14 @@ Aborts an ongoing HierarchicalNamespace upgrade task on a storage account. ### AccountName (Default) ``` Stop-AzStorageAccountHierarchicalNamespaceUpgrade [-ResourceGroupName] [-Name] [-Force] - [-PassThru] [-AsJob] [-DefaultProfile ] [-WhatIf] + [-PassThru] [-AsJob] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Stop-AzStorageAccountHierarchicalNamespaceUpgrade -InputObject [-Force] [-PassThru] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -135,6 +135,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Stop-AzStorageBlobCopy.md b/src/Storage/Storage.Management/help/Stop-AzStorageBlobCopy.md index 7d8b130c437a..9c8e4a41c579 100644 --- a/src/Storage/Storage.Management/help/Stop-AzStorageBlobCopy.md +++ b/src/Storage/Storage.Management/help/Stop-AzStorageBlobCopy.md @@ -18,14 +18,14 @@ Stops a copy operation. Stop-AzStorageBlobCopy [-Blob] [-Container] [-Force] [-CopyId ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### BlobPipeline ``` Stop-AzStorageBlobCopy -CloudBlob [-Force] [-CopyId ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -34,7 +34,7 @@ Stop-AzStorageBlobCopy -CloudBlob [-Force] [-CopyId ] [-TagC Stop-AzStorageBlobCopy -CloudBlobContainer [-Blob] [-Force] [-CopyId ] [-TagCondition ] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -224,6 +224,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 +``` + ### -ServerTimeoutPerRequest Specifies the service side time-out interval, in seconds, for a request. If the specified interval elapses before the service processes the request, the storage service returns an error. diff --git a/src/Storage/Storage.Management/help/Stop-AzStorageFileCopy.md b/src/Storage/Storage.Management/help/Stop-AzStorageFileCopy.md index 171a2b8b6844..620259c3fef1 100644 --- a/src/Storage/Storage.Management/help/Stop-AzStorageFileCopy.md +++ b/src/Storage/Storage.Management/help/Stop-AzStorageFileCopy.md @@ -18,15 +18,15 @@ Stops a copy operation to the specified destination file. Stop-AzStorageFileCopy [-ShareName] [-FilePath] [-CopyId ] [-Force] [-DisAllowTrailingDot] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] [-DefaultProfile ] [-ConcurrentTaskCount ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### File ``` Stop-AzStorageFileCopy [-ShareFileClient] [-CopyId ] [-Force] [-Context ] [-ServerTimeoutPerRequest ] [-ClientTimeoutPerRequest ] - [-DefaultProfile ] [-ConcurrentTaskCount ] [-WhatIf] [-Confirm] - [] + [-DefaultProfile ] [-ConcurrentTaskCount ] [-ProgressAction ] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -170,6 +170,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 +``` + ### -ServerTimeoutPerRequest Specifies the length of the time-out period for the server part of a request. diff --git a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md index ed2e5c84fc52..6ff4c265ccc7 100644 --- a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md +++ b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2AclRecursive.md @@ -15,7 +15,7 @@ Update ACL recursively on the specified path. ``` Update-AzDataLakeGen2AclRecursive [-FileSystem] [[-Path] ] [-ContinuationToken ] -Acl [-ContinueOnFailure] [-BatchSize ] [-MaxBatchCount ] [-AsJob] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -312,6 +312,21 @@ Accept pipeline input: True (ByValue) 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 +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. diff --git a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md index a8c317872c4b..9b8803afbb2a 100644 --- a/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md +++ b/src/Storage/Storage.Management/help/Update-AzDataLakeGen2Item.md @@ -16,7 +16,7 @@ Update a file or directory on properties, metadata, permission, ACL, and owner. ``` Update-AzDataLakeGen2Item [-FileSystem] [-Path ] [-Permission ] [-Owner ] [-Group ] [-Property ] [-Metadata ] [-Acl ] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzDataLakeGen2Item [-FileSystem] [-Path ] [-Permission < ``` Update-AzDataLakeGen2Item -InputObject [-Permission ] [-Owner ] [-Group ] [-Property ] [-Metadata ] [-Acl ] - [-Context ] [-DefaultProfile ] + [-Context ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -312,6 +312,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 +``` + ### -Property Specifies properties for the directory or file. The supported properties for file are: CacheControl, ContentDisposition, ContentEncoding, ContentLanguage, ContentMD5, ContentType. diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md b/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md index d24ab7dfb483..91d1b0d3a262 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageContainer.md @@ -16,7 +16,7 @@ Modifies a Storage blob container ``` Update-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] -Name [-PublicAccess ] [-Metadata ] [-RootSquash ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,13 +24,13 @@ Update-AzRmStorageContainer [-ResourceGroupName] [-StorageAccountName] ``` Update-AzRmStorageContainer -Name -StorageAccount [-PublicAccess ] [-Metadata ] [-RootSquash ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ContainerObject ``` Update-AzRmStorageContainer -InputObject [-PublicAccess ] [-Metadata ] - [-RootSquash ] [-DefaultProfile ] + [-RootSquash ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -139,6 +139,21 @@ Accept pipeline input: True (ByPropertyName, ByValue) 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 +``` + ### -PublicAccess Container PublicAccess diff --git a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md index 052452667dcb..2518b8f7b726 100644 --- a/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md +++ b/src/Storage/Storage.Management/help/Update-AzRmStorageShare.md @@ -16,7 +16,7 @@ Modifies a Storage file share. ``` Update-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -Name [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-RootSquash ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzRmStorageShare [-ResourceGroupName] [-StorageAccountName] -StorageAccount [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-RootSquash ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,14 +32,14 @@ Update-AzRmStorageShare -Name -StorageAccount [-Quot ``` Update-AzRmStorageShare [-ResourceId] [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-RootSquash ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### ShareObject ``` Update-AzRmStorageShare -InputObject [-QuotaGiB ] [-Metadata ] [-AccessTier ] [-RootSquash ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -210,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 +``` + ### -QuotaGiB Share Quota in Gibibyte. diff --git a/src/Storage/Storage.Management/help/Update-AzStorageAccountNetworkRuleSet.md b/src/Storage/Storage.Management/help/Update-AzStorageAccountNetworkRuleSet.md index 468bc83ceeff..5ae6d82b8322 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageAccountNetworkRuleSet.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageAccountNetworkRuleSet.md @@ -16,7 +16,7 @@ Update the NetworkRule property of a Storage account Update-AzStorageAccountNetworkRuleSet [-ResourceGroupName] [-Name] [-Bypass ] [-DefaultAction ] [-IPRule ] [-VirtualNetworkRule ] [-ResourceAccessRule ] [-AsJob] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -149,6 +149,21 @@ Accept pipeline input: True (ByPropertyName) 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 +``` + ### -ResourceAccessRule Storage Account NetworkRule ResourceAccessRules. diff --git a/src/Storage/Storage.Management/help/Update-AzStorageBlobServiceProperty.md b/src/Storage/Storage.Management/help/Update-AzStorageBlobServiceProperty.md index 690bd1cfb7a7..e86278a8146c 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageBlobServiceProperty.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageBlobServiceProperty.md @@ -17,14 +17,14 @@ Modifies the service properties for the Azure Storage Blob service. Update-AzStorageBlobServiceProperty [-ResourceGroupName] [-StorageAccountName] [-DefaultServiceVersion ] [-EnableChangeFeed ] [-ChangeFeedRetentionInDays ] [-IsVersioningEnabled ] [-CorsRule ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObject ``` Update-AzStorageBlobServiceProperty -StorageAccount [-DefaultServiceVersion ] [-EnableChangeFeed ] [-ChangeFeedRetentionInDays ] [-IsVersioningEnabled ] - [-CorsRule ] [-DefaultProfile ] + [-CorsRule ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ Update-AzStorageBlobServiceProperty -StorageAccount [-Default ``` Update-AzStorageBlobServiceProperty [-ResourceId] [-DefaultServiceVersion ] [-EnableChangeFeed ] [-ChangeFeedRetentionInDays ] [-IsVersioningEnabled ] - [-CorsRule ] [-DefaultProfile ] + [-CorsRule ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -240,6 +240,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Update-AzStorageEncryptionScope.md b/src/Storage/Storage.Management/help/Update-AzStorageEncryptionScope.md index 4ee1b8534dcf..3399c2c2a77c 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageEncryptionScope.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageEncryptionScope.md @@ -16,7 +16,7 @@ Modify an encryption scope for a Storage account. ``` Update-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] -EncryptionScopeName [-StorageEncryption] [-State ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -24,7 +24,7 @@ Update-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountNa ``` Update-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountName] -EncryptionScopeName [-KeyvaultEncryption] -KeyUri [-State ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,27 +32,27 @@ Update-AzStorageEncryptionScope [-ResourceGroupName] [-StorageAccountNa ``` Update-AzStorageEncryptionScope -StorageAccount -EncryptionScopeName [-StorageEncryption] [-State ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### AccountObjectKeyVault ``` Update-AzStorageEncryptionScope -StorageAccount -EncryptionScopeName [-KeyvaultEncryption] -KeyUri [-State ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### EncryptionScopeObject ``` Update-AzStorageEncryptionScope -InputObject [-StorageEncryption] [-State ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ### EncryptionScopeObjectKeyVault ``` Update-AzStorageEncryptionScope -InputObject [-KeyvaultEncryption] -KeyUri - [-State ] [-DefaultProfile ] [-WhatIf] + [-State ] [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -199,6 +199,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md b/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md index dbaaaf65ade4..5b57f13a0228 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageFileServiceProperty.md @@ -18,7 +18,7 @@ Update-AzStorageFileServiceProperty [-ResourceGroupName] [-StorageAccou [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-SmbProtocolVersion ] [-SmbAuthenticationMethod ] [-SmbChannelEncryption ] [-SmbKerberosTicketEncryption ] [-CorsRule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -28,7 +28,7 @@ Update-AzStorageFileServiceProperty -StorageAccount [-EnableShareDeleteRetentionPolicy ] [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-SmbProtocolVersion ] [-SmbAuthenticationMethod ] [-SmbChannelEncryption ] [-SmbKerberosTicketEncryption ] [-CorsRule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -38,7 +38,7 @@ Update-AzStorageFileServiceProperty [-ResourceId] [-EnableShareDeleteRe [-ShareRetentionDays ] [-EnableSmbMultichannel ] [-SmbProtocolVersion ] [-SmbAuthenticationMethod ] [-SmbChannelEncryption ] [-SmbKerberosTicketEncryption ] [-CorsRule ] - [-DefaultProfile ] [-WhatIf] [-Confirm] + [-DefaultProfile ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -235,6 +235,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 Resource Group Name. diff --git a/src/Storage/Storage.Management/help/Update-AzStorageServiceProperty.md b/src/Storage/Storage.Management/help/Update-AzStorageServiceProperty.md index e068da4617a6..9bdc47c411b6 100644 --- a/src/Storage/Storage.Management/help/Update-AzStorageServiceProperty.md +++ b/src/Storage/Storage.Management/help/Update-AzStorageServiceProperty.md @@ -15,7 +15,7 @@ Modifies the properties for the Azure Storage service. ``` Update-AzStorageServiceProperty [-ServiceType] [-DefaultServiceVersion ] [-PassThru] [-Context ] [-DefaultProfile ] - [-WhatIf] [-Confirm] [] + [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION @@ -94,6 +94,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 +``` + ### -ServiceType Specifies the storage service type. This cmdlet gets the logging properties for the service type that this parameter specifies.