diff --git a/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml b/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
index fc526bc9d1a2..ed3e2e527785 100644
--- a/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
+++ b/generated/Storage/Storage.Autorest/Az.Storage.format.ps1xml
@@ -4261,11 +4261,10 @@
-<<<<<<< HEAD
-
-=======
->>>>>>> f7054b5796219b05b298a4566ce14eafb2b9b268
+
+
+
@@ -4314,11 +4313,10 @@
ResourceGroupName
-<<<<<<< HEAD
- StorageTaskAssignmentName
-=======
ShareName
->>>>>>> f7054b5796219b05b298a4566ce14eafb2b9b268
+
+
+ StorageTaskAssignmentNameSubscriptionId
diff --git a/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs b/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
index e98fc583c1e8..9ad877ee470a 100644
--- a/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
@@ -23,4 +23,4 @@
[assembly: System.Reflection.AssemblyFileVersionAttribute("8.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("8.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
-[assembly: System.CLSCompliantAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
\ No newline at end of file
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
index bce6e9915663..247080e21842 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageAccountMigration.ps1
@@ -45,8 +45,8 @@ INPUTOBJECT : Identity Parameter
[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.
- [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[ShareName ]: The name of the file share within the specified storage account. File share 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.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
index 02b195f7c015..c634c1edc3c4 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageFileServiceUsage.ps1
@@ -46,6 +46,7 @@ INPUTOBJECT : Identity Parameter
[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.
[ShareName ]: The name of the file share within the specified storage account. File share 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.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
index 916592d463bf..5de91a12b2e8 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignment.ps1
@@ -38,6 +38,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -45,6 +47,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -54,6 +57,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -61,6 +66,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
diff --git a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1 b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
index 7a96bfa1d040..38ec75271797 100644
--- a/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
+++ b/generated/Storage/Storage.Autorest/exports/Get-AzStorageTaskAssignmentInstancesReport.ps1
@@ -38,6 +38,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -45,6 +47,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -54,6 +57,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -61,6 +66,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
diff --git a/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
index 93d3db64dee2..284f11691454 100644
--- a/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/Storage/Storage.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -45,8 +45,8 @@ INPUTOBJECT : Identity Parameter
[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.
- [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[ShareName ]: The name of the file share within the specified storage account. File share 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.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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
@@ -223,6 +223,225 @@ end {
}
}
+<#
+.Synopsis
+Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.
+.Description
+Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.
+.Example
+Get-AzStorageFileServiceUsage -StorageAccountName myaccount -ResourceGroupName myresroucegroup
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IFileServiceUsage
+.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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
+ [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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
+ [StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
+ [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/get-azstoragefileserviceusage
+#>
+function Get-AzStorageFileServiceUsage {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IFileServiceUsage])]
+[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', 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='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', 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.
+ ${StorageAccountName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [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='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.IStorageIdentity]
+ # Identity Parameter
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Query')]
+ [System.Int32]
+ # Optional, specifies the maximum number of file service usages to be included in the list response.
+ ${Maxpagesize},
+
+ [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(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(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
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.Storage.private\Get-AzStorageFileServiceUsage_Get';
+ GetViaIdentity = 'Az.Storage.private\Get-AzStorageFileServiceUsage_GetViaIdentity';
+ List = 'Az.Storage.private\Get-AzStorageFileServiceUsage_List';
+ }
+ if (('Get', 'List') -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
+ }
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.Storage.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
<#
.Synopsis
Fetch the report summary of a single storage task assignment's instances
@@ -247,6 +466,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -254,6 +475,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -263,6 +485,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -270,6 +494,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -504,6 +729,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -511,6 +738,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -520,6 +748,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -527,6 +757,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -1041,6 +1272,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -1048,6 +1281,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -1057,6 +1291,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -1064,6 +1300,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -1299,6 +1536,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -1306,6 +1545,7 @@ INPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -1315,6 +1555,8 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName ]: The name of the file Service within the specified storage account. File Service Name must be "default"
[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'
@@ -1322,6 +1564,7 @@ STORAGEACCOUNTINPUTOBJECT : Identity Parameter
[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.
+ [ShareName ]: The name of the file share within the specified storage account. File share 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.
[StorageTaskAssignmentName ]: The name of the storage task assignment within the specified resource group. Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
[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.
@@ -1641,6 +1884,8 @@ INPUTOBJECT : Identity Parameter
[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.
+ [FileServiceUsagesName ]: The name of the file service usage. File Service Usage Name must be "default"
+ [FileServicesName