diff --git a/src/DataProtection/DataProtection.Autorest/README.md b/src/DataProtection/DataProtection.Autorest/README.md index 8727e35560af..51406d1f8e78 100644 --- a/src/DataProtection/DataProtection.Autorest/README.md +++ b/src/DataProtection/DataProtection.Autorest/README.md @@ -31,11 +31,11 @@ This file contains the configuration for generating My API from the OpenAPI spec ``` yaml # it's the same options as command line options, just drop the double-dash! -commit: b88b86f58a98ee1569ae6e7cba6f84061e15166b +commit: b53afea5edbeb0572a35b1ab34ca3f122cdbd70b require: - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-01-01/dataprotection.json + - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2025-07-01/dataprotection.json title: DataProtection # For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option use-extension: @@ -467,19 +467,19 @@ directive: - EncryptionSettings - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicy Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicy Property'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ITriggerContext Trigger'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ITriggerContext Trigger'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupParameters BackupParameter'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupParameters BackupParameter'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPoint Property'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRecoveryPoint Property'); - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.INamespacedNameResource ResourceModifierReference'); + transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.INamespacedNameResource ResourceModifierReference'); ``` ## Alternate settings diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 index 1e5aecf6eec3..5247d9b6ae0e 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1 @@ -102,7 +102,7 @@ foreach($argResponse in $argInstanceResponse) { $jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100 - $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource]::FromJsonString($jsonStringResponse) + $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource]::FromJsonString($jsonStringResponse) } return $backupInstances } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1 index 3bde1d79c305..5e904385cb43 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1 @@ -94,7 +94,7 @@ foreach($argVault in $argAllVaults) { $jsonStringResponse = $argVault | ConvertTo-Json -Depth 100 - $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupVaultResource]::FromJsonString($jsonStringResponse) + $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupVaultResource]::FromJsonString($jsonStringResponse) } return $backupVaults } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 index 9ea0212535a9..70e2195972c3 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionJobInAzGraph.ps1 @@ -130,7 +130,7 @@ foreach($jobresponse in $argJobResponse) { $jsonStringResponse = $jobresponse | ConvertTo-Json -Depth 100 - $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupJobResource]::FromJsonString($jsonStringResponse) + $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupJobResource]::FromJsonString($jsonStringResponse) } return $backupJobs } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 index 6bad8a642a37..2a344459e843 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 @@ -2,7 +2,7 @@ function New-AzDataProtectionResourceGuard { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a resource guard under a resource group')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 index fc19b24c0abb..5d90c300a45d 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1 @@ -2,7 +2,7 @@ function Update-AzDataProtectionResourceGuard { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1 index d49f2bd627f5..0dfa578df2fc 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1 @@ -1,5 +1,5 @@ function Initialize-AzDataProtectionBackupInstance { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')] @@ -39,9 +39,9 @@ [Parameter(Mandatory=$false, HelpMessage='Friendly name for backup instance')] [System.String] ${FriendlyName}, - - [Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService,AzureBlob.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupDatasourceParameters] + + [Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService, AzureBlob and AzureDataLakeStorage.')] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupDatasourceParameters] ${BackupConfiguration}, [Parameter(Mandatory=$false, HelpMessage='Use system assigned identity')] @@ -57,7 +57,7 @@ process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstance]::new() + $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstance]::new() $backupInstance.ObjectType = "BackupInstance" if($manifest.snapshotRGPermissions.Length -eq 0 -and $SnapshotResourceGroupId -ne "") @@ -113,7 +113,7 @@ throw "UserAssignedIdentityArmId cannot be provided without UseSystemAssignedIdentity and UseSystemAssignedIdentity must be false when UserAssignedIdentityArmId is provided." } - $backupInstance.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IdentityDetails]::new() + $backupInstance.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IdentityDetails]::new() $backupInstance.IdentityDetail.UseSystemAssignedIdentity = $UseSystemAssignedIdentity if ($hasUserAssignedIdentityArmId) { @@ -131,9 +131,9 @@ $errormsg = "Please input SecretStoreType" throw $errormsg } - $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreBasedAuthCredentials]::new() + $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SecretStoreBasedAuthCredentials]::new() $backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreResource]::new() + $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SecretStoreResource]::new() $backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } @@ -143,7 +143,7 @@ } } - $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource]::new() + $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource]::new() $backupInstanceResource.Property = $backupInstance if($PSBoundParameters.ContainsKey("DatasourceId")) @@ -161,7 +161,7 @@ if($manifest.addDataStoreParametersList -eq $true) { - $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureOperationalStoreParameters]::new() + $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureOperationalStoreParameters]::new() $operationalParam.DataStoreType = "OperationalStore" $operationalParam.ObjectType = "AzureOperationalStoreParameters" $operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}" diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1 index e00abd5b2a48..371727a4065a 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1 @@ -7,7 +7,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{ param( [Parameter(Mandatory, HelpMessage='Datasource Type')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes] - [ValidateSet('AzureKubernetesService', 'AzureBlob')] + [ValidateSet('AzureKubernetesService', 'AzureBlob', 'AzureDataLakeStorage')] ${DatasourceType}, [Parameter(Mandatory=$false, HelpMessage='List of resource types to be excluded from backup')] @@ -39,7 +39,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{ ${IncludeClusterScopeResource}, [Parameter(Mandatory=$false, HelpMessage='Hook reference to be executed during backup.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[]] ${BackupHookReference}, [Parameter(Mandatory=$false, HelpMessage='List of containers to be backed up inside the VaultStore. Use this parameter for DatasourceType AzureBlob.')] @@ -71,7 +71,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{ throw $message } - $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterBackupDatasourceParameters]::new() + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterBackupDatasourceParameters]::new() $dataSourceParam.ObjectType = "KubernetesClusterBackupDatasourceParameters" $dataSourceParam.ExcludedResourceType = $ExcludedResourceType @@ -97,7 +97,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{ } if($DatasourceType.ToString() -eq "AzureBlob"){ - $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BlobBackupDatasourceParameters]::new() + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BlobBackupDatasourceParameters]::new() $dataSourceParam.ObjectType = "BlobBackupDatasourceParameters" if($VaultedBackupContainer -ne $null){ @@ -134,6 +134,44 @@ function New-AzDataProtectionBackupConfigurationClientObject{ throw $message } } + elseif($DatasourceType.ToString() -eq "AzureDataLakeStorage"){ + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AdlsBlobBackupDatasourceParameters]::new() + $dataSourceParam.ObjectType = "AdlsBlobBackupDatasourceParameters" + + if($VaultedBackupContainer -ne $null){ + + # exclude containers which start with $ except $web, $root + $unsupportedContainers = $VaultedBackupContainer | Where-Object { $_ -like '$*' -and $_ -ne "`$root" -and $_ -ne "`$web"} + if($unsupportedContainers.Count -gt 0){ + $message = "Following containers are not allowed for configure protection with AzureDataLakeStorage - $unsupportedContainers. Please remove them and proceed." + throw $message + } + + $dataSourceParam.ContainersList = $VaultedBackupContainer + } + elseif($IncludeAllContainer){ + if($StorageAccountName -eq $null -or $StorageAccountResourceGroupName -eq $null){ + $message = "Please input StorageAccountName and StorageAccountResourceGroupName parameters for fetching all vaulted containers." + throw $message + } + + CheckStorageModuleDependency + $storageAccount = Get-AzStorageAccount -ResourceGroupName $StorageAccountResourceGroupName -Name $StorageAccountName + $containers = Get-AzStorageContainer -Context $storageAccount.Context + + # exclude containers which start with $ except $web, $root + $allContainers = $containers.Name | Where-Object { -not($_ -like '$*' -and $_ -ne "`$root" -and $_ -ne "`$web")} + $dataSourceParam.ContainersList = $allContainers + } + elseif($ExcludedResourceType -ne $null -or $IncludedResourceType -ne $null -or $ExcludedNamespace -ne $null -or $IncludedNamespace -ne $null -or $LabelSelector -ne $null -or $SnapshotVolume -ne $null -or $IncludeClusterScopeResource -ne $null){ + $message = "Invalid parameters ExcludedResourceType, IncludedResourceType, ExcludedNamespace, IncludedNamespace, LabelSelector, SnapshotVolume, IncludeClusterScopeResource for given DatasourceType." + throw $message + } + else { + $message = "Please input VaultedBackupContainer or IncludeAllContainer parameters for given workload type." + throw $message + } + } $dataSourceParam } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1 index 3922f0a0e88a..fc289b51c5f3 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1 @@ -20,7 +20,7 @@ function New-AzDataProtectionBackupInstance { ${VaultName}, [Parameter(Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource] ${BackupInstance}, [Parameter(Mandatory=$false, HelpMessage='Resource tags')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1 index 807c361b3865..369abb21d3d5 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1 @@ -98,7 +98,7 @@ function Stop-AzDataProtectionBackupInstanceProtection { $parameterSetName = $PsCmdlet.ParameterSetName if($parameterSetName -eq "StopViaIdentity"){ - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.StopProtectionRequest]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.StopProtectionRequest]::new() $hasResourceGuardOperationRequest = $PSBoundParameters.Remove("ResourceGuardOperationRequest") if($hasResourceGuardOperationRequest){ diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1 index c38816bfc809..fe8a58338314 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1 @@ -98,7 +98,7 @@ function Suspend-AzDataProtectionBackupInstanceBackup { $parameterSetName = $PsCmdlet.ParameterSetName if($parameterSetName -eq "SuspendViaIdentity"){ - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SuspendBackupRequest]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SuspendBackupRequest]::new() $hasResourceGuardOperationRequest = $PSBoundParameters.Remove("ResourceGuardOperationRequest") if($hasResourceGuardOperationRequest){ diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1 index 7a1973440038..2b71a3062536 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1 @@ -2,7 +2,7 @@ function Update-AzDataProtectionBackupInstance { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a given backup instance')] @@ -36,7 +36,7 @@ function Update-AzDataProtectionBackupInstance [System.String] ${UserAssignedIdentityArmId}, - [Parameter(Mandatory=$false, HelpMessage='List of containers to be backed up inside the VaultStore. Use this parameter for DatasourceType AzureBlob.')] + [Parameter(Mandatory=$false, HelpMessage='List of containers to be backed up inside the VaultStore. Use this parameter for DatasourceType AzureBlob and AzureDataLakeStorage.')] [System.String[]] ${VaultedBackupContainer}, @@ -125,7 +125,7 @@ function Update-AzDataProtectionBackupInstance throw "UserAssignedIdentityArmId cannot be provided without UseSystemAssignedIdentity and UseSystemAssignedIdentity must be false when UserAssignedIdentityArmId is provided." } - $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IdentityDetails]::new() + $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IdentityDetails]::new() $instance.Property.IdentityDetail.UseSystemAssignedIdentity = $UseSystemAssignedIdentity if ($hasUserAssignedIdentityArmId) { @@ -135,7 +135,7 @@ function Update-AzDataProtectionBackupInstance if($hasVaultedBackupContainer){ - if($DatasourceType -ne "AzureBlob"){ + if($DatasourceType -ne "AzureBlob" -and $DatasourceType -ne "AzureDataLakeStorage"){ $err = "Parameter VaultedBackupContainer isn't supported for given Datasource" throw $err } @@ -143,7 +143,7 @@ function Update-AzDataProtectionBackupInstance # exclude containers which start with $ except $web, $root $unsupportedContainers = $VaultedBackupContainer | Where-Object { $_ -like '$*' -and $_ -ne "`$root" -and $_ -ne "`$web"} if($unsupportedContainers.Count -gt 0){ - $message = "Following containers are not allowed for configure protection with AzureBlob - $unsupportedContainers. Please remove them and try again." + $message = "Following containers are not allowed for configure protection with AzureBlob and AzureDataLakeStorage - $unsupportedContainers. Please remove them and try again." throw $message } @@ -153,7 +153,7 @@ function Update-AzDataProtectionBackupInstance $instance.Property.PolicyInfo.PolicyParameter.BackupDatasourceParametersList[0].ContainersList = $VaultedBackupContainer } elseif($datasourceParam -eq $null){ - $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BlobBackupDatasourceParameters]::new() + $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BlobBackupDatasourceParameters]::new() $backupConfiguration.ObjectType = "BlobBackupDatasourceParameters" $backupConfiguration.ContainersList = $VaultedBackupContainer diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 index 2470be084f28..22f3662d8403 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 @@ -2,7 +2,7 @@ function Update-AzDataProtectionBackupInstanceAssociatedPolicy { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates associated policy for a given backup instance')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1 index 8905b0f3a2f6..1dbc47f3c030 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1 @@ -1,6 +1,6 @@ function Get-AzDataProtectionJob { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupJobResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupJobResource')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Gets or lists jobs in a backup vault')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 index b83b7784a10d..6fa254a68fcf 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1 @@ -1,6 +1,6 @@ function Initialize-AzDataProtectionRestoreRequest { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest')] [CmdletBinding(PositionalBinding=$false, DefaultParameterSetName='AlternateLocationFullRecovery')] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Restore Request object for triggering restore on a protected backup instance.')] @@ -71,7 +71,7 @@ [Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Backup Instance object to trigger original location restore.')] [Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Backup Instance object to trigger original location restore.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource] ${BackupInstance}, # this is applicable to all workloads wherever ALR supported. @@ -107,6 +107,10 @@ [Hashtable] ${PrefixMatch}, + [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Use this parameter to rename container(s) for alternate location ILR. Input for this parameter is a hashtable where each key is the original container name and each value is the new name for the corresponding container.')] + [Hashtable] + ${RenameTo}, + [Parameter(ParameterSetName="OriginalLocationILR", Mandatory=$false, HelpMessage='Specify the blob restore start range for PITR. You can use this option to specify the starting range for a subset of blobs in each container to restore. use a forward slash (/) to separate the container name from the blob prefix pattern.')] # [Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Minimum matching value for Item Level Recovery.')] [System.String[]] @@ -172,7 +176,7 @@ Write-Debug -Message $RecoveryPoint if($PSBoundParameters.ContainsKey("RehydrationPriority")){ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupRestoreWithRehydrationRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRestoreWithRehydrationRequest]::new() $restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest" $restoreRequest.RehydrationPriority = $RehydrationPriority if($PSBoundParameters.ContainsKey("RehydrationDuration")){ @@ -183,7 +187,7 @@ } } else{ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupRecoveryPointBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRecoveryPointBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest" } $restoreRequest.RecoveryPointId = $RecoveryPoint @@ -193,7 +197,7 @@ { $utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") Write-Debug -Message $utcTime - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupRecoveryTimeBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRecoveryTimeBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest" $restoreRequest.RecoveryPointTime = $utcTime $restoreMode = "PointInTimeBased" @@ -227,7 +231,7 @@ if($RestoreType -eq "RestoreAsFiles") { - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.RestoreFilesTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RestoreFilesTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo" if($manifest.fileNamePrefixDisabled -and $PSBoundParameters.ContainsKey("FileNamePrefix")){ @@ -262,11 +266,11 @@ { # RestoreTargetInfo for OLR ALR Full recovery if($DatasourceType -ne "AzureKubernetesService"){ - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.RestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo" } else{ - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemLevelRestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" $restoreCriteriaList = @() @@ -286,7 +290,7 @@ else { # ILR: ItemLevelRestoreTargetInfo - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemLevelRestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" $restoreCriteriaList = @() @@ -296,9 +300,10 @@ if(($RecoveryPoint -ne $null) -and ($RecoveryPoint -ne "") -and $ContainersList.length -gt 0){ $hasPrefixMatch = $PSBoundParameters.Remove("PrefixMatch") + $hasRenameTo = $PSBoundParameters.Remove("RenameTo") for($i = 0; $i -lt $ContainersList.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ItemPathBasedRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemPathBasedRestoreCriteria]::new() $restoreCriteria.ObjectType = "ItemPathBasedRestoreCriteria" $restoreCriteria.ItemPath = $ContainersList[$i] @@ -311,6 +316,19 @@ } $restoreCriteria.SubItemPathPrefix = $pathPrefix } + Write-Debug "renameContainersEnabled: $manifest.renameContainersEnabled" + Write-Debug "hasRenameTo: $hasRenameTo" + if($manifest.renameContainersEnabled -eq $true -and $hasRenameTo){ + Write-Debug "renameToValue: $($RenameTo[$ContainersList[$i]])" + $renameToValue = $RenameTo[$ContainersList[$i]] + if($renameToValue -ne $null -and ($renameToValue -is [Array])){ + throw "value for RenameTo must be a string for each container" + } + $restoreCriteria.RenameTo = $renameToValue + } + elseif( ($manifest.renameContainersEnabled -ne $true) -and ($hasRenameTo)){ + throw "DatasourceType $DatasourceType does not support renaming containers" + } # adding a criteria for each container given $restoreCriteriaList += ($restoreCriteria) @@ -319,7 +337,7 @@ elseif($ContainersList.length -gt 0){ for($i = 0; $i -lt $ContainersList.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $ContainersList[$i] @@ -338,7 +356,7 @@ for($i = 0; $i -lt $FromPrefixPattern.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i] @@ -413,9 +431,9 @@ $errormsg = "Please input SecretStoreType" throw $errormsg } - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreBasedAuthCredentials]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SecretStoreBasedAuthCredentials]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials" - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SecretStoreResource]::new() + $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SecretStoreResource]::new() $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/New-AzDataProtectionRestoreConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/New-AzDataProtectionRestoreConfigurationClientObject.ps1 index a4a726654f5b..a316006cbd8b 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/New-AzDataProtectionRestoreConfigurationClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/New-AzDataProtectionRestoreConfigurationClientObject.ps1 @@ -40,7 +40,7 @@ function New-AzDataProtectionRestoreConfigurationClientObject{ ${ConflictPolicy}, [Parameter(Mandatory=$false, HelpMessage='Namespaces mapping from source namespaces to target namespaces to resolve namespace naming conflicts in the target cluster.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterRestoreCriteriaNamespaceMappings] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterRestoreCriteriaNamespaceMappings] ${NamespaceMapping}, [Parameter(Mandatory=$false, HelpMessage='Restore mode for persistent volumes. Allowed values are RestoreWithVolumeData, RestoreWithoutVolumeData. Default value is RestoreWithVolumeData')] @@ -49,11 +49,11 @@ function New-AzDataProtectionRestoreConfigurationClientObject{ ${PersistentVolumeRestoreMode}, [Parameter(Mandatory=$false, HelpMessage='Hook reference to be executed during restore.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[]] ${RestoreHookReference}, [Parameter(Mandatory=$false, HelpMessage='Resource modifier reference to be executed during restore.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource] ${ResourceModifierReference}, [Parameter(Mandatory=$false, HelpMessage='Staging resource group Id for restore.')] @@ -74,7 +74,7 @@ function New-AzDataProtectionRestoreConfigurationClientObject{ $restoreCriteria = $null if($hasStagingResourceGroupId -and $hasStagingStorageAccountId){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterVaultTierRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterVaultTierRestoreCriteria]::new() $restoreCriteria.ObjectType = "KubernetesClusterVaultTierRestoreCriteria" $restoreCriteria.StagingResourceGroupId = $StagingResourceGroupId @@ -84,7 +84,7 @@ function New-AzDataProtectionRestoreConfigurationClientObject{ throw "Both StagingResourceGroupId and StagingStorageAccountId are mandatory for vaulted tier restore for AzureKubernetesService. Please either provide or remove both of them." } else { - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterRestoreCriteria]::new() $restoreCriteria.ObjectType = "KubernetesClusterRestoreCriteria" } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Start-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Start-AzDataProtectionBackupInstanceRestore.ps1 index e8503ce79a74..240ab5823363 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Start-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Start-AzDataProtectionBackupInstanceRestore.ps1 @@ -2,7 +2,7 @@ function Start-AzDataProtectionBackupInstanceRestore { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Triggers restore for a BackupInstance')] @@ -25,7 +25,7 @@ function Start-AzDataProtectionBackupInstanceRestore ${VaultName}, [Parameter(ParameterSetName="Trigger", Mandatory, HelpMessage='Restore request object to be initialized using Initialize-AzDataProtectionRestoreRequest cmdlet', ValueFromPipeline=$true)] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest] ${Parameter}, [Parameter(Mandatory=$false, HelpMessage='Resource guard operation request in the format similar to /dppTriggerRestoreRequests/default. Use this parameter when the operation is MUA protected.')] @@ -45,7 +45,7 @@ function Start-AzDataProtectionBackupInstanceRestore ${ObjectType}, [Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Gets or sets the restore target information')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IRestoreTargetInfoBase] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IRestoreTargetInfoBase] ${RestoreTargetInfo}, [Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Type of the source data store')] @@ -176,7 +176,7 @@ function Start-AzDataProtectionBackupInstanceRestore $backupInstanceId = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" + $ResourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + $VaultName + "/backupInstances/" + $BackupInstanceName - $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CrossRegionRestoreDetails]::new() + $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CrossRegionRestoreDetails]::new() $crossRegionRestoreDetail.SourceBackupInstanceId = $backupInstanceId $crossRegionRestoreDetail.SourceRegion = $vault.Location @@ -187,7 +187,7 @@ function Start-AzDataProtectionBackupInstanceRestore $PSBoundParameters.Add("RestoreRequestObject", $Parameter) } else{ - $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureBackupRestoreRequest]::new() + $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRestoreRequest]::new() if($hasObjectType) { $restoreRequestObject.ObjectType = $ObjectType } if($hasRestoreTargetInfo) { $restoreRequestObject.RestoreTargetInfo = $RestoreTargetInfo } if($hasSourceDataStoreType) { $restoreRequestObject.SourceDataStoreType = $SourceDataStoreType } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 index 95d32fe43906..8abd2fd31e07 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Test-AzDataProtectionBackupInstanceRestore.ps1 @@ -2,7 +2,7 @@ function Test-AzDataProtectionBackupInstanceRestore { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Validates if Restore can be triggered for a DataSource')] @@ -24,7 +24,7 @@ function Test-AzDataProtectionBackupInstanceRestore ${VaultName}, [Parameter(ParameterSetName="ValidateRestore", Mandatory, HelpMessage='Restore request object for which to validate')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest] ${RestoreRequest}, [Parameter(Mandatory=$false, HelpMessage='Switch parameter to trigger restore to secondary region')] @@ -108,10 +108,10 @@ function Test-AzDataProtectionBackupInstanceRestore $backupInstanceId = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" + $ResourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + $VaultName + "/backupInstances/" + $Name - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ValidateCrossRegionRestoreRequestObject]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ValidateCrossRegionRestoreRequestObject]::new() $Parameter.RestoreRequestObject = $RestoreRequest - $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CrossRegionRestoreDetails]::new() + $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CrossRegionRestoreDetails]::new() $Parameter.CrossRegionRestoreDetail.SourceBackupInstanceId = $backupInstanceId $Parameter.CrossRegionRestoreDetail.SourceRegion = $vault.Location @@ -121,7 +121,7 @@ function Test-AzDataProtectionBackupInstanceRestore Az.DataProtection.Internal\Test-AzDataProtectionBackupInstanceCrossRegionRestore @PSBoundParameters } else{ - $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ValidateRestoreRequestObject]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ValidateRestoreRequestObject]::new() $Parameter.RestoreRequestObject = $RestoreRequest $null = $PSBoundParameters.Add("Parameter", $Parameter) diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 index 025c0fc1dc67..7f8bbaf024c9 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVault.ps1 @@ -30,7 +30,7 @@ ${Location}, [Parameter(Mandatory, HelpMessage='Storage Settings of the vault. Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IStorageSetting[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IStorageSetting[]] ${StorageSetting}, [Parameter(Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')] @@ -160,13 +160,13 @@ return } - $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.EncryptionSettings]::new() + $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.EncryptionSettings]::new() $encryptionSettings.State = $CmkEncryptionState $encryptionSettings.CmkInfrastructureEncryption = $CmkInfrastructureEncryption - $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKekIdentity]::new() + $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKekIdentity]::new() $encryptionSettings.CmkIdentity.IdentityType = $CmkIdentityType $encryptionSettings.CmkIdentity.IdentityId = $CmkUserAssignedIdentityId - $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKeyVaultProperties]::new() + $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties]::new() $encryptionSettings.CmkKeyVaultProperty.KeyUri = $CmkEncryptionKeyUri $PSBoundParameters.Add("EncryptionSetting", $encryptionSettings) diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 index fff859838c0a..13b812deab7a 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 @@ -15,7 +15,7 @@ function New-AzDataProtectionBackupVaultStorageSettingObject{ ) process { - $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.StorageSetting]::new() + $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.StorageSetting]::new() $storageSetting.Type = $Type $storageSetting.DataStoreType = $DataStoreType diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 index 8b958557a3af..01cf07007666 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Set-AzDataProtectionMSIPermission.ps1 @@ -33,7 +33,7 @@ function Set-AzDataProtectionMSIPermission { param( [Parameter(ParameterSetName="SetPermissionsForBackup", Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource] ${BackupInstance}, [Parameter(ParameterSetName="SetPermissionsForBackup", Mandatory=$false, HelpMessage='ID of the keyvault')] @@ -64,7 +64,7 @@ function Set-AzDataProtectionMSIPermission { ${DatasourceType}, [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory, HelpMessage='Restore request object which will be used for restore')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest] ${RestoreRequest}, [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Snapshot Resource Group')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1 index 8c8c96e75422..431d4b07fc8f 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1 @@ -1,6 +1,6 @@ function Update-AzDataProtectionBackupVault { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupVaultResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupVaultResource')] [CmdletBinding(DefaultParameterSetName="UpdateExpanded", PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a BackupVault resource belonging to a resource group. For example updating tags for a resource.')] @@ -184,9 +184,9 @@ if ($vault.EncryptionSetting -ne $null) { $encryptionSettings = $vault.EncryptionSetting } else { - $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.EncryptionSettings]::new() - $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKekIdentity]::new() - $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKeyVaultProperties]::new() + $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.EncryptionSettings]::new() + $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKekIdentity]::new() + $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties]::new() } if ($hasCmkEncryptionState) { $encryptionSettings.State = $CmkEncryptionState } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 index 2eeea803945e..1d888ad4db65 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 @@ -1,14 +1,14 @@  function Edit-AzDataProtectionPolicyRetentionRuleClientObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Adds or removes Retention Rule to existing Policy')] param( [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Backup Policy Object')] [Parameter(ParameterSetName='RemoveRetention',Mandatory, HelpMessage='Backup Policy Object')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy] ${Policy}, [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Retention Rule Name')] @@ -29,7 +29,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject { ${OverwriteLifeCycle}, [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Life cycles associated with the retention rule.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle[]] ${LifeCycles} ) @@ -68,7 +68,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject { throw "Selected Retention Rule " + $Name + " is not applicable for datasource type " + $DatasourceType } - $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureRetentionRule]::new() + $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureRetentionRule]::new() $newRetentionRule.ObjectType = "AzureRetentionRule" $newRetentionRule.IsDefault = $IsDefault $newRetentionRule.Name = $Name @@ -92,7 +92,7 @@ function Edit-AzDataProtectionPolicyRetentionRuleClientObject { throw $message } - $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.AzureRetentionRule]::new() + $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureRetentionRule]::new() $newRetentionRule.ObjectType = "AzureRetentionRule" $newRetentionRule.IsDefault = $IsDefault $newRetentionRule.Name = $Name diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 index 390d22ae57e4..2900bba307b3 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTagClientObject.ps1 @@ -1,12 +1,12 @@ function Edit-AzDataProtectionPolicyTagClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Adds or removes schedule tag in an existing backup policy.')] param( [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Backup Policy Object.')] [Parameter(ParameterSetName='RemoveTag', Mandatory, HelpMessage='Backup Policy Object.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy] ${Policy}, [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Name of the Schedule tag.')] @@ -19,7 +19,7 @@ ${RemoveRule}, [Parameter(ParameterSetName='updateTag', Mandatory, HelpMessage='Criterias to be associated with the schedule tag.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria[]] ${Criteria} ) @@ -83,7 +83,7 @@ if($tagIndex -eq -1) { - $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.TaggingCriteria]::new() + $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.TaggingCriteria]::new() $tagCriteria.TaggingPriority = GetTaggingPriority -Name $Name $tagCriteria.Criterion = $Criteria $tagCriteria.TagInfoTagName = $Name diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 index 629420ea1a33..e66246dfb06f 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 @@ -1,12 +1,12 @@ function Edit-AzDataProtectionPolicyTriggerClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates Backup schedule of an existing backup policy.')] param ( [Parameter(ParameterSetName='ModifyBackupSchedule', Mandatory, HelpMessage='Backup Policy object.')] [Parameter(ParameterSetName='RemoveBackupSchedule', Mandatory, HelpMessage='Backup Policy object.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy] ${Policy}, [Parameter(ParameterSetName='ModifyBackupSchedule', Mandatory, HelpMessage='Schedule to be associated to backup policy.')] diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 index beb8ec0cdd63..e4062ef8591e 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Get-AzDataProtectionPolicyTemplate.ps1 @@ -1,7 +1,7 @@  function Get-AzDataProtectionPolicyTemplate { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Gets default policy template for a selected datasource type.')] @@ -17,7 +17,7 @@ function Get-AzDataProtectionPolicyTemplate { $manifestPolicyObject = $manifest.policySettings.defaultPolicy $jsonPolicyString = $manifestPolicyObject | ConvertTo-Json -Depth 100 - $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupPolicy]::FromJsonString($jsonPolicyString) + $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupPolicy]::FromJsonString($jsonPolicyString) return $defaultPolicy } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 index a3355c6fed28..d85a6799ad46 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionBackupPolicy.ps1 @@ -1,7 +1,7 @@ function New-AzDataProtectionBackupPolicy { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicyResource')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicyResource')] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a new backup policy in a given backup vault')] @@ -23,7 +23,7 @@ ${Name}, [Parameter(Mandatory, HelpMessage='Policy Request Object')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy] ${Policy}, [Parameter()] @@ -114,7 +114,7 @@ $index += 1 } - $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BaseBackupPolicyResource]::new() + $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BaseBackupPolicyResource]::new() $policyObject.Property = $Policy $null = $PSBoundParameters.Remove("Policy") diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 index d82993d940fe..fee8b7dd7f6d 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 @@ -1,5 +1,5 @@ function New-AzDataProtectionPolicyTagCriteriaClientObject{ - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates a new criteria object')] @@ -32,7 +32,7 @@ ) process { - $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ScheduleBasedBackupCriteria]::new() + $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ScheduleBasedBackupCriteria]::new() $criteria.ObjectType = "ScheduleBasedBackupCriteria" if($AbsoluteCriteria -ne $null){ $criteria.AbsoluteCriterion = $AbsoluteCriteria @@ -61,7 +61,7 @@ { throw "Day of month should be between 1 and 28." } - $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.Day]::new() $day.Date = $dayOfMonthNumber $day.IsLast = $false $criteria.DaysOfMonth += $day @@ -72,7 +72,7 @@ { throw "Day of month should either be between 1 and 28 or it should be last" } - $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.Day]::new() + $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.Day]::new() $day.IsLast = $true $criteria.DaysOfMonth += $day } diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 index 30fe2c5a0a5b..45ed28693ad8 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 @@ -1,5 +1,5 @@ function New-AzDataProtectionRetentionLifeCycleClientObject { - [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle')] + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle')] [CmdletBinding(PositionalBinding=$false)] [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Creates new Lifecycle object')] @@ -26,7 +26,7 @@ ) process { - $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.SourceLifeCycle]::new() + $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.SourceLifeCycle]::new() $lifeCycle.SourceDataStoreObjectType = "DataStoreInfoBase" $lifeCycle.SourceDataStoreType = $SourceDataStore $lifeCycle.DeleteAfterObjectType = "AbsoluteDeleteOption" @@ -34,7 +34,7 @@ if(($TargetDataStore -ne $null) -and ($CopyOption -ne $null)) { - $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.TargetCopySetting]::new() + $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.TargetCopySetting]::new() $targetCopySetting.DataStoreObjectType = "DataStoreInfoBase" $targetCopySetting.DataStoreType = $TargetDataStore $targetCopySetting.CopyAfterObjectType = $CopyOption diff --git a/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs b/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs index 75748ec2fc32..1d34eafa8431 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs +++ b/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs @@ -8,6 +8,7 @@ public enum DatasourceTypes AzureDisk = 0, AzureBlob, AzureDatabaseForPostgreSQL, + AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL diff --git a/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 index 3d2249be1020..d897c91ec92c 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 +++ b/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 @@ -5,7 +5,7 @@ function GetDatasourceSetInfo param( [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IDatasource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IDatasource] $DatasourceInfo, [Parameter(Mandatory=$true)] @@ -16,7 +16,7 @@ function GetDatasourceSetInfo process { - $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.DatasourceSet]::new() + $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.DatasourceSet]::new() $DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type $DataSourceSetInfo.ObjectType = "DatasourceSet" $DataSourceSetInfo.ResourceLocation = $DatasourceInfo.ResourceLocation @@ -64,7 +64,7 @@ function GetDatasourceInfo process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.Datasource]::new() + $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.Datasource]::new() $DataSourceInfo.ObjectType = "Datasource" $DataSourceInfo.ResourceId = $ResourceId $DataSourceInfo.ResourceLocation = $ResourceLocation diff --git a/src/DataProtection/DataProtection.Autorest/custom/Models/BackupInstanceResource.cs b/src/DataProtection/DataProtection.Autorest/custom/Models/BackupInstanceResource.cs index c4f08544c94d..44e56aa13a0e 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/Models/BackupInstanceResource.cs +++ b/src/DataProtection/DataProtection.Autorest/custom/Models/BackupInstanceResource.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Text; -namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701 { public partial class BackupInstanceResource { diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json index 81e296221200..b85686afe9b5 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json +++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json @@ -22,7 +22,8 @@ "friendlyNameRequired": false, "customFriendlyNameAllowed": false, "supportSecretStoreAuthentication": false, - "supportCrossRegionRestore": false, + "supportCrossRegionRestore": true, + "renameContainersEnabled": true, "policySettings": { "supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ], "supportedDatastoreTypes": [ "OperationalStore", "VaultStore" ], diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDataLakeStorage.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDataLakeStorage.json new file mode 100644 index 000000000000..4a57d766931b --- /dev/null +++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDataLakeStorage.json @@ -0,0 +1,92 @@ +{ + "datasourcePermissions": [ "Storage Account Backup Contributor" ], + "datasourceRGPermissions": [], + "snapshotRGPermissions": [], + "keyVaultPermissions": [], + "dataSourceOverSnapshotRGPermissions": [], + "supportRestoreGrantPermission": false, + "datasourcePermissionsForRestore": [], + "storageAccountPermissionsForRestore": [], + "isProxyResource": false, + "enableDataSourceSetInfo": false, + "resourceType": "Microsoft.Storage/storageAccounts", + "parentResourceType": "Microsoft.Storage/storageAccounts", + "datasourceType": "Microsoft.Storage/storageAccounts/adlsBlobServices", + "allowedRestoreModes": [ "RecoveryPointBased" ], + "allowedRestoreTargetTypes": [ "AlternateLocation" ], + "itemLevelRecoveyEnabled": true, + "fileNamePrefixDisabled": false, + "addBackupDatasourceParametersList": true, + "backupConfigurationRequired": false, + "addDataStoreParametersList": false, + "friendlyNameRequired": false, + "customFriendlyNameAllowed": false, + "supportSecretStoreAuthentication": false, + "supportCrossRegionRestore": true, + "renameContainersEnabled": true, + "policySettings": { + "supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ], + "supportedDatastoreTypes": [ "VaultStore" ], + "disableAddRetentionRule": false, + "disableCustomRetentionTag": false, + "backupScheduleSupported": true, + "supportedBackupFrequency": [ "Daily", "Weekly" ], + "defaultPolicy": { + "policyRules": [ + { + "backupParameters": { + "backupType": "Discrete", + "objectType": "AzureBackupParams" + }, + "trigger": { + "schedule": { + "repeatingTimeIntervals": [ + "R/2023-03-26T13:00:00+00:00/P1W" + ], + "timeZone": "UTC" + }, + "taggingCriteria": [ + { + "tagInfo": { + "tagName": "Default", + "id": "Default_" + }, + "taggingPriority": 99, + "isDefault": true + } + ], + "objectType": "ScheduleBasedTriggerContext" + }, + "dataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + }, + "name": "BackupWeekly", + "objectType": "AzureBackupRule" + }, + { + "lifecycles": [ + { + "deleteAfter": { + "objectType": "AbsoluteDeleteOption", + "duration": "P7D" + }, + "sourceDataStore": { + "dataStoreType": "VaultStore", + "objectType": "DataStoreInfoBase" + } + } + ], + "isDefault": true, + "name": "Default", + "objectType": "AzureRetentionRule" + } + ], + "name": "AdlsBlobPolicy1", + "datasourceTypes": [ + "Microsoft.Storage/storageAccounts/adlsBlobServices" + ], + "objectType": "BackupPolicy" + } + } +} \ No newline at end of file diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json index 75f840eedb26..79ab1973253c 100644 --- a/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json +++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json @@ -12,6 +12,10 @@ "serviceDatasourceType": "Microsoft.Storage/storageAccounts/blobServices", "clientDatasourceType": "AzureBlob" }, + { + "serviceDatasourceType": "Microsoft.Storage/storageAccounts/adlsBlobServices", + "clientDatasourceType": "AzureDataLakeStorage" + }, { "serviceDatasourceType": "Microsoft.ContainerService/managedClusters", "clientDatasourceType": "AzureKubernetesService" diff --git a/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md index d5a45f996204..c5b691f923d0 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index 76fcf56e2385..1ce4b2f1a256 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md @@ -81,7 +81,7 @@ Life cycles associated with the retention rule. To construct, see NOTES section for LIFECYCLES properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle[] Parameter Sets: AddRetention Aliases: @@ -127,7 +127,7 @@ Backup Policy Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -160,7 +160,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTagClientObject.md index 2f35af285065..f82c4a6e6869 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTagClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTagClientObject.md @@ -63,7 +63,7 @@ Criterias to be associated with the schedule tag. To construct, see NOTES section for CRITERIA properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria[] Parameter Sets: updateTag Aliases: @@ -94,7 +94,7 @@ Backup Policy Object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -127,7 +127,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTriggerClientObject.md index 84beeff96b06..0d7b7120587c 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTriggerClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyTriggerClientObject.md @@ -49,7 +49,7 @@ Backup Policy object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -97,7 +97,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/DataProtection.Autorest/docs/Find-AzDataProtectionRestorableTimeRange.md index ee896258ea38..41efae7722c7 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Find-AzDataProtectionRestorableTimeRange.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Find-AzDataProtectionRestorableTimeRange.md @@ -209,7 +209,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupFindRestorableTimeRangesResponseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupFindRestorableTimeRangesResponseResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstance.md index 4c0bf323e7fc..706935fbd78b 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstance.md @@ -167,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstancesExtensionRouting.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstancesExtensionRouting.md index 6772301daa6d..2af261d58329 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstancesExtensionRouting.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupInstancesExtensionRouting.md @@ -71,7 +71,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupPolicy.md index e64ef0e1136e..34119e74d41f 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupPolicy.md @@ -167,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md index d57c3303e1f6..816dd9f0cc23 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md @@ -105,9 +105,9 @@ $vault.EncryptionSetting.CmkKeyVaultProperty |fl ``` ```output -CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKekIdentity +CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKekIdentity CmkInfrastructureEncryption : Enabled -CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKeyVaultProperties +CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties State : Enabled IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities @@ -209,7 +209,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionJob.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionJob.md index 1165dbee13df..dafbfdb68989 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionJob.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionJob.md @@ -197,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupJobResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupJobResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperation.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperation.md index 16a88a89ca58..0d942eccc990 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperation.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperation.md @@ -110,7 +110,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IClientDiscoveryValueForSingleApi ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md index 02079d2d4381..58f5506866b9 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md @@ -140,7 +140,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionPolicyTemplate.md index 49528973202c..396c5427e392 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionPolicyTemplate.md @@ -59,7 +59,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionRecoveryPoint.md index a6dcc8211b46..ae8088e2f097 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionRecoveryPoint.md @@ -251,7 +251,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPointResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRecoveryPointResource ### System.Management.Automation.PSObject diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuard.md index 97bab74d26a6..ae76b21ef5e6 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuard.md @@ -154,7 +154,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md index 8691edbe6f52..89168069ce0c 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md @@ -49,8 +49,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardProxyBaseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardProxyBaseResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionSoftDeletedBackupInstance.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionSoftDeletedBackupInstance.md index d03b906b0e94..425425a32e5f 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionSoftDeletedBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionSoftDeletedBackupInstance.md @@ -153,7 +153,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IDeletedBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IDeletedBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md index 866455f3ce98..7e1bde074599 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md @@ -115,11 +115,11 @@ The fifth command initializes the backup instance.ype AzureDatabaseForMySQL to i ### -BackupConfiguration Backup configuration for backup. -Use this parameter to configure protection for AzureKubernetesService,AzureBlob. +Use this parameter to configure protection for AzureKubernetesService, AzureBlob and AzureDataLakeStorage. To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupDatasourceParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupDatasourceParameters Parameter Sets: (All) Aliases: @@ -191,7 +191,7 @@ Accept wildcard characters: False ``` ### -PolicyId -Policy Id to be assiciated to Datasource +Policy Id to be associated to Datasource ```yaml Type: System.String @@ -238,7 +238,7 @@ Accept wildcard characters: False ``` ### -SnapshotResourceGroupId -Sanpshot Resource Group +Snapshot Resource Group ```yaml Type: System.String @@ -289,7 +289,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionRestoreRequest.md index 2603ca581ef8..d0fb74c13743 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionRestoreRequest.md @@ -27,7 +27,7 @@ Initialize-AzDataProtectionRestoreRequest -DatasourceType -Res Initialize-AzDataProtectionRestoreRequest -DatasourceType -ItemLevelRecovery -RestoreLocation -RestoreType -SourceDataStore -TargetResourceId [-ContainersList ] [-PrefixMatch ] [-RecoveryPoint ] - [-RestoreConfiguration ] [-UserAssignedIdentityArmId ] + [-RenameTo ] [-RestoreConfiguration ] [-UserAssignedIdentityArmId ] [-UseSystemAssignedIdentity ] [] ``` @@ -221,11 +221,11 @@ The restore request object is then used to trigger the restore operation. ## PARAMETERS ### -BackupInstance -Backup Instance object to trigger original localtion restore. +Backup Instance object to trigger original location restore. To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR Aliases: @@ -391,6 +391,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RenameTo +Use this parameter to rename container(s) for alternate location ILR. +Input for this parameter is a hashtable where each key is the original container name and each value is the new name for the corresponding container. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: AlternateLocationILR +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RestoreConfiguration Restore configuration for restore. Use this parameter to restore with AzureKubernetesService. @@ -585,7 +601,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupConfigurationClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupConfigurationClientObject.md index 3f64adf560c3..38c5e0ee5a99 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupConfigurationClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupConfigurationClientObject.md @@ -62,7 +62,7 @@ Hook reference to be executed during backup. To construct, see NOTES section for BACKUPHOOKREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupInstance.md index e292e51bd1ca..5f3a9ec82036 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupInstance.md @@ -178,7 +178,7 @@ Backup instance request object which will be used to configure backup To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md index afb0a3305d15..ca32b3ee4838 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md @@ -302,7 +302,7 @@ Policy Request Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -396,7 +396,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupVault.md index 9cae5b099888..d9189e9d686c 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupVault.md @@ -391,7 +391,7 @@ Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. To construct, see NOTES section for STORAGESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IStorageSetting[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IStorageSetting[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTagCriteriaClientObject.md index 5ee76c8b2df5..5861c10df854 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTagCriteriaClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTagCriteriaClientObject.md @@ -161,7 +161,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTriggerScheduleClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTriggerScheduleClientObject.md index f262d7f47d52..96c8d6fef8e5 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTriggerScheduleClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionPolicyTriggerScheduleClientObject.md @@ -64,7 +64,7 @@ Accept wildcard characters: False ``` ### -IntervalType -Freuquency of the backup. +Frequency of the backup. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.BackupFrequency diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md index a42f7772be6a..2fdcd43204ff 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md @@ -69,7 +69,7 @@ Accept wildcard characters: False ``` ### -IdentityType -This parameter is no longer in use and will be depricated +This parameter is no longer in use and will be deprecated ```yaml Type: System.String @@ -196,7 +196,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRestoreConfigurationClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRestoreConfigurationClientObject.md index 66d84bdf60ae..05bedd2243e0 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRestoreConfigurationClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRestoreConfigurationClientObject.md @@ -171,7 +171,7 @@ Namespaces mapping from source namespaces to target namespaces to resolve namesp To construct, see NOTES section for NAMESPACEMAPPING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterRestoreCriteriaNamespaceMappings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterRestoreCriteriaNamespaceMappings Parameter Sets: (All) Aliases: @@ -204,7 +204,7 @@ Resource modifier reference to be executed during restore. To construct, see NOTES section for RESOURCEMODIFIERREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource Parameter Sets: (All) Aliases: @@ -220,7 +220,7 @@ Hook reference to be executed during restore. To construct, see NOTES section for RESTOREHOOKREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRetentionLifeCycleClientObject.md index 725cd3a97cab..ad44eabe0fa0 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRetentionLifeCycleClientObject.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionRetentionLifeCycleClientObject.md @@ -137,7 +137,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionMSIPermission.md b/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionMSIPermission.md index cdbc087baba3..ca755ee87da0 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionMSIPermission.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionMSIPermission.md @@ -124,7 +124,7 @@ Backup instance request object which will be used to configure backup To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource Parameter Sets: SetPermissionsForBackup Aliases: @@ -185,7 +185,7 @@ Restore request object which will be used for restore To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: SetPermissionsForRestore Aliases: diff --git a/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md index 7e73357a66a1..46381f815e2a 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md @@ -37,8 +37,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` @@ -164,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardProxyBaseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardProxyBaseResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/DataProtection.Autorest/docs/Start-AzDataProtectionBackupInstanceRestore.md index fc0dd15b8826..f2a622f8a4ab 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Start-AzDataProtectionBackupInstanceRestore.md @@ -387,7 +387,7 @@ Restore request object to be initialized using Initialize-AzDataProtectionRestor To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: Trigger Aliases: @@ -434,7 +434,7 @@ Gets or sets the restore target information To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IRestoreTargetInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IRestoreTargetInfoBase Parameter Sets: TriggerExpanded Aliases: @@ -588,11 +588,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceReadiness.md b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceReadiness.md index 14b6df78746e..b5526caae99d 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceReadiness.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceReadiness.md @@ -62,7 +62,7 @@ Backup Instance To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstance +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstance Parameter Sets: (All) Aliases: @@ -189,7 +189,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceRestore.md index 8fc1738212b5..44a1672c5eb8 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceRestore.md @@ -124,7 +124,7 @@ Restore request object for which to validate To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: (All) Aliases: @@ -218,7 +218,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceUpdate.md b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceUpdate.md index 6dfc76e9afa0..2318334bade9 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceUpdate.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Test-AzDataProtectionBackupInstanceUpdate.md @@ -63,7 +63,7 @@ Backup Instance To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstance +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstance Parameter Sets: (All) Aliases: @@ -205,7 +205,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md index 8892f6025f20..22359e4a37ee 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md @@ -251,7 +251,7 @@ Accept wildcard characters: False ### -VaultedBackupContainer List of containers to be backed up inside the VaultStore. -Use this parameter for DatasourceType AzureBlob. +Use this parameter for DatasourceType AzureBlob and AzureDataLakeStorage. ```yaml Type: System.String[] @@ -318,7 +318,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index a57121b462f9..713395aaee67 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md @@ -248,7 +248,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md index 7c3c7c49e1ac..ba426808291f 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md @@ -285,7 +285,7 @@ Customer Managed Key details of the resource. To construct, see NOTES section for ENCRYPTIONSETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IEncryptionSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IEncryptionSettings Parameter Sets: UpdateViaIdentityExpanded Aliases: @@ -553,7 +553,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md index 6a248c75c41f..5e98af65f70d 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md @@ -92,7 +92,7 @@ Accept wildcard characters: False ``` ### -IdentityType -This parameter is no longer in use and will be depricated +This parameter is no longer in use and will be deprecated ```yaml Type: System.String @@ -204,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md index 3d118617bf22..15c1326353b4 100644 --- a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md @@ -62,9 +62,9 @@ $vault.EncryptionSetting.CmkKeyVaultProperty |fl ``` ```output -CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKekIdentity +CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKekIdentity CmkInfrastructureEncryption : Enabled -CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKeyVaultProperties +CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties State : Enabled IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities diff --git a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md index ed227027a0f7..36716b9674c1 100644 --- a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md @@ -12,8 +12,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` diff --git a/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md index 5e72c51928e0..15a5f431ddd9 100644 --- a/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md @@ -12,8 +12,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` diff --git a/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 b/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 new file mode 100644 index 000000000000..208609f15c7d --- /dev/null +++ b/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 @@ -0,0 +1,285 @@ +$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' +if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' +} +. ($loadEnvPath) +$TestRecordingFile = Join-Path $PSScriptRoot 'AdlsBlobHardeningScenario.Recording.json' +$currentPath = $PSScriptRoot +while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent +} +. ($mockingPath | Select-Object -First 1).FullName + +Describe 'AdlsBlobHardeningScenario' -Tag 'LiveOnly' { + It 'AdlsBlobVaultedILR' { + $subId = $env.TestAdlsBlobHardeningScenario.SubscriptionId + $resourceGroupName = $env.TestAdlsBlobHardeningScenario.ResourceGroupName + $vaultName = $env.TestAdlsBlobHardeningScenario.VaultName + + $storageAccountName = $env.TestAdlsBlobHardeningScenario.StorageAccountName + $targetStorageAccId = $env.TestAdlsBlobHardeningScenario.TargetStorageAccId + $targetStorageAccountRGName = $env.TestAdlsBlobHardeningScenario.TargetStorageAccountRGName + $targetStorageAccountName = $env.TestAdlsBlobHardeningScenario.TargetStorageAccountName + + $vault = Get-AzDataProtectionBackupVault -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAccountName } + + $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.Name + + $backedUpContainers = $instance.Property.PolicyInfo.PolicyParameter.BackupDatasourceParametersList[0].ContainersList + + # remove containers in target storage account + Set-AzContext -SubscriptionId $subId + $targetStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetStorageAccountRGName -Name $targetStorageAccountName + $targetContainers = Get-AzStorageContainer -Context $targetStorageAccount.Context | Where-Object { $_.Name -match "^con" } + foreach($containerName in $targetContainers.Name){ + Remove-AzStorageContainer -Context $targetStorageAccount.Context -Name $containerName -Confirm:$false -Force + } + + $prefMatch = @{ + $backedUpContainers[0] = @("a", "B") + $backedUpContainers[1]= @("c") + } + + $renameTo = @{ + $backedUpContainers[0] = "con1renamed" + $backedUpContainers[1]= "con2renamed" + } + + # Initialize Restore + $restoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDataLakeStorage -SourceDataStore VaultStore -RestoreLocation $vault.Location -RecoveryPoint $rp[0].Name -ItemLevelRecovery -RestoreType AlternateLocation -TargetResourceId $targetStorageAccId -ContainersList $backedUpContainers[0,1] -PrefixMatch $prefMatch -RenameTo $renameTo + + $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instance.Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -RestoreRequest $restoreReq + $validateRestore.ObjectType | Should be "OperationJobExtendedInfo" + + $restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.BackupInstanceName -Parameter $restoreReq + + $jobid = $restoreJob.JobId.Split("/")[-1] + ($jobid -ne $null) | Should be $true + + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + + ($currentjob.Status -in "InProgress", "Completed") | Should be $true + + # Wait for job completion + Write-Host "Waiting for restore job to complete..." + $jobstatus = "InProgress" + $timeout = 1800 # 30 minutes timeout + $elapsed = 0 + while($jobstatus -eq "InProgress" -and $elapsed -lt $timeout) + { + #Start-TestSleep -Seconds 30 uncomment for PR + Start-Sleep -Seconds 30 + $elapsed += 30 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + $jobstatus = $currentjob.Status + Write-Host "Job Status: $jobstatus (Elapsed: $elapsed seconds)" + } + + # Validate job completed successfully + $jobstatus | Should be "Completed" + + # Validate renamed ILR containers exist in target storage account + Write-Host "Validating restored containers..." + $targetStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetStorageAccountRGName -Name $targetStorageAccountName + $restoredContainers = Get-AzStorageContainer -Context $targetStorageAccount.Context + + $expectedRenamedContainers = $renameTo.Values | Sort-Object + $actualRestoredContainerNames = $restoredContainers.Name | Sort-Object + + Write-Host "Expected renamed containers: $($expectedRenamedContainers -join ', ')" + Write-Host "Actual restored containers: $($actualRestoredContainerNames -join ', ')" + + $expectedRenamedContainers.Count | Should be $actualRestoredContainerNames.Count + + # Check each expected container exists + foreach($expectedName in $expectedRenamedContainers) { + $actualRestoredContainerNames | Should -Contain $expectedName + } + + # Ensure no extra containers (since we deleted all containers upfront, only renamed ones should exist) + foreach($actualName in $actualRestoredContainerNames) { + $expectedRenamedContainers | Should -Contain $actualName + } + Write-Host "Container validation completed successfully." + + # Validate prefix match worked as expected within renamed containers + # Validate prefix matching in renamed containers + Write-Host "Validating prefix matching in renamed containers..." + foreach($originalContainerName in $prefMatch.Keys) { + # Get the renamed container name (string value, not array) + $renamedContainerName = $renameTo[$originalContainerName] + + if(-not $renamedContainerName) { + throw "No rename mapping found for container '$originalContainerName'" + } + + Write-Host "Checking blobs in renamed container: $renamedContainerName (original: $originalContainerName)" + + # Get all blobs in the renamed container + $blobsInContainer = Get-AzStorageBlob -Container $renamedContainerName -Context $targetStorageAccount.Context + + $blobsInContainer.Count | Should -BeGreaterThan 0 + + # Get the expected prefixes for this container + $expectedPrefixes = $prefMatch[$originalContainerName] + + Write-Host "Expected prefixes for container: $($expectedPrefixes -join ', ')" + Write-Host "Found $($blobsInContainer.Count) blobs in container" + + # Validate EVERY blob matches at least one of the expected prefixes + $invalidBlobs = @() + foreach($blob in $blobsInContainer) { + $blobName = $blob.Name + $matchesPrefix = $false + + foreach($prefix in $expectedPrefixes) { + if($blobName.StartsWith($prefix)) { + $matchesPrefix = $true + break + } + } + + if(-not $matchesPrefix) { + $invalidBlobs += $blobName + } + } + + # Fail if any blobs don't match the prefix filter + if($invalidBlobs.Count -gt 0) { + throw "Found $($invalidBlobs.Count) blob(s) that don't match any expected prefix in container '$renamedContainerName': $($invalidBlobs -join ', '). Expected prefixes: $($expectedPrefixes -join ', ')" + } + + Write-Host "All $($blobsInContainer.Count) blobs in container '$renamedContainerName' match expected prefixes" + } + + Write-Host "AdlsBlobVaultedILR test completed successfully - all validations passed!" + } + + It 'ConfigureBackup' -skip { + $subId = $env.TestAdlsBlobHardeningScenario.SubscriptionId + $location = $env.TestAdlsBlobHardeningScenario.Location + $resourceGroupName = $env.TestAdlsBlobHardeningScenario.ResourceGroupName + $vaultName = $env.TestAdlsBlobHardeningScenario.VaultName + $policyName = $env.TestAdlsBlobHardeningScenario.PolicyName + $storageAccountName = $env.TestAdlsBlobHardeningScenario.StorageAccountName + $storageAccId = $env.TestAdlsBlobHardeningScenario.StorageAccId + + $vault = Get-AzDataProtectionBackupVault -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + $pol = Get-AzDataProtectionBackupPolicy -SubscriptionId $subId -VaultName $vaultName -ResourceGroupName $resourceGroupName | Where-Object { $_.Name -match $policyName } + + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAcountName } + + # Remove-BI + if($instance -ne $null){ + Remove-AzDataProtectionBackupInstance -Name $instance[0].Name -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + } + + Start-TestSleep -Seconds 8 + + # new backup config and initialize BI + + $storageAccount = Get-AzStorageAccount -ResourceGroupName $resourceGroupName -Name $storageAccountName + $containers=Get-AzStorageContainer -Context $storageAccount.Context + + $backupConfig = New-AzDataProtectionBackupConfigurationClientObject -DatasourceType AzureDataLakeStorage -VaultedBackupContainer $containers.Name + $backupConfig.ContainersList = $backupConfig.ContainersList[1,3,4] + + $backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDataLakeStorage -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $storageAccId -BackupConfiguration $backupConfig + + # assign permissions and validate + Set-AzDataProtectionMSIPermission -VaultResourceGroup $resourceGroupName -VaultName $vaultName -BackupInstance $backupInstanceClientObject -PermissionsScope ResourceGroup + + $operationResponse = Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName $resourceGroupName -VaultName $vaultName -SubscriptionId $subId -BackupInstance $backupInstanceClientObject.Property -NoWait + $operationId = $operationResponse.Target.Split("/")[-1].Split("?")[0] + + While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $vault.Location -SubscriptionId $subId).Status -eq "Inprogress"){ + Start-TestSleep -Seconds 10 + } + + # backup + $backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName $resourceGroupName -VaultName $vaultName -SubscriptionId $subId -BackupInstance $backupInstanceClientObject + + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAcountName } + + while($instance.Property.CurrentProtectionState -ne "ProtectionConfigured"){ + Start-TestSleep -Seconds 10 + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAcountName } + } + + $instance[0].Name -match $storageAcountName | Should be $true + + # Trigger Backup + $backupJob = Backup-AzDataProtectionBackupInstanceAdhoc -BackupInstanceName $instance.Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -BackupRuleOptionRuleName $pol[0].Property.PolicyRule[-1].Name -TriggerOptionRetentionTagOverride $pol[0].Property.PolicyRule[-1].Trigger.TaggingCriterion[0].TagInfoTagName + + $jobid = $backupJob.JobId.Split("/")[-1] + $jobid -ne $null | Should be $true + + $jobstatus = "InProgress" + while($jobstatus -eq "InProgress") + { + Start-TestSleep -Seconds 10 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + $jobstatus = $currentjob.Status + } + $jobstatus | Should be "Completed" + } + + It 'TriggerRestore' -skip { + # TODO: OLR should throw an error in case of vaulted backups + + $subId = $env.TestAdlsBlobHardeningScenario.SubscriptionId + $crossSubscriptionId = $env.TestAdlsBlobHardeningScenario.CrossSubscriptionId + $location = $env.TestAdlsBlobHardeningScenario.Location + $resourceGroupName = $env.TestAdlsBlobHardeningScenario.ResourceGroupName + $vaultName = $env.TestAdlsBlobHardeningScenario.VaultName + $policyName = $env.TestAdlsBlobHardeningScenario.PolicyName + $storageAccountName = $env.TestAdlsBlobHardeningScenario.StorageAccountName + $storageAccId = $env.TestAdlsBlobHardeningScenario.StorageAccId + $targetStorageAccId = $env.TestAdlsBlobHardeningScenario.TargetStorageAccId + $targetCrossSubStorageAccId = $env.TestAdlsBlobHardeningScenario.TargetCrossSubStorageAccId + $targetStorageAccountName = $env.TestAdlsBlobHardeningScenario.TargetStorageAccountName + $targetStorageAccountRGName = $env.TestAdlsBlobHardeningScenario.TargetStorageAccountRGName + $targetCrossSubStorageAccountName = $env.TestAdlsBlobHardeningScenario.TargetCrossSubStorageAccountName + $targetCrossSubStorageAccountRGName = $env.TestAdlsBlobHardeningScenario.TargetCrossSubStorageAccountRGName + + $vault = Get-AzDataProtectionBackupVault -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAcountName } + $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.Name + + $backedUpContainers = $instance.Property.PolicyInfo.PolicyParameter.BackupDatasourceParametersList[0].ContainersList + + # remove containers in target cross sub storage account + Set-AzContext -SubscriptionId $crossSubscriptionId + $targetCrossSubStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetCrossSubStorageAccountRGName -Name $targetCrossSubStorageAccountName + $targetCrossSubContainers = Get-AzStorageContainer -Context $targetCrossSubStorageAccount.Context | Where-Object { $_.Name -match "con" } + foreach($crossSubContainerName in $targetCrossSubContainers.Name){ + Remove-AzStorageContainer -Context $targetCrossSubStorageAccount.Context -Name $crossSubContainerName -Confirm:$false -Force + } + + # remove containers in target storage account + Set-AzContext -SubscriptionId $subId + $targetStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetStorageAccountRGName -Name $targetStorageAccountName + $targetContainers = Get-AzStorageContainer -Context $targetStorageAccount.Context | Where-Object { $_.Name -match "con" } + foreach($containerName in $targetContainers.Name){ + Remove-AzStorageContainer -Context $targetStorageAccount.Context -Name $containerName -Confirm:$false -Force + } + + # Initialize Restore + $restoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDataLakeStorage -SourceDataStore VaultStore -RestoreLocation $vault.Location -RecoveryPoint $rp[0].Name -ItemLevelRecovery -RestoreType AlternateLocation -TargetResourceId $targetStorageAccId -ContainersList $backedUpContainers[0,1] + + $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instance[0].Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -RestoreRequest $restoreReq + $validateRestore.ObjectType | Should be "OperationJobExtendedInfo" + + $restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.BackupInstanceName -Parameter $restoreReq + + $restoreReqCSR = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDataLakeStorage -SourceDataStore VaultStore -RestoreLocation $vault.Location -RecoveryPoint $rp[0].Name -ItemLevelRecovery -RestoreType AlternateLocation -TargetResourceId $targetCrossSubStorageAccId -ContainersList $backedUpContainers[0,1] + + $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instance[0].Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -RestoreRequest $restoreReqCSR + $validateRestore.ObjectType | Should be "OperationJobExtendedInfo" + + $restoreJobCSR = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.BackupInstanceName -Parameter $restoreReqCSR + } +} diff --git a/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 b/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 index c3a3ca45bd69..5aee8574c79f 100644 --- a/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 +++ b/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 @@ -24,12 +24,12 @@ Describe 'BlobHardeningScenario' -Tag 'LiveOnly' { $vault = Get-AzDataProtectionBackupVault -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName - $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAcountName } + $instance = Get-AzDataProtectionBackupInstance -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName | Where-Object { $_.Name -match $storageAccountName } $rp = Get-AzDataProtectionRecoveryPoint -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.Name $backedUpContainers = $instance.Property.PolicyInfo.PolicyParameter.BackupDatasourceParametersList[0].ContainersList - + # remove containers in target storage account Set-AzContext -SubscriptionId $subId $targetStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetStorageAccountRGName -Name $targetStorageAccountName @@ -39,14 +39,19 @@ Describe 'BlobHardeningScenario' -Tag 'LiveOnly' { } $prefMatch = @{ - $backedUpContainers[0] = @("Su", "PS") - $backedUpContainers[1]= @("Su", "PS") + $backedUpContainers[0] = @("a", "B") + $backedUpContainers[1]= @("c") + } + + $renameTo = @{ + $backedUpContainers[0] = "con1renamed" + $backedUpContainers[1]= "con2renamed" } # Initialize Restore - $restoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureBlob -SourceDataStore VaultStore -RestoreLocation $vault.Location -RecoveryPoint $rp[0].Name -ItemLevelRecovery -RestoreType AlternateLocation -TargetResourceId $targetStorageAccId -ContainersList $backedUpContainers[0,1] -PrefixMatch $prefMatch - - $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instance[0].Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -RestoreRequest $restoreReq + $restoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDataLakeStorage -SourceDataStore VaultStore -RestoreLocation $vault.Location -RecoveryPoint $rp[0].Name -ItemLevelRecovery -RestoreType AlternateLocation -TargetResourceId $targetStorageAccId -ContainersList $backedUpContainers[0,1] -PrefixMatch $prefMatch -RenameTo $renameTo + + $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instance.Name -ResourceGroupName $resourceGroupName -SubscriptionId $subId -VaultName $vaultName -RestoreRequest $restoreReq $validateRestore.ObjectType | Should be "OperationJobExtendedInfo" $restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName -BackupInstanceName $instance.BackupInstanceName -Parameter $restoreReq @@ -57,6 +62,100 @@ Describe 'BlobHardeningScenario' -Tag 'LiveOnly' { $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName ($currentjob.Status -in "InProgress", "Completed") | Should be $true + + # Wait for job completion + Write-Host "Waiting for restore job to complete..." + $jobstatus = "InProgress" + $timeout = 1800 # 30 minutes timeout + $elapsed = 0 + while($jobstatus -eq "InProgress" -and $elapsed -lt $timeout) + { + #Start-TestSleep -Seconds 30 uncomment for PR + Start-Sleep -Seconds 30 + $elapsed += 30 + $currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId $subId -ResourceGroupName $resourceGroupName -VaultName $vaultName + $jobstatus = $currentjob.Status + Write-Host "Job Status: $jobstatus (Elapsed: $elapsed seconds)" + } + + # Validate job completed successfully + $jobstatus | Should be "Completed" + + # Validate renamed ILR containers exist in target storage account + Write-Host "Validating restored containers..." + $targetStorageAccount = Get-AzStorageAccount -ResourceGroupName $targetStorageAccountRGName -Name $targetStorageAccountName + $restoredContainers = Get-AzStorageContainer -Context $targetStorageAccount.Context + + $expectedRenamedContainers = $renameTo.Values | Sort-Object + $actualRestoredContainerNames = $restoredContainers.Name | Sort-Object + + Write-Host "Expected renamed containers: $($expectedRenamedContainers -join ', ')" + Write-Host "Actual restored containers: $($actualRestoredContainerNames -join ', ')" + + $expectedRenamedContainers.Count | Should be $actualRestoredContainerNames.Count + + # Check each expected container exists + foreach($expectedName in $expectedRenamedContainers) { + $actualRestoredContainerNames | Should -Contain $expectedName + } + + # Ensure no extra containers (since we deleted all containers upfront, only renamed ones should exist) + foreach($actualName in $actualRestoredContainerNames) { + $expectedRenamedContainers | Should -Contain $actualName + } + Write-Host "Container validation completed successfully." + + # Validate prefix match worked as expected within renamed containers + # Validate prefix matching in renamed containers + Write-Host "Validating prefix matching in renamed containers..." + foreach($originalContainerName in $prefMatch.Keys) { + # Get the renamed container name (string value, not array) + $renamedContainerName = $renameTo[$originalContainerName] + + if(-not $renamedContainerName) { + throw "No rename mapping found for container '$originalContainerName'" + } + + Write-Host "Checking blobs in renamed container: $renamedContainerName (original: $originalContainerName)" + + # Get all blobs in the renamed container + $blobsInContainer = Get-AzStorageBlob -Container $renamedContainerName -Context $targetStorageAccount.Context + + $blobsInContainer.Count | Should -BeGreaterThan 0 + + # Get the expected prefixes for this container + $expectedPrefixes = $prefMatch[$originalContainerName] + + Write-Host "Expected prefixes for container: $($expectedPrefixes -join ', ')" + Write-Host "Found $($blobsInContainer.Count) blobs in container" + + # Validate EVERY blob matches at least one of the expected prefixes + $invalidBlobs = @() + foreach($blob in $blobsInContainer) { + $blobName = $blob.Name + $matchesPrefix = $false + + foreach($prefix in $expectedPrefixes) { + if($blobName.StartsWith($prefix)) { + $matchesPrefix = $true + break + } + } + + if(-not $matchesPrefix) { + $invalidBlobs += $blobName + } + } + + # Fail if any blobs don't match the prefix filter + if($invalidBlobs.Count -gt 0) { + throw "Found $($invalidBlobs.Count) blob(s) that don't match any expected prefix in container '$renamedContainerName': $($invalidBlobs -join ', '). Expected prefixes: $($expectedPrefixes -join ', ')" + } + + Write-Host "All $($blobsInContainer.Count) blobs in container '$renamedContainerName' match expected prefixes" + } + + Write-Host "BlobVaultedILR test completed successfully - all validations passed!" } It 'ConfigureBackup' -skip { diff --git a/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json index 8a61522407c5..68b735a16cb9 100644 --- a/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json @@ -1156,10 +1156,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupPolicy+[NoContext]+BlobHardeningHybridPolicy+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/blob-eus-pstest-rg/providers/Microsoft.DataProtection/backupVaults/blob-eus-pstest-vault/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BaseBackupPolicyResource?api-version=2025-01-01+3": { + "New-AzDataProtectionBackupPolicy+[NoContext]+BlobHardeningHybridPolicy+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/blob-eus-pstest-rg/providers/Microsoft.DataProtection/backupVaults/blob-eus-pstest-vault/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BaseBackupPolicyResource?api-version=2025-01-01+3": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/blob-eus-pstest-rg/providers/Microsoft.DataProtection/backupVaults/blob-eus-pstest-vault/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BaseBackupPolicyResource?api-version=2025-01-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/blob-eus-pstest-rg/providers/Microsoft.DataProtection/backupVaults/blob-eus-pstest-vault/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BaseBackupPolicyResource?api-version=2025-01-01", "Content": null, "isContentBase64": false, "Headers": { diff --git a/src/DataProtection/DataProtection.Autorest/test/Update-AzDataProtectionBackupInstanceAssociatedPolicy.Tests.ps1 b/src/DataProtection/DataProtection.Autorest/test/Update-AzDataProtectionBackupInstanceAssociatedPolicy.Tests.ps1 index dd7724a50ec5..daf958526d88 100644 --- a/src/DataProtection/DataProtection.Autorest/test/Update-AzDataProtectionBackupInstanceAssociatedPolicy.Tests.ps1 +++ b/src/DataProtection/DataProtection.Autorest/test/Update-AzDataProtectionBackupInstanceAssociatedPolicy.Tests.ps1 @@ -34,7 +34,7 @@ Describe 'Update-AzDataProtectionBackupInstanceAssociatedPolicy' { $instance.Property.IdentityDetail.UseSystemAssignedIdentity | Should be $false $instance.Property.IdentityDetail.UserAssignedIdentityArmUrl -eq $userAssignedIdentityARMId | Should be $true - $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IdentityDetails]::new() + $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IdentityDetails]::new() $instance.Property.IdentityDetail.UseSystemAssignedIdentity = $true Start-Sleep -Seconds 20 diff --git a/src/DataProtection/DataProtection.sln b/src/DataProtection/DataProtection.sln index ca25f091939c..8c927032ba24 100644 --- a/src/DataProtection/DataProtection.sln +++ b/src/DataProtection/DataProtection.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataProtection", "DataProte EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DataProtection.Autorest", "DataProtection.Autorest", "{F40C2F0C-1625-C7F2-86E6-E539334694A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "..\..\generated\DataProtection\DataProtection.Autorest\Az.DataProtection.csproj", "{F276115D-5CE5-4D20-91C1-80769826166D}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "..\..\generated\DataProtection\DataProtection.Autorest\Az.DataProtection.csproj", "{FD115E66-6515-4632-9270-D594131F06E8}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {3710851E-1CE1-45F7-8E14-B07092F08E8D}.Release|x64.Build.0 = Release|Any CPU {3710851E-1CE1-45F7-8E14-B07092F08E8D}.Release|x86.ActiveCfg = Release|Any CPU {3710851E-1CE1-45F7-8E14-B07092F08E8D}.Release|x86.Build.0 = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|x64.ActiveCfg = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|x64.Build.0 = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|x86.ActiveCfg = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Debug|x86.Build.0 = Debug|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|Any CPU.Build.0 = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|x64.ActiveCfg = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|x64.Build.0 = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|x86.ActiveCfg = Release|Any CPU - {F276115D-5CE5-4D20-91C1-80769826166D}.Release|x86.Build.0 = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|x64.ActiveCfg = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|x64.Build.0 = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|x86.ActiveCfg = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Debug|x86.Build.0 = Debug|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|Any CPU.Build.0 = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|x64.ActiveCfg = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|x64.Build.0 = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|x86.ActiveCfg = Release|Any CPU + {FD115E66-6515-4632-9270-D594131F06E8}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {E0972917-46F4-4579-8821-51710A92531C} = {EE974D4B-93C7-4914-A6C2-432E7B720B21} {51170684-9F74-4C7B-9B0E-B4922FCFA75C} = {EE974D4B-93C7-4914-A6C2-432E7B720B21} {FDC7380E-88A2-4EB2-BEFD-3CF2E6298F9D} = {EE974D4B-93C7-4914-A6C2-432E7B720B21} - {F276115D-5CE5-4D20-91C1-80769826166D} = {F40C2F0C-1625-C7F2-86E6-E539334694A7} + {FD115E66-6515-4632-9270-D594131F06E8} = {F40C2F0C-1625-C7F2-86E6-E539334694A7} EndGlobalSection EndGlobal diff --git a/src/DataProtection/DataProtection/Az.DataProtection.psd1 b/src/DataProtection/DataProtection/Az.DataProtection.psd1 index 450faaaf950a..1ae0400d561d 100644 --- a/src/DataProtection/DataProtection/Az.DataProtection.psd1 +++ b/src/DataProtection/DataProtection/Az.DataProtection.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/30/2025 +# Generated on: 9/23/2025 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'DataProtection.Autorest/bin/Az.DataProtection.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'DataProtection.Autorest/Az.DataProtection.format.ps1xml' @@ -146,7 +146,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','DataProtection' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DataProtection' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -172,7 +172,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md index 9dcadbc3b980..e49b8ed5ab68 100644 --- a/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md +++ b/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md @@ -254,7 +254,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md index 255bb9f20dc6..1b840f128699 100644 --- a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md +++ b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md @@ -82,7 +82,7 @@ Life cycles associated with the retention rule. To construct, see NOTES section for LIFECYCLES properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle[] Parameter Sets: AddRetention Aliases: @@ -129,7 +129,7 @@ Backup Policy Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -162,7 +162,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md index ea33a585f0e3..36d3912ddf33 100644 --- a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md +++ b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTagClientObject.md @@ -63,7 +63,7 @@ Criterias to be associated with the schedule tag. To construct, see NOTES section for CRITERIA properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria[] Parameter Sets: updateTag Aliases: @@ -95,7 +95,7 @@ Backup Policy Object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -128,7 +128,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md index b7603e7605d4..742788875c65 100644 --- a/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md +++ b/src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyTriggerClientObject.md @@ -50,7 +50,7 @@ Backup Policy object. To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -98,7 +98,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md b/src/DataProtection/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md index 38bf5283c7c0..8002f7039135 100644 --- a/src/DataProtection/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md +++ b/src/DataProtection/DataProtection/help/Find-AzDataProtectionRestorableTimeRange.md @@ -209,7 +209,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupFindRestorableTimeRangesResponseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupFindRestorableTimeRangesResponseResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstance.md index 844b94e0daaf..b48c6408ae1a 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstance.md @@ -167,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstancesExtensionRouting.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstancesExtensionRouting.md index 8b327e8e8761..89e04c93d003 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstancesExtensionRouting.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupInstancesExtensionRouting.md @@ -71,7 +71,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupPolicy.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupPolicy.md index 219587185910..c45a267e3959 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupPolicy.md @@ -167,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md index 753be2e080c9..3b9324ea4345 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md @@ -106,9 +106,9 @@ $vault.EncryptionSetting.CmkKeyVaultProperty |fl ``` ```output -CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKekIdentity +CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKekIdentity CmkInfrastructureEncryption : Enabled -CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.CmkKeyVaultProperties +CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties State : Enabled IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities @@ -210,7 +210,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionJob.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionJob.md index 280f69bd0a92..91c5ec2f8875 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionJob.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionJob.md @@ -197,7 +197,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupJobResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupJobResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperation.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperation.md index ef1b5f6be91e..d41cecd5be8b 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperation.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperation.md @@ -111,7 +111,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IClientDiscoveryValueForSingleApi ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md index 284cc007a254..a1f95ce55156 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md @@ -140,7 +140,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md index 8828d778240e..a50c67f68c43 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md @@ -45,7 +45,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named @@ -61,7 +61,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md index aec1faa1c172..f474a48f972f 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionRecoveryPoint.md @@ -288,7 +288,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRecoveryPointResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRecoveryPointResource ### System.Management.Automation.PSObject diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuard.md index 8bfa1a4e3a8a..a65b5bd1009e 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuard.md @@ -154,7 +154,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md index 7923dc89d9b1..a0c18c07cf2d 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md @@ -49,8 +49,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardProxyBaseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardProxyBaseResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionSoftDeletedBackupInstance.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionSoftDeletedBackupInstance.md index ba1c7c9ce00a..78b5e637d347 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionSoftDeletedBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionSoftDeletedBackupInstance.md @@ -154,7 +154,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IDeletedBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IDeletedBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md index 710c8706ae57..cf1102e144dd 100644 --- a/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md @@ -115,11 +115,11 @@ The fifth command initializes the backup instance.ype AzureDatabaseForMySQL to i ### -BackupConfiguration Backup configuration for backup. -Use this parameter to configure protection for AzureKubernetesService,AzureBlob. +Use this parameter to configure protection for AzureKubernetesService, AzureBlob and AzureDataLakeStorage. To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupDatasourceParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupDatasourceParameters Parameter Sets: (All) Aliases: @@ -167,7 +167,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named @@ -291,7 +291,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md b/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md index cd0b305e71d1..100920e337c6 100644 --- a/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md +++ b/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionRestoreRequest.md @@ -28,7 +28,7 @@ Initialize-AzDataProtectionRestoreRequest -DatasourceType -Sou -RestoreLocation -RestoreType -TargetResourceId [-RecoveryPoint ] [-RestoreConfiguration ] [-UseSystemAssignedIdentity ] [-UserAssignedIdentityArmId ] [-ItemLevelRecovery] [-ContainersList ] - [-PrefixMatch ] [] + [-PrefixMatch ] [-RenameTo ] [] ``` ### OriginalLocationFullRecovery @@ -225,7 +225,7 @@ Backup Instance object to trigger original location restore. To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.BackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR Aliases: @@ -258,7 +258,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named @@ -392,6 +392,22 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RenameTo +Use this parameter to rename container(s) for alternate location ILR. +Input for this parameter is a hashtable where each key is the original container name and each value is the new name for the corresponding container. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: AlternateLocationILR +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -RestoreConfiguration Restore configuration for restore. Use this parameter to restore with AzureKubernetesService. @@ -589,7 +605,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## NOTES diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupConfigurationClientObject.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupConfigurationClientObject.md index 4fd97bfe9f91..6e8d10e086f0 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupConfigurationClientObject.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupConfigurationClientObject.md @@ -62,7 +62,7 @@ Hook reference to be executed during backup. To construct, see NOTES section for BACKUPHOOKREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[] Parameter Sets: (All) Aliases: @@ -80,7 +80,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md index 6be4aafb39bc..bb97f90955e0 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md @@ -178,7 +178,7 @@ Backup instance request object which will be used to configure backup To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md index 31bc5d127061..acab8cb3a9f0 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md @@ -301,7 +301,7 @@ Policy Request Object To construct, see NOTES section for POLICY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupPolicy +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy Parameter Sets: (All) Aliases: @@ -395,7 +395,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBaseBackupPolicyResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBaseBackupPolicyResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupVault.md index 16e0f173abf8..cdb3f5ace885 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupVault.md @@ -387,7 +387,7 @@ Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create. To construct, see NOTES section for STORAGESETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IStorageSetting[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IStorageSetting[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md index d2edbbb795e5..b79b433895df 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionPolicyTagCriteriaClientObject.md @@ -167,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionResourceGuard.md index 66eca2f2ac8f..0f797ed00d20 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionResourceGuard.md @@ -195,7 +195,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md index 6589fd2fd9d3..bc91e3187ae8 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md @@ -67,7 +67,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named @@ -172,7 +172,7 @@ Namespaces mapping from source namespaces to target namespaces to resolve namesp To construct, see NOTES section for NAMESPACEMAPPING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.KubernetesClusterRestoreCriteriaNamespaceMappings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterRestoreCriteriaNamespaceMappings Parameter Sets: (All) Aliases: @@ -205,7 +205,7 @@ Resource modifier reference to be executed during restore. To construct, see NOTES section for RESOURCEMODIFIERREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource Parameter Sets: (All) Aliases: @@ -221,7 +221,7 @@ Hook reference to be executed during restore. To construct, see NOTES section for RESTOREHOOKREFERENCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.NamespacedNameResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md index d7baf566e06f..42ef15a5cabf 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionRetentionLifeCycleClientObject.md @@ -142,7 +142,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/DataProtection/help/Search-AzDataProtectionBackupInstanceInAzGraph.md b/src/DataProtection/DataProtection/help/Search-AzDataProtectionBackupInstanceInAzGraph.md index 76f4974f1ef9..8e4fd2b5d750 100644 --- a/src/DataProtection/DataProtection/help/Search-AzDataProtectionBackupInstanceInAzGraph.md +++ b/src/DataProtection/DataProtection/help/Search-AzDataProtectionBackupInstanceInAzGraph.md @@ -82,7 +82,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named diff --git a/src/DataProtection/DataProtection/help/Search-AzDataProtectionJobInAzGraph.md b/src/DataProtection/DataProtection/help/Search-AzDataProtectionJobInAzGraph.md index 436225b90748..1c770969c3c6 100644 --- a/src/DataProtection/DataProtection/help/Search-AzDataProtectionJobInAzGraph.md +++ b/src/DataProtection/DataProtection/help/Search-AzDataProtectionJobInAzGraph.md @@ -65,7 +65,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: (All) Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: True Position: Named diff --git a/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md b/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md index 2cf8e7df52ae..cb28e548e38a 100644 --- a/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md +++ b/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md @@ -122,7 +122,7 @@ Backup instance request object which will be used to configure backup To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource Parameter Sets: SetPermissionsForBackup Aliases: @@ -140,7 +140,7 @@ Datasource Type Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes Parameter Sets: SetPermissionsForRestore Aliases: -Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL +Accepted values: AzureDisk, AzureBlob, AzureDatabaseForPostgreSQL, AzureDataLakeStorage, AzureKubernetesService, AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL Required: False Position: Named @@ -184,7 +184,7 @@ Restore request object which will be used for restore To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: SetPermissionsForRestore Aliases: diff --git a/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md index 29d81488b8ca..d7c5d6facffe 100644 --- a/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md @@ -37,8 +37,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z Name : DppResourceGuardProxy ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard s/mua-pstest-resguard -ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.ResourceGuardOperationDetail} +ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ResourceGuardOperationDetail} SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies ``` @@ -164,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardProxyBaseResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardProxyBaseResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md index 1c126e3cf040..7f51b49825f9 100644 --- a/src/DataProtection/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/DataProtection/help/Start-AzDataProtectionBackupInstanceRestore.md @@ -381,7 +381,7 @@ Restore request object to be initialized using Initialize-AzDataProtectionRestor To construct, see NOTES section for PARAMETER properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: Trigger Aliases: @@ -428,7 +428,7 @@ Gets or sets the restore target information To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IRestoreTargetInfoBase +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IRestoreTargetInfoBase Parameter Sets: TriggerExpanded Aliases: @@ -582,11 +582,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md index 364143125a5f..a85456716829 100644 --- a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md +++ b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceReadiness.md @@ -62,7 +62,7 @@ Backup Instance To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstance +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstance Parameter Sets: (All) Aliases: @@ -189,7 +189,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md index 60844e3ef1d7..cc30ae20e22d 100644 --- a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md +++ b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceRestore.md @@ -122,7 +122,7 @@ Restore request object for which to validate To construct, see NOTES section for RESTOREREQUEST properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IAzureBackupRestoreRequest +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest Parameter Sets: (All) Aliases: @@ -216,7 +216,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceUpdate.md b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceUpdate.md index bdc814f43697..1c050ced0f77 100644 --- a/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceUpdate.md +++ b/src/DataProtection/DataProtection/help/Test-AzDataProtectionBackupInstanceUpdate.md @@ -63,7 +63,7 @@ Backup Instance To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstance +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstance Parameter Sets: (All) Aliases: @@ -205,7 +205,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IOperationJobExtendedInfo +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IOperationJobExtendedInfo ## NOTES diff --git a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md index b952739d854c..e943e5ce144c 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md @@ -249,7 +249,7 @@ Accept wildcard characters: False ### -VaultedBackupContainer List of containers to be backed up inside the VaultStore. -Use this parameter for DatasourceType AzureBlob. +Use this parameter for DatasourceType AzureBlob and AzureDataLakeStorage. ```yaml Type: System.String[] @@ -316,7 +316,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md index d3a11f550b03..4229350b619f 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstanceAssociatedPolicy.md @@ -246,7 +246,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupInstanceResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md index 11048b2921be..cb0ca947be5d 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md @@ -286,7 +286,7 @@ Customer Managed Key details of the resource. To construct, see NOTES section for ENCRYPTIONSETTING properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IEncryptionSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IEncryptionSettings Parameter Sets: UpdateViaIdentityExpanded Aliases: @@ -554,7 +554,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IBackupVaultResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupVaultResource ## NOTES diff --git a/src/DataProtection/DataProtection/help/Update-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection/help/Update-AzDataProtectionResourceGuard.md index b6c059fd4cfd..535ca07d7111 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionResourceGuard.md @@ -202,7 +202,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api202501.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES