From 2f5f26dbe90807d74940f098e39c12eb9aa54d44 Mon Sep 17 00:00:00 2001 From: ianna1-admin Date: Tue, 18 Nov 2025 20:49:14 -0600 Subject: [PATCH 1/3] update api version from 2025-02-01 to 2025-07-01 --- .../DataProtection.Autorest/README.md | 34 ++++++++++++------- ...zDataProtectionBackupInstanceInAzGraph.ps1 | 2 +- ...h-AzDataProtectionBackupVaultInAzGraph.ps1 | 2 +- .../Search-AzDataProtectionJobInAzGraph.ps1 | 2 +- .../New-AzDataProtectionResourceGuard.ps1 | 2 +- .../Update-AzDataProtectionResourceGuard.ps1 | 2 +- ...tialize-AzDataProtectionBackupInstance.ps1 | 16 ++++----- ...tectionBackupConfigurationClientObject.ps1 | 8 ++--- .../New-AzDataProtectionBackupInstance.ps1 | 2 +- ...DataProtectionBackupInstanceProtection.ps1 | 2 +- ...d-AzDataProtectionBackupInstanceBackup.ps1 | 2 +- .../Update-AzDataProtectionBackupInstance.ps1 | 8 ++--- ...otectionBackupInstanceAssociatedPolicy.ps1 | 2 +- .../Platform/Job/Get-AzDataProtectionJob.ps1 | 2 +- ...tialize-AzDataProtectionRestoreRequest.ps1 | 28 +++++++-------- ...ectionRestoreConfigurationClientObject.ps1 | 10 +++--- ...-AzDataProtectionBackupInstanceRestore.ps1 | 10 +++--- ...-AzDataProtectionBackupInstanceRestore.ps1 | 10 +++--- .../Vault/New-AzDataProtectionBackupVault.ps1 | 32 +++++++++++++---- ...tectionBackupVaultStorageSettingObject.ps1 | 2 +- .../Set-AzDataProtectionMSIPermission.ps1 | 4 +-- .../Update-AzDataProtectionBackupVault.ps1 | 8 ++--- ...tectionPolicyRetentionRuleClientObject.ps1 | 10 +++--- ...-AzDataProtectionPolicyTagClientObject.ps1 | 8 ++--- ...ataProtectionPolicyTriggerClientObject.ps1 | 4 +-- .../Get-AzDataProtectionPolicyTemplate.ps1 | 4 +-- .../New-AzDataProtectionBackupPolicy.ps1 | 6 ++-- ...rotectionPolicyTagCriteriaClientObject.ps1 | 8 ++--- ...otectionRetentionLifeCycleClientObject.ps1 | 6 ++-- .../custom/Helpers/CommonHelpers.ps1 | 6 ++-- .../custom/Models/BackupInstanceResource.cs | 2 +- ...zDataProtectionBackupPolicy.Recording.json | 4 +-- ...onBackupInstanceAssociatedPolicy.Tests.ps1 | 2 +- 33 files changed, 139 insertions(+), 111 deletions(-) diff --git a/src/DataProtection/DataProtection.Autorest/README.md b/src/DataProtection/DataProtection.Autorest/README.md index ccc15afae685..30a2c97ce4af 100644 --- a/src/DataProtection/DataProtection.Autorest/README.md +++ b/src/DataProtection/DataProtection.Autorest/README.md @@ -35,13 +35,22 @@ commit: ebdacd9571bc8a5faad5b8d418c70c3b6b7c2965 require: - $(this-folder)/../../readme.azure.noprofile.md input-file: - - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/DataProtection/stable/2025-02-01/dataprotection.json + - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/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: "@autorest/powershell": "3.x" directive: + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}"].put + transform: delete $["x-ms-long-running-operation-options"] + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}"].patch + transform: delete $["x-ms-long-running-operation-options"] + - from: swagger-document + where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].put + transform: delete $["x-ms-long-running-operation-options"] - from: swagger-document where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete transform: $["description"] = "Delete a backupInstances" @@ -322,35 +331,35 @@ directive: - where: verb: Test subject: BackupInstance - variant: ^Validate2$|^ValidateExpanded2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$ + variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$ set: subject: BackupInstanceRestore - where: verb: Test subject: BackupInstance - variant: ^Validate$|^ValidateExpanded$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$ + variant: ^Validate2$|^ValidateExpanded2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$ set: subject: BackupInstanceReadiness - where: verb: Test subject: BackupInstance - variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$ + variant: ^Validate$|^ValidateExpanded$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$ set: subject: BackupInstanceUpdate - where: verb: Test subject: BackupInstanceUpdate - variant: ^Validate1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$ + variant: ^Validate$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$ hide: true - where: verb: Test subject: BackupInstanceReadiness - variant: ^Validate$|^ValidateViaIdentity$|^ValidateViaIdentityExpanded$ + variant: ^Validate2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$ hide: true - where: verb: Test subject: BackupInstanceRestore - variant: ^Validate2$|^ValidateExpanded2$|^ValidateViaIdentity2$|^ValidateViaIdentityExpanded2$ + variant: ^Validate1$|^ValidateExpanded1$|^ValidateViaIdentity1$|^ValidateViaIdentityExpanded1$ hide: true - where: verb: Test @@ -449,6 +458,7 @@ directive: - IdentityType - no-inline: - BackupInstance + - DppIdentityDetails - CrossRegionRestoreDetails - CrossRegionRestoreRequestObject - DeletionInfo @@ -467,19 +477,19 @@ directive: - EncryptionSettings - from: source-file-csharp where: $ - transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.INamespacedNameResource ResourceModifierReference', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 c039d280b7ed..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.Api20250201.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 a002f2d8099c..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.Api20250201.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 53c3e3549d75..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.Api20250201.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 3911a0abdb9d..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.Api20250201.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 84b8043a19f9..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.Api20250201.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 2592a9b3182c..eadf2a439509 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.Api20250201.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')] @@ -41,7 +41,7 @@ ${FriendlyName}, [Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService, AzureBlob, AzureDataLakeStorage.')] - [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.IBackupDatasourceParameters] + [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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 93f90402b791..5e928c4f025b 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 @@ -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.Api20250201.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.Api20250201.KubernetesClusterBackupDatasourceParameters]::new() + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.KubernetesClusterBackupDatasourceParameters]::new() $dataSourceParam.ObjectType = "KubernetesClusterBackupDatasourceParameters" $dataSourceParam.ExcludedResourceType = $ExcludedResourceType @@ -99,11 +99,11 @@ function New-AzDataProtectionBackupConfigurationClientObject{ if($DatasourceType.ToString() -eq "AzureBlob" -or $DatasourceType.ToString() -eq "AzureDataLakeStorage"){ $dataSourceParam = $null if($DatasourceType.ToString() -eq "AzureBlob"){ - $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.BlobBackupDatasourceParameters]::new() + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BlobBackupDatasourceParameters]::new() $dataSourceParam.ObjectType = "BlobBackupDatasourceParameters" } elseif($DatasourceType.ToString() -eq "AzureDataLakeStorage"){ - $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.AdlsBlobBackupDatasourceParameters]::new() + $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AdlsBlobBackupDatasourceParameters]::new() $dataSourceParam.ObjectType = "AdlsBlobBackupDatasourceParameters" } 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 477723fb9611..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.Api20250201.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 08fd757e297f..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.Api20250201.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 b41b10928192..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.Api20250201.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 60e9e4fa513f..917f45dd0ea5 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.Api20250201.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')] @@ -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.Api20250201.IdentityDetails]::new() + $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IdentityDetails]::new() $instance.Property.IdentityDetail.UseSystemAssignedIdentity = $UseSystemAssignedIdentity if ($hasUserAssignedIdentityArmId) { @@ -154,11 +154,11 @@ function Update-AzDataProtectionBackupInstance } elseif($datasourceParam -eq $null){ if ($DatasourceType -eq "AzureBlob"){ - $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.BlobBackupDatasourceParameters]::new() + $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BlobBackupDatasourceParameters]::new() $backupConfiguration.ObjectType = "BlobBackupDatasourceParameters" } elseif ($DatasourceType -eq "AzureDataLakeStorage"){ - $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.AdlsBlobBackupDatasourceParameters]::new() + $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AdlsBlobBackupDatasourceParameters]::new() $backupConfiguration.ObjectType = "AdlsBlobBackupDatasourceParameters" } $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 a356eaaacd0f..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.Api20250201.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 a3fdb19b1f60..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.Api20250201.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 cf35489f33aa..99487f2facac 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.Api20250201.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.Api20250201.BackupInstanceResource] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource] ${BackupInstance}, # this is applicable to all workloads wherever ALR supported. @@ -172,7 +172,7 @@ Write-Debug -Message $RecoveryPoint if($PSBoundParameters.ContainsKey("RehydrationPriority")){ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.AzureBackupRestoreWithRehydrationRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRestoreWithRehydrationRequest]::new() $restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest" $restoreRequest.RehydrationPriority = $RehydrationPriority if($PSBoundParameters.ContainsKey("RehydrationDuration")){ @@ -183,7 +183,7 @@ } } else{ - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.AzureBackupRecoveryPointBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRecoveryPointBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest" } $restoreRequest.RecoveryPointId = $RecoveryPoint @@ -193,7 +193,7 @@ { $utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z") Write-Debug -Message $utcTime - $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.AzureBackupRecoveryTimeBasedRestoreRequest]::new() + $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.AzureBackupRecoveryTimeBasedRestoreRequest]::new() $restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest" $restoreRequest.RecoveryPointTime = $utcTime $restoreMode = "PointInTimeBased" @@ -227,7 +227,7 @@ if($RestoreType -eq "RestoreAsFiles") { - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 +262,11 @@ { # RestoreTargetInfo for OLR ALR Full recovery if($DatasourceType -ne "AzureKubernetesService"){ - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemLevelRestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" $restoreCriteriaList = @() @@ -286,7 +286,7 @@ else { # ILR: ItemLevelRestoreTargetInfo - $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.ItemLevelRestoreTargetInfo]::new() + $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemLevelRestoreTargetInfo]::new() $restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo" $restoreCriteriaList = @() @@ -298,7 +298,7 @@ $hasPrefixMatch = $PSBoundParameters.Remove("PrefixMatch") for($i = 0; $i -lt $ContainersList.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.ItemPathBasedRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ItemPathBasedRestoreCriteria]::new() $restoreCriteria.ObjectType = "ItemPathBasedRestoreCriteria" $restoreCriteria.ItemPath = $ContainersList[$i] @@ -319,7 +319,7 @@ elseif($ContainersList.length -gt 0){ for($i = 0; $i -lt $ContainersList.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $ContainersList[$i] @@ -338,7 +338,7 @@ for($i = 0; $i -lt $FromPrefixPattern.length; $i++){ - $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.RangeBasedItemLevelRestoreCriteria]::new() + $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.RangeBasedItemLevelRestoreCriteria]::new() $restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria" $restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i] @@ -413,9 +413,9 @@ $errormsg = "Please input SecretStoreType" throw $errormsg } - $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.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 4243a53c8666..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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 ae896465c20f..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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 38db4b7be469..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.Api20250201.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.Api20250201.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.Api20250201.ValidateCrossRegionRestoreRequestObject]::new() + $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ValidateCrossRegionRestoreRequestObject]::new() $Parameter.RestoreRequestObject = $RestoreRequest - $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.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 c7c10130def8..60c28563fc6b 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.Api20250201.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.')] @@ -144,11 +144,28 @@ process { - if($PSBoundParameters.ContainsKey("IdentityType") -eq $false) + $identityTypeValue = "SystemAssigned" + if ($PSBoundParameters.ContainsKey("IdentityType")) { - $null = $PSBoundParameters.Add("IdentityType", "SystemAssigned") + $identityTypeValue = $PSBoundParameters["IdentityType"] + $null = $PSBoundParameters.Remove("IdentityType") + } + else + { + Write-Host "[Ianna] - we have added the identity type" + } + + $identityDetails = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.DppIdentityDetails]::new() + $identityDetails.Type = $identityTypeValue + + if ($PSBoundParameters.ContainsKey("IdentityUserAssignedIdentity")) + { + $identityDetails.UserAssignedIdentity = $IdentityUserAssignedIdentity + $null = $PSBoundParameters.Remove("IdentityUserAssignedIdentity") } + $PSBoundParameters["Identity"] = $identityDetails + $hasCmkEncryptionState = $PSBoundParameters.Remove("CmkEncryptionState") $hasCmkIdentityType = $PSBoundParameters.Remove("CmkIdentityType") $hasCmkUserAssignedIdentityId = $PSBoundParameters.Remove("CmkUserAssignedIdentityId") @@ -156,21 +173,22 @@ $hasCmkInfrastructureEncryption = $PSBoundParameters.Remove("CmkInfrastructureEncryption") if (-not $hasCmkEncryptionState -and -not $hasCmkIdentityType -and -not $hasCmkUserAssignedIdentityId -and -not $hasCmkEncryptionKeyUri) { + Write-Host "Entering Az.DataProtection.Internal\New-AzDataProtectionBackupVault line 160" Az.DataProtection.Internal\New-AzDataProtectionBackupVault @PSBoundParameters return } - $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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.Api20250201.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.Api20250201.CmkKeyVaultProperties]::new() + $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.CmkKeyVaultProperties]::new() $encryptionSettings.CmkKeyVaultProperty.KeyUri = $CmkEncryptionKeyUri $PSBoundParameters.Add("EncryptionSetting", $encryptionSettings) - + Write-Host "Entering Az.DataProtection.Internal\New-AzDataProtectionBackupVault line 175" Az.DataProtection.Internal\New-AzDataProtectionBackupVault @PSBoundParameters } } \ No newline at end of file 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 5c2f2c66aa2d..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.Api20250201.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 25d92336b368..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.Api20250201.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.Api20250201.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 d083a6840da7..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.Api20250201.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.Api20250201.EncryptionSettings]::new() - $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.CmkKekIdentity]::new() - $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 2389fa0d4d78..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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 73059e44979a..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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 02ac4b5ed3a2..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.Api20250201.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.Api20250201.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 9fcfdb2f2fe3..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.Api20250201.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.Api20250201.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 feff01baefae..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.Api20250201.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.Api20250201.IBackupPolicy] + [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupPolicy] ${Policy}, [Parameter()] @@ -114,7 +114,7 @@ $index += 1 } - $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 97efb21c7b8a..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.Api20250201.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.Api20250201.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.Api20250201.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.Api20250201.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 05e2a5c8a1c9..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.Api20250201.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.Api20250201.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.Api20250201.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/Helpers/CommonHelpers.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 index 1e559d9c690a..47bf58745e73 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.Api20250201.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.Api20250201.DatasourceSet]::new() + $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.DatasourceSet]::new() $DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type $DataSourceSetInfo.ObjectType = "DatasourceSet" $DataSourceSetInfo.ResourceLocation = $DatasourceInfo.ResourceLocation @@ -69,7 +69,7 @@ function GetDatasourceInfo process { $manifest = LoadManifest -DatasourceType $DatasourceType.ToString() - $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 5f88429c1a4a..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.Api20250201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701 { public partial class BackupInstanceResource { diff --git a/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json b/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json index 8e817d666917..8c9279591627 100644 --- a/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json +++ b/src/DataProtection/DataProtection.Autorest/test/New-AzDataProtectionBackupPolicy.Recording.json @@ -1113,10 +1113,10 @@ "isContentBase64": false } }, - "New-AzDataProtectionBackupPolicy+[NoContext]+BlobHardeningHybridPolicy+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.DataProtection/backupVaults/dataprotectionpstest-bv/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.BaseBackupPolicyResource?api-version=2025-02-01+4": { + "New-AzDataProtectionBackupPolicy+[NoContext]+BlobHardeningHybridPolicy+$DELETE+https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.DataProtection/backupVaults/dataprotectionpstest-bv/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BaseBackupPolicyResource?api-version=2025-02-01+4": { "Request": { "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.DataProtection/backupVaults/dataprotectionpstest-bv/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.BaseBackupPolicyResource?api-version=2025-02-01", + "RequestUri": "https://management.azure.com/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.DataProtection/backupVaults/dataprotectionpstest-bv/backupPolicies/Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BaseBackupPolicyResource?api-version=2025-02-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 f5b5f30bf3a2..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.Api20250201.IdentityDetails]::new() + $instance.Property.IdentityDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IdentityDetails]::new() $instance.Property.IdentityDetail.UseSystemAssignedIdentity = $true Start-Sleep -Seconds 20 From 9e76c07f07eaaa45bd3c95bf30f5519d154db90a Mon Sep 17 00:00:00 2001 From: ianna1-admin Date: Tue, 18 Nov 2025 21:00:41 -0600 Subject: [PATCH 2/3] add rename item level restore container feature + corresponding tests (blob/adls) --- ...tialize-AzDataProtectionRestoreRequest.ps1 | 18 +++- .../test/AdlsBlobHardeningScenario.Tests.ps1 | 84 ++++++++++++++++++- .../test/BlobHardeningScenario.Tests.ps1 | 81 +++++++++++++++++- 3 files changed, 178 insertions(+), 5 deletions(-) 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 99487f2facac..37bf73f378ae 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 @@ -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[]] @@ -296,6 +300,7 @@ 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.Api20250701.ItemPathBasedRestoreCriteria]::new() @@ -311,7 +316,18 @@ } $restoreCriteria.SubItemPathPrefix = $pathPrefix } - + + if($manifest.renameContainersEnabled -eq $true -and $hasRenameTo){ + $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) } diff --git a/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 b/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 index c70b88befee3..79513f9ff6b0 100644 --- a/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 +++ b/src/DataProtection/DataProtection.Autorest/test/AdlsBlobHardeningScenario.Tests.ps1 @@ -85,7 +85,7 @@ Describe 'AdlsBlobHardeningScenario' -Tag 'LiveOnly' { $subId = $env.TestAdlsBlobHardeningScenario.SubscriptionId $resourceGroupName = $env.TestAdlsBlobHardeningScenario.ResourceGroupName $vaultName = $env.TestAdlsBlobHardeningScenario.VaultName - + $storageAccountName = $env.TestAdlsBlobHardeningScenario.StorageAccountName $targetStorageAccId = $env.TestAdlsBlobHardeningScenario.TargetStorageAccId $targetStorageAccountRGName = $env.TestAdlsBlobHardeningScenario.TargetStorageAccountRGName @@ -112,10 +112,14 @@ Describe 'AdlsBlobHardeningScenario' -Tag 'LiveOnly' { $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 - + $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" @@ -146,6 +150,80 @@ Describe 'AdlsBlobHardeningScenario' -Tag 'LiveOnly' { # 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!" } diff --git a/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 b/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 index d30df256f307..f15e7ec555ae 100644 --- a/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 +++ b/src/DataProtection/DataProtection.Autorest/test/BlobHardeningScenario.Tests.ps1 @@ -111,8 +111,13 @@ Describe 'BlobHardeningScenario' -Tag 'LiveOnly'{ $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 + $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" @@ -143,6 +148,80 @@ Describe 'BlobHardeningScenario' -Tag 'LiveOnly'{ # 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!" } From ccdcc5ede64491eac35e450782123f5ae705f9e4 Mon Sep 17 00:00:00 2001 From: ianna1-admin Date: Wed, 19 Nov 2025 14:11:46 -0600 Subject: [PATCH 3/3] autorest documentation updates for 2025-07-01 api version --- .../Properties/AssemblyInfo.cs | 4 +- ...Vaults-backupInstances-recoveryPoints.json | 2 +- .../backupVaults-backupInstances.json | 2 +- .../backupVaults-backupJobs.json | 2 +- .../backupVaults-backupPolicies.json | 2 +- ...ckupVaults-backupResourceGuardProxies.json | 2 +- .../backupVaults-deletedBackupInstances.json | 2 +- .../backupVaults.json | 2 +- .../locations-operationStatus.json | 2 +- .../resourceGuards.json | 2 +- .../docs/Az.DataProtection.md | 2 +- ...kup-AzDataProtectionBackupInstanceAdhoc.md | 2 +- ...otectionPolicyRetentionRuleClientObject.md | 6 +- ...t-AzDataProtectionPolicyTagClientObject.md | 6 +- ...DataProtectionPolicyTriggerClientObject.md | 4 +- ...ind-AzDataProtectionRestorableTimeRange.md | 2 +- .../Get-AzDataProtectionBackupInstance.md | 2 +- ...otectionBackupInstancesExtensionRouting.md | 2 +- .../docs/Get-AzDataProtectionBackupPolicy.md | 2 +- .../docs/Get-AzDataProtectionBackupVault.md | 2 +- .../docs/Get-AzDataProtectionJob.md | 2 +- .../docs/Get-AzDataProtectionOperation.md | 2 +- .../Get-AzDataProtectionOperationStatus.md | 2 +- .../Get-AzDataProtectionPolicyTemplate.md | 2 +- .../docs/Get-AzDataProtectionRecoveryPoint.md | 2 +- .../docs/Get-AzDataProtectionResourceGuard.md | 2 +- ...et-AzDataProtectionResourceGuardMapping.md | 2 +- ...DataProtectionSoftDeletedBackupInstance.md | 2 +- ...itialize-AzDataProtectionBackupInstance.md | 4 +- ...itialize-AzDataProtectionRestoreRequest.md | 22 +- ...otectionBackupConfigurationClientObject.md | 2 +- .../New-AzDataProtectionBackupInstance.md | 2 +- .../docs/New-AzDataProtectionBackupPolicy.md | 4 +- .../docs/New-AzDataProtectionBackupVault.md | 2 +- ...ProtectionPolicyTagCriteriaClientObject.md | 2 +- .../docs/New-AzDataProtectionResourceGuard.md | 2 +- ...tectionRestoreConfigurationClientObject.md | 6 +- ...rotectionRetentionLifeCycleClientObject.md | 2 +- .../docs/Set-AzDataProtectionMSIPermission.md | 4 +- ...et-AzDataProtectionResourceGuardMapping.md | 2 +- ...t-AzDataProtectionBackupInstanceRestore.md | 8 +- ...AzDataProtectionBackupInstanceReadiness.md | 4 +- ...t-AzDataProtectionBackupInstanceRestore.md | 4 +- ...st-AzDataProtectionBackupInstanceUpdate.md | 4 +- .../Update-AzDataProtectionBackupInstance.md | 2 +- ...rotectionBackupInstanceAssociatedPolicy.md | 2 +- .../Update-AzDataProtectionBackupVault.md | 34 +- .../Update-AzDataProtectionResourceGuard.md | 2 +- .../generate-info.json | 2 +- .../test/localEnv.json | 354 ++++++++++-------- src/DataProtection/DataProtection.sln | 28 +- .../DataProtection/Az.DataProtection.psd1 | 2 +- ...kup-AzDataProtectionBackupInstanceAdhoc.md | 2 +- ...otectionPolicyRetentionRuleClientObject.md | 6 +- ...t-AzDataProtectionPolicyTagClientObject.md | 6 +- ...DataProtectionPolicyTriggerClientObject.md | 4 +- ...ind-AzDataProtectionRestorableTimeRange.md | 2 +- .../Get-AzDataProtectionBackupInstance.md | 2 +- ...otectionBackupInstancesExtensionRouting.md | 2 +- .../help/Get-AzDataProtectionBackupPolicy.md | 2 +- .../help/Get-AzDataProtectionBackupVault.md | 2 +- .../help/Get-AzDataProtectionJob.md | 2 +- .../help/Get-AzDataProtectionOperation.md | 2 +- .../Get-AzDataProtectionOperationStatus.md | 2 +- .../Get-AzDataProtectionPolicyTemplate.md | 2 +- .../help/Get-AzDataProtectionRecoveryPoint.md | 2 +- .../help/Get-AzDataProtectionResourceGuard.md | 2 +- ...et-AzDataProtectionResourceGuardMapping.md | 2 +- ...DataProtectionSoftDeletedBackupInstance.md | 2 +- ...itialize-AzDataProtectionBackupInstance.md | 4 +- ...itialize-AzDataProtectionRestoreRequest.md | 22 +- ...otectionBackupConfigurationClientObject.md | 2 +- .../New-AzDataProtectionBackupInstance.md | 2 +- .../help/New-AzDataProtectionBackupPolicy.md | 4 +- .../help/New-AzDataProtectionBackupVault.md | 2 +- ...ProtectionPolicyTagCriteriaClientObject.md | 2 +- .../help/New-AzDataProtectionResourceGuard.md | 2 +- ...tectionRestoreConfigurationClientObject.md | 6 +- ...rotectionRetentionLifeCycleClientObject.md | 2 +- .../help/Set-AzDataProtectionMSIPermission.md | 4 +- ...et-AzDataProtectionResourceGuardMapping.md | 2 +- ...t-AzDataProtectionBackupInstanceRestore.md | 8 +- ...AzDataProtectionBackupInstanceReadiness.md | 4 +- ...t-AzDataProtectionBackupInstanceRestore.md | 4 +- ...st-AzDataProtectionBackupInstanceUpdate.md | 4 +- .../Update-AzDataProtectionBackupInstance.md | 2 +- ...rotectionBackupInstanceAssociatedPolicy.md | 2 +- .../Update-AzDataProtectionBackupVault.md | 39 +- .../Update-AzDataProtectionResourceGuard.md | 2 +- 89 files changed, 424 insertions(+), 307 deletions(-) diff --git a/src/DataProtection/DataProtection.Autorest/Properties/AssemblyInfo.cs b/src/DataProtection/DataProtection.Autorest/Properties/AssemblyInfo.cs index baac4bc1b36e..b7101f1fe2a5 100644 --- a/src/DataProtection/DataProtection.Autorest/Properties/AssemblyInfo.cs +++ b/src/DataProtection/DataProtection.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,7 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataProtection")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("2.7.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("2.7.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("2.8.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("2.8.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json index 243cb3d672f3..83b41bee27e9 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances-recoveryPoints.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/backupInstances/recoveryPoints", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json index 451eca4d0c1b..e9e04c852f8c 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupInstances.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/backupInstances", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json index 649c77949d9b..a2ce3a7e0fe8 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupJobs.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/backupJobs", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json index e94f677100cc..a3f1791d66bb 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupPolicies.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/backupPolicies", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json index a83b3185d6d9..73d4219d57ea 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-backupResourceGuardProxies.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/backupResourceGuardProxies", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json index 5347463d2b3b..ed67577d8208 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults-deletedBackupInstances.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults/deletedBackupInstances", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json index d22167fbf931..485ba58a402b 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/backupVaults.json @@ -1,6 +1,6 @@ { "resourceType": "backupVaults", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json index ebe434cfb9e0..19d4cec8719b 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/locations-operationStatus.json @@ -1,6 +1,6 @@ { "resourceType": "locations/operationStatus", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json index 6d58f94d2522..d7d1c0d1347a 100644 --- a/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json +++ b/src/DataProtection/DataProtection.Autorest/UX/Microsoft.DataProtection/resourceGuards.json @@ -1,6 +1,6 @@ { "resourceType": "resourceGuards", - "apiVersion": "2025-02-01", + "apiVersion": "2025-07-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.dataprotection" }, diff --git a/src/DataProtection/DataProtection.Autorest/docs/Az.DataProtection.md b/src/DataProtection/DataProtection.Autorest/docs/Az.DataProtection.md index 036db97a089f..587643464196 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Az.DataProtection.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Az.DataProtection.md @@ -1,6 +1,6 @@ --- Module Name: Az.DataProtection -Module Guid: 02f749f0-7aca-44aa-a062-1efd4c24d60c +Module Guid: 2236c610-48bb-434e-92c0-3affc7229fd2 Download Help Link: https://learn.microsoft.com/powershell/module/az.dataprotection Help Version: 1.0.0.0 Locale: en-US diff --git a/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/DataProtection.Autorest/docs/Backup-AzDataProtectionBackupInstanceAdhoc.md index 8f6db2e043b7..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.Api20250201.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 d86f5899ca57..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.Api20250201.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.Api20250201.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.Api20250201.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 1e631beb1af5..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.Api20250201.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.Api20250201.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.Api20250201.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 97ab117c4a9f..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.Api20250201.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.Api20250201.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 578c4422334a..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.Api20250201.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 961cf53262d8..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.Api20250201.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 03ccc5317fc3..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.Api20250201.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 3fa0c3c6f496..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.Api20250201.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 b061cf4e8529..5769a79cc30a 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionBackupVault.md @@ -209,7 +209,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 ff93f0150a2f..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.Api20250201.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 df959cce0f20..bc804866b7ac 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.Api20250201.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api50.IOperation ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionOperationStatus.md index 8314bb60cf3d..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.Api20250201.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 9e5c10c7b3ab..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.Api20250201.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 74994bbc0d0a..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.Api20250201.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 f98046cf8030..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.Api20250201.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 e05a11f6917e..b3432f5926a1 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Get-AzDataProtectionResourceGuardMapping.md @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 a396ef70a239..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.Api20250201.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 f4adcdbb3b26..d301cd22284e 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Initialize-AzDataProtectionBackupInstance.md @@ -119,7 +119,7 @@ Use this parameter to configure protection for AzureKubernetesService, AzureBlob To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.IBackupDatasourceParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupDatasourceParameters Parameter Sets: (All) Aliases: @@ -289,7 +289,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 31c06a01033b..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 ] [] ``` @@ -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.Api20250201.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.Api20250201.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 3361983f44f9..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.Api20250201.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 2a95744a82fc..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.Api20250201.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 7a5a5b3a71d4..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.Api20250201.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.Api20250201.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 99788feae528..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.Api20250201.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 6ade29107483..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.Api20250201.IScheduleBasedBackupCriteria +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IScheduleBasedBackupCriteria ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md index d6d0d84c3074..2fdcd43204ff 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionResourceGuard.md @@ -196,7 +196,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 f023de2ec3f0..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.Api20250201.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.Api20250201.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.Api20250201.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 1f3a44f6a684..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.Api20250201.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 3ffbb7f2bdf7..a0ff6946e9d4 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.Api20250201.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.Api20250201.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 cb7b5a74ddc5..248d073b4d5f 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Set-AzDataProtectionResourceGuardMapping.md @@ -164,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 8724b7692fa7..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.Api20250201.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.Api20250201.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.Api20250201.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 b328aafab08d..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.Api20250201.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.Api20250201.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 a52bf74bd11f..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.Api20250201.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.Api20250201.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 394ff9d93c17..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.Api20250201.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.Api20250201.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 a87afb787e67..22359e4a37ee 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupInstance.md @@ -318,7 +318,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 ddab042f06c3..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.Api20250201.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 a684ed0553bd..2ecc246c3e80 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionBackupVault.md @@ -31,10 +31,10 @@ Update-AzDataProtectionBackupVault -ResourceGroupName -VaultName [-Token ] [-AsJob] [-AzureMonitorAlertsForAllJobFailure ] [-CrossRegionRestoreState ] [-CrossSubscriptionRestoreState ] [-DefaultProfile ] - [-EncryptionSetting ] [-IdentityType ] - [-IdentityUserAssignedIdentity ] [-ImmutabilityState ] [-NoWait] - [-ResourceGuardOperationRequest ] [-SoftDeleteRetentionDurationInDay ] - [-SoftDeleteState ] [-Tag ] [-Confirm] [-WhatIf] [] + [-EncryptionSetting ] [-Identity ] + [-ImmutabilityState ] [-NoWait] [-ResourceGuardOperationRequest ] + [-SoftDeleteRetentionDurationInDay ] [-SoftDeleteState ] [-Tag ] + [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION @@ -285,7 +285,23 @@ 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.Api20250201.IEncryptionSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IEncryptionSettings +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Identity +Input Managed Identity Details +To construct, see NOTES section for IDENTITY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IDppIdentityDetails Parameter Sets: UpdateViaIdentityExpanded Aliases: @@ -297,11 +313,11 @@ Accept wildcard characters: False ``` ### -IdentityType -The identityType which can be either SystemAssigned, UserAssigned, 'SystemAssigned,UserAssigned' or None +The identityType which can take values: "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None" ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -316,7 +332,7 @@ Gets or sets the user assigned identities. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: UserAssignedIdentity, AssignUserIdentity Required: False @@ -553,7 +569,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 79cead818341..5e98af65f70d 100644 --- a/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md +++ b/src/DataProtection/DataProtection.Autorest/docs/Update-AzDataProtectionResourceGuard.md @@ -204,7 +204,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES diff --git a/src/DataProtection/DataProtection.Autorest/generate-info.json b/src/DataProtection/DataProtection.Autorest/generate-info.json index 4c9869eb33e4..752620cfda66 100644 --- a/src/DataProtection/DataProtection.Autorest/generate-info.json +++ b/src/DataProtection/DataProtection.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "9ab52009-3d73-4301-ac4e-fdaedc42928c" + "generate_Id": "cbc5148d-3b51-405a-b489-b147e91faab1" } diff --git a/src/DataProtection/DataProtection.Autorest/test/localEnv.json b/src/DataProtection/DataProtection.Autorest/test/localEnv.json index 47326eff84d9..71ccafc055ae 100644 --- a/src/DataProtection/DataProtection.Autorest/test/localEnv.json +++ b/src/DataProtection/DataProtection.Autorest/test/localEnv.json @@ -1,199 +1,253 @@ { - "TestMySQL": { - "TargetContainerURI": "https://vdhingra1psa.blob.core.windows.net/powershellpgflexrestore", - "PolicyName": "pstest-simple-mysql", - "NewPolicyName": "pstest-mysql-policy", - "VaultName": "vdhingraBackupVault", - "ResourceGroupName": "vdhingraRG", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" - }, - "TestBackupPolicy": { + "TestPGFlex": { "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "DiskNewPolicyName": "sarath-disk-generated-policy", - "VaultName": "sarath-vault", - "ResourceGroupName": "sarath-rg" + "NewPolicyName": "pstest-pgflex-policy", + "ResourceGroupName": "vdhingraRG", + "PolicyName": "pgflexArchivePolicy1", + "TargetContainerURI": "https://vdhingra1psa.blob.core.windows.net/powershellpgflexrestore", + "VaultName": "vdhingraBackupVault" }, - "TestBackupVault": { - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "NewVaultName": "new-pstest-vault", - "VaultName": "sarath-vault", - "ResourceGroupName": "sarath-rg" + "TestTriggerBackup": { + "BackupRuleName": "BackupHourly", + "ResourceGroupName": "pstest-diskrg", + "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "VaultName": "pstest-disk-vault" }, - "TestCrossRegionRestoreScenario": { - "TargetContainerURI": "https://zftccypod01otds1.blob.core.windows.net/oss-crr-pstest", - "FileNamePrefix": "oss-pstest-crrasfiles-1", - "TargetResourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppCrrRG/providers/Microsoft.DBforPostgreSQL/servers/crr-ccy-1/databases/oss-pstestrun-crr-1", - "SecretURI": "https://crr-ccy-kv.vault.azure.net/secrets/secret-for-crr-ccy-1", - "VaultName": "crr-wala-ecy-vault", - "ResourceGroupName": "adigupt-rg", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" + "TestResourceGuard": { + "ResourceGroupName": "hiagarg", + "Location": "centraluseuap", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "ResourceGuardName": "pstest-resourceguard" }, - "TestAksBackupScenario": { - "ResourceGroupName": "aksbackuptestrg-rajat", - "VaultName": "demobackupvault", - "TargetClusterId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat/providers/Microsoft.ContainerService/managedClusters/aks-clitest-cluster", - "SnapshotResourceGroupId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat", - "FriendlyName": "pstest-aks-cluster", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "NewPolicyName": "pstest-aks-policy", - "SourceClusterId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat/providers/Microsoft.ContainerService/managedClusters/aks-pstest-cluster", - "PolicyName": "demoaksbackuppolicy", - "DataSourceLocation": "eastus" + "TestAdlsBlobHardeningScenario": { + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "UpdatePolicyName": "adlsvaultpolicy2", + "VaultPolicyName": "adlsvaultpolicy", + "VaultName": "dataprotectionpstest-bv", + "TargetStorageAccountName": "adlsblobtargetsa", + "TargetCrossSubStorageAccountRGName": "dataprotectionpstest2-rg", + "CrossSubscriptionId": "349ea464-dc60-42e9-8c5d-46fa013b9546", + "ResourceGroupName": "dataprotectionpstest-rg", + "TargetCrossSubStorageAccountName": "crradlsblobtargetsa", + "Location": "eastus", + "TargetStorageAccountRGName": "dataprotectionpstest-rg", + "StorageAccountName": "adlsblobsourcesa", + "UpdatedContainersList": [ + "con1", + "con2", + "con3", + "con4", + "con5" + ], + "StorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.Storage/storageAccounts/adlsblobsourcesa", + "TargetCrossSubStorageAccId": "/subscriptions/349ea464-dc60-42e9-8c5d-46fa013b9546/resourceGroups/dataprotectionpstest2-rg/providers/Microsoft.Storage/storageAccounts/crradlsblobtargetsa", + "TargetStorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.Storage/storageAccounts/adlsblobtargetsa", + "PolicyName": "adlsvaultpolicy" }, - "TestTriggerBackup": { + "TestBackupConfig": { + "StorageAccountName": "blobpstestsa", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "BackupRuleName": "BackupHourly", - "VaultName": "pstest-disk-vault", - "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk", - "ResourceGroupName": "pstest-diskrg" + "StorageAccountResourceGroup": "blob-pstest-rg" }, - "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "RecordDate": "25-03-2024-1-11-11", "TestAksPolicyScenario": { + "NewPolicyName": "pstest-aks-policy", + "ResourceGroupName": "AKS-ps-shasha-test-source", "SubscriptionId": "f0c630e0-2995-4853-b056-0b3c09cb673f", "VaultName": "ps-vault", - "NewPolicyName": "pstest-aks-policy", - "ResourceGroupName": "AKS-ps-shasha-test-source" + "NewVaultedPolicyName": "vaulted-aks-pspol" }, - "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", "TestBlobHardeningScenario": { - "PolicyName": "operational-vaulted-policy", - "TargetStorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.Storage/storageAccounts/hiagaeussa", - "ResourceGroupName": "blob-eus-pstest-rg", - "CrossSubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "VaultName": "blob-eus-pstest-vault", - "StorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/blob-eus-pstest-rg/providers/Microsoft.Storage/storageAccounts/blobeuspstestsa", - "TargetCrossSubStorageAccountName": "hiagatestsa", - "VaultPolicyName": "vaulted-pstest-policy", + "ResourceGroupName": "dataprotectionpstest-rg", + "VaultPolicyName": "vaultpolicy", + "TargetStorageAccountName": "blobtargetsa", + "TargetCrossSubStorageAccountRGName": "dataprotectionpstest2-rg", + "StorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.Storage/storageAccounts/blobsourcesa1", "UpdatedContainersList": [ - "conaaa", - "conabb", - "coneee", - "conwxy", - "conzzz" + "con1", + "con2", + "con3", + "con4", + "con5" ], - "StorageAccountName": "blobeuspstestsa", + "TargetCrossSubStorageAccountName": "crrblobtargetsa", + "TargetStorageAccId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/dataprotectionpstest-rg/providers/Microsoft.Storage/storageAccounts/blobtargetsa", + "TargetStorageAccountRGName": "dataprotectionpstest-rg", + "VaultName": "dataprotectionpstest-bv", "Location": "eastus", - "UpdatePolicyName": "op-vault-pstest-policy", + "PolicyName": "opvaultpolicy", + "StorageAccountName": "blobsourcesa1", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "OperationalPolicyName": "op-pstest-policy", - "OperationalVaultedPolicyName": "op-vault-pstest-policy", - "TargetCrossSubStorageAccountRGName": "hiagaTestRG", - "TargetStorageAccountName": "hiagaeussa", - "TargetStorageAccountRGName": "hiagarg", - "TargetCrossSubStorageAccId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/hiagaTestRG/providers/Microsoft.Storage/storageAccounts/hiagatestsa" + "OperationalPolicyName": "operationalpol2", + "TargetCrossSubStorageAccId": "/subscriptions/349ea464-dc60-42e9-8c5d-46fa013b9546/resourceGroups/dataprotectionpstest2-rg/providers/Microsoft.Storage/storageAccounts/crrblobtargetsa", + "UpdatePolicyName": "opvaultpolicy2", + "CrossSubscriptionId": "349ea464-dc60-42e9-8c5d-46fa013b9546", + "OperationalVaultedPolicyName": "opvaultpolicy3" }, - "TestDiskBackupScenario": { - "SnapshotRG": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg", - "RestoreDiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-restoreddisk-25-03-2024-1-11-11", - "VaultName": "pstest-disk-vault", - "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk", - "RestoreRG": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg", - "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "NewPolicyName": "newdiskpolicy-25-03-2024-1-11-11", - "ResourceGroupName": "pstest-diskrg" + "TestCrossRegionRestoreScenario": { + "SecretURI": "https://crr-ccy-kv.vault.azure.net/secrets/secret-for-crr-ccy-1", + "ResourceGroupName": "adigupt-rg", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "TargetResourceId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppCrrRG/providers/Microsoft.DBforPostgreSQL/servers/crr-ccy-1/databases/oss-pstestrun-crr-1", + "FileNamePrefix": "oss-pstest-crrasfiles-1", + "TargetContainerURI": "https://zftccypod01otds1.blob.core.windows.net/oss-crr-pstest", + "VaultName": "crr-wala-ecy-vault" + }, + "TestBlobsRestore": { + "ResourceGroupName": "BlobBackup-BugBash", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "VaultName": "jecECYBlobVault" + }, + "TestBackupPolicy": { + "ResourceGroupName": "sarath-rg", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "VaultName": "sarath-vault", + "DiskNewPolicyName": "sarath-disk-generated-policy" }, + "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "TestMySQLRestore": null, "TestCrossSubscriptionRestoreScenario": { - "TargetContainerURI": "https://akneemasaecy.blob.core.windows.net/oss-csr-container", + "ResourceGroupName": "CSRTestRg", "TargetContainerArmId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.Storage/storageAccounts/akneemasaecy/blobServices/default/containers/oss-csr-container", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "FileNamePrefix": "oss-csr-pstest-restoreasfiles", - "VaultName": "CSRPortalTestVault", - "ResourceGroupName": "CSRTestRg", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" - }, - "TestSoftDelete": { - "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "BackupRuleName": "BackupDaily", - "VaultName": "pstest-disk-vault2", - "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk2", - "ResourceGroupName": "pstest-diskrg" + "TargetContainerURI": "https://akneemasaecy.blob.core.windows.net/oss-csr-container", + "VaultName": "CSRPortalTestVault" }, - "TestBackupConfig": { - "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "StorageAccountName": "blobpstestsa", - "StorageAccountResourceGroup": "blob-pstest-rg" + "TestBackupJob": { + "ResourceGroupName": "sarath-rg", + "VaultName": "sarath-vault" }, - "TestBackupInstance": { + "TestMySQL": { "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "VaultName": "sarath-vault", - "ResourceGroupName": "sarath-rg" + "NewPolicyName": "pstest-mysql-policy", + "ResourceGroupName": "vdhingraRG", + "PolicyName": "pstest-simple-mysql", + "TargetContainerURI": "https://vdhingra1psa.blob.core.windows.net/powershellpgflexrestore", + "VaultName": "vdhingraBackupVault" }, - "TestMUA": { - "ResourceGroupName": "hiagarg", - "VaultName": "mua-pstest-backupvault", - "BackupInstanceName": "alrpstestvm-datadisk-000-20220808-115835", - "ResourceGuardName": "mua-pstest-dpp-ccy-resguard", + "TestDiskBackupScenario": { + "VaultName": "pstest-disk-vault", + "ResourceGroupName": "pstest-diskrg", + "RestoreDiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-restoreddisk-25-10-2025-5-31-2", + "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk", + "NewPolicyName": "newdiskpolicy-25-10-2025-5-31-2", + "RestoreRG": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "ResourceGuardId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/hiaga-rg/providers/Microsoft.DataProtection/ResourceGuards/mua-pstest-dpp-ccy-resguard", - "ResourceGuardRGName": "hiaga-rg", - "Location": "centraluseuap", - "ResourceGuardSubscription": "62b829ee-7936-40c9-a1c9-47a93f9f3965" + "SnapshotRG": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg" }, "TestOssBackupScenario": { - "PolicyName": "oss-pstest-policy", - "OssDbName": "oss-pstest-db", - "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", - "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", - "KeyVault": "oss-pstest-keyvault", - "FileNamePrefix": "oss-pstest-restoreasfiles", "VaultName": "oss-pstest-vault", - "OssDbId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/postgres", + "ResourceGroupName": "oss-pstest-rg", "SecretURI": "https://oss-pstest-keyvault.vault.azure.net/secrets/oss-pstest-secret", + "OssServerName": "oss-pstest-server", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "TargetContainerURI": "https://osspstestsa.blob.core.windows.net/oss-pstest-container", + "FileNamePrefix": "oss-pstest-restoreasfiles", + "KeyVault": "oss-pstest-keyvault", "NewPolicyName": "oss-pstest-policy-archive", - "OssServerName": "oss-pstest-server", - "ResourceGroupName": "oss-pstest-rg" - }, - "TestPGFlex": { - "TargetContainerURI": "https://vdhingra1psa.blob.core.windows.net/powershellpgflexrestore", - "PolicyName": "pgflexArchivePolicy1", - "NewPolicyName": "pstest-pgflex-policy", - "VaultName": "vdhingraBackupVault", - "ResourceGroupName": "vdhingraRG", - "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965" + "OssDbId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/flexibleServers/hiagaoss1", + "TargetResourceId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.DBforPostgreSQL/servers/oss-pstest-server/databases/oss-pstest-dbrestore", + "OssDbName": "oss-pstest-db", + "PolicyName": "oss-pstest-policy" }, - "TestResourceGuard": { + "TestMUA": { + "BackupInstanceName": "alrpstestvm-datadisk-000-20220808-115835", + "ResourceGroupName": "hiagarg", + "ResourceGuardName": "mua-pstest-dpp-ccy-resguard", + "ResourceGuardRGName": "hiaga-rg", + "ResourceGuardSubscription": "62b829ee-7936-40c9-a1c9-47a93f9f3965", "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", - "ResourceGuardName": "pstest-resourceguard", + "ResourceGuardId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/hiaga-rg/providers/Microsoft.DataProtection/ResourceGuards/mua-pstest-dpp-ccy-resguard", "Location": "centraluseuap", - "ResourceGroupName": "hiagarg" + "VaultName": "mua-pstest-backupvault" }, - "TestBlobsRestore": { + "TestGrantPermission": { + "OssPolicyName": "TestOSSPolicy2", + "VaultName": "TestBkpVault", + "KeyVaultId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Sqlrg/providers/Microsoft.KeyVault/vaults/rishitkeyvault3", + "KeyURI": "https://rishitkeyvault3.vault.azure.net/secrets/rishitnewsecret", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "VaultName": "jecECYBlobVault", - "ResourceGroupName": "BlobBackup-BugBash" + "DiskPolicyName": "diskBkpPolicy", + "BlobPolicyName": "blobBkpPolicy", + "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2", + "Diskrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg", + "VaultRG": "testBkpVaultRG", + "Ossrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg", + "Blobrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg", + "OssId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg/providers/Microsoft.DBforPostgreSQL/servers/rishitserver3/databases/postgres", + "BlobId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4", + "Snapshotrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG" }, - "TestBackupJob": { - "VaultName": "sarath-vault", - "ResourceGroupName": "sarath-rg" + "TestBackupInstance": { + "ResourceGroupName": "sarath-rg", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "VaultName": "sarath-vault" + }, + "TestUpdateBIWithUAMI": { + "UserIdentityARMId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/hiagarg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/hiagaDiskUami2", + "ResourceGroupName": "hiagarg", + "BackupInstanceName": "psDiskBI", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "VaultName": "psbackupvault" + }, + "TestPGFlexRestore": { + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "NewPolicyName": "pstest-pgflex-policy", + "BackupInstanceName": "zubair-pgflex-cli1", + "ResourceGroupName": "zubairRG", + "PolicyName": "OssFlexiblePolicy1", + "TargetContainerURI": "https://akneemasaecy.blob.core.windows.net/oss-csr-container", + "VaultName": "zpgflex" }, "TestAksRestoreScenario": { - "ResourceGroupName": "azk8ssvcs-cluster-r-ecy", - "VaultName": "azk8ssvcs-vault-ecy", "SnapshotResourceGroupId": "/subscriptions/f0c630e0-2995-4853-b056-0b3c09cb673f/resourceGroups/MC_azk8ssvcs-cluster-r-ecy_azk8ssvcs-cluster-ecy_eastus2euap", + "DataSourceLocation": "eastus2euap", "FriendlyName": "aksCluster3-ecy-araj-BI", + "ResourceGroupName": "azk8ssvcs-cluster-r-ecy", + "PolicyName": "azk8ssvcs-ad-policy-backupecy", + "SourceClusterId": "/subscriptions/f0c630e0-2995-4853-b056-0b3c09cb673f/resourcegroups/azk8ssvcs-cluster-r-ecy/providers/Microsoft.ContainerService/managedClusters/azk8ssvcs-cluster-ecy", "ClusterName": "azk8ssvcs-bi-backupecy", - "SubscriptionId": "f0c630e0-2995-4853-b056-0b3c09cb673f", "NewPolicyName": "", - "SourceClusterId": "/subscriptions/f0c630e0-2995-4853-b056-0b3c09cb673f/resourcegroups/azk8ssvcs-cluster-r-ecy/providers/Microsoft.ContainerService/managedClusters/azk8ssvcs-cluster-ecy", - "PolicyName": "azk8ssvcs-ad-policy-backupecy", - "DataSourceLocation": "eastus2euap" + "SubscriptionId": "f0c630e0-2995-4853-b056-0b3c09cb673f", + "VaultName": "azk8ssvcs-vault-ecy" }, - "TestGrantPermission": { - "BlobPolicyName": "blobBkpPolicy", - "Snapshotrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/testBkpVaultRG", - "Ossrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg", - "DiskPolicyName": "diskBkpPolicy", - "Blobrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg", - "Diskrg": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg", - "BlobId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Blobrg/providers/Microsoft.Storage/storageAccounts/testblobacc4", - "VaultName": "TestBkpVault", - "KeyURI": "https://rishitkeyvault3.vault.azure.net/secrets/rishitnewsecret", - "DiskId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/Diskrg/providers/Microsoft.Compute/disks/Mydisk2", - "VaultRG": "testBkpVaultRG", - "OssPolicyName": "TestOSSPolicy2", + "TestAksBackupScenario": { + "TargetClusterId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat/providers/Microsoft.ContainerService/managedClusters/aks-clitest-cluster", + "DataSourceLocation": "eastus", + "FriendlyName": "pstest-aks-cluster", + "ResourceGroupName": "aksbackuptestrg-rajat", + "PolicyName": "demoaksbackuppolicy", + "SourceClusterId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat/providers/Microsoft.ContainerService/managedClusters/aks-pstest-cluster", + "NewPolicyName": "pstest-aks-policy", + "SnapshotResourceGroupId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/aksbackuptestrg-rajat", "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", - "KeyVaultId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Sqlrg/providers/Microsoft.KeyVault/vaults/rishitkeyvault3", - "OssId": "/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourcegroups/Ossrg/providers/Microsoft.DBforPostgreSQL/servers/rishitserver3/databases/postgres" + "VaultName": "demobackupvault" + }, + "RecordDate": "25-10-2025-5-31-2", + "TestCmkEncryption": { + "Location": "eastasia", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "ResourceGroupName": "dataprotectionpstest-rg", + "CmkEncryptionKeyUriUpdated": "https://iannakeyvault.vault.azure.net/keys/pskey2/759c6ee414554dd7a6225bc22a90871d", + "CmkUserAssignedIdentityId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourcegroups/dataprotectionpstest-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userMSIpstest", + "CmkEncryptionKeyUri": "https://iannakeyvault.vault.azure.net/keys/pskey/acabb3f41e4e4266abf44100b81e7872", + "VaultName": "testcmkvault7" + }, + "TestBackupVault": { + "NewCSRVault": "csr-pstest-vault", + "SubscriptionId": "62b829ee-7936-40c9-a1c9-47a93f9f3965", + "CreateSubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "NewVaultName": "new-pstest-vault", + "ResourceGroupName": "sarath-rg", + "VaultName": "sarath-vault" + }, + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "TestSoftDelete": { + "BackupRuleName": "BackupDaily", + "ResourceGroupName": "pstest-diskrg", + "DiskId": "/subscriptions/38304e13-357e-405e-9e9a-220351dcce8c/resourceGroups/pstest-diskrg/providers/Microsoft.Compute/disks/pstest-disk2", + "SubscriptionId": "38304e13-357e-405e-9e9a-220351dcce8c", + "VaultName": "pstest-disk-vault2" } } diff --git a/src/DataProtection/DataProtection.sln b/src/DataProtection/DataProtection.sln index 0b7b72a8dc2c..893702e605bf 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", "{7148D111-5D25-46E3-AF20-926BA226A9CC}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DataProtection", "..\..\generated\DataProtection\DataProtection.Autorest\Az.DataProtection.csproj", "{915E82E3-0929-4AAE-81FD-0E3875ADE7E7}" 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 - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|x64.ActiveCfg = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|x64.Build.0 = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|x86.ActiveCfg = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Debug|x86.Build.0 = Debug|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|Any CPU.Build.0 = Release|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|x64.ActiveCfg = Release|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|x64.Build.0 = Release|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|x86.ActiveCfg = Release|Any CPU - {7148D111-5D25-46E3-AF20-926BA226A9CC}.Release|x86.Build.0 = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|x64.ActiveCfg = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|x64.Build.0 = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|x86.ActiveCfg = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Debug|x86.Build.0 = Debug|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Release|Any CPU.Build.0 = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Release|x64.ActiveCfg = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Release|x64.Build.0 = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.Release|x86.ActiveCfg = Release|Any CPU + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7}.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} - {7148D111-5D25-46E3-AF20-926BA226A9CC} = {F40C2F0C-1625-C7F2-86E6-E539334694A7} + {915E82E3-0929-4AAE-81FD-0E3875ADE7E7} = {F40C2F0C-1625-C7F2-86E6-E539334694A7} EndGlobalSection EndGlobal diff --git a/src/DataProtection/DataProtection/Az.DataProtection.psd1 b/src/DataProtection/DataProtection/Az.DataProtection.psd1 index 923e6f8971da..7aa23e2de478 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: 10/29/2025 +# Generated on: 11/18/2025 # @{ diff --git a/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md b/src/DataProtection/DataProtection/help/Backup-AzDataProtectionBackupInstanceAdhoc.md index 33972c4b715c..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.Api20250201.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 e8184de403a3..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.Api20250201.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.Api20250201.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.Api20250201.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 174d5779b1d4..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.Api20250201.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.Api20250201.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.Api20250201.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 b14a8209b88f..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.Api20250201.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.Api20250201.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 d637017e1b82..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.Api20250201.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 155a887c3bd9..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.Api20250201.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 c55d907bfa19..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.Api20250201.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 fb4cace2e837..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.Api20250201.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 e5eae23982e6..683be0edb2e1 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionBackupVault.md @@ -210,7 +210,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 48ac5023b47d..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.Api20250201.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 9dba1133dc2c..92d6da36ce01 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.Api20250201.IClientDiscoveryValueForSingleApi +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api50.IOperation ## NOTES diff --git a/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md b/src/DataProtection/DataProtection/help/Get-AzDataProtectionOperationStatus.md index 15221ffdf704..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.Api20250201.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 d7ec19d1c6aa..a50c67f68c43 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionPolicyTemplate.md @@ -61,7 +61,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 2e0b1435e041..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.Api20250201.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 8c2db1ad6523..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.Api20250201.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 a0aa729ed1db..c4cf3c9f61d7 100644 --- a/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection/help/Get-AzDataProtectionResourceGuardMapping.md @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 b7b2fcbd13d7..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.Api20250201.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 be580f1bf997..b220a60eeb13 100644 --- a/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Initialize-AzDataProtectionBackupInstance.md @@ -119,7 +119,7 @@ Use this parameter to configure protection for AzureKubernetesService, AzureBlob To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.IBackupDatasourceParameters +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupDatasourceParameters Parameter Sets: (All) Aliases: @@ -291,7 +291,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 6d864902734e..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.Api20250201.BackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.BackupInstanceResource Parameter Sets: OriginalLocationFullRecovery, OriginalLocationILR Aliases: @@ -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.Api20250201.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 e05e42604c72..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.Api20250201.NamespacedNameResource[] +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.NamespacedNameResource[] Parameter Sets: (All) Aliases: diff --git a/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection/help/New-AzDataProtectionBackupInstance.md index 7f2fba8358e0..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.Api20250201.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 4c6d304c2e06..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.Api20250201.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.Api20250201.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 37eed9330637..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.Api20250201.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 476efe3873ef..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.Api20250201.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 3cb4ba8176e9..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.Api20250201.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 2bf1ee36cc9b..bc91e3187ae8 100644 --- a/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md +++ b/src/DataProtection/DataProtection/help/New-AzDataProtectionRestoreConfigurationClientObject.md @@ -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.Api20250201.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.Api20250201.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.Api20250201.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 b66942a1ab83..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.Api20250201.ISourceLifeCycle +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.ISourceLifeCycle ## NOTES diff --git a/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md b/src/DataProtection/DataProtection/help/Set-AzDataProtectionMSIPermission.md index 7d5816b92010..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.Api20250201.IBackupInstanceResource +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IBackupInstanceResource Parameter Sets: SetPermissionsForBackup Aliases: @@ -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.Api20250201.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 c48a1a653d64..2652a7040e87 100644 --- a/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md +++ b/src/DataProtection/DataProtection/help/Set-AzDataProtectionResourceGuardMapping.md @@ -164,7 +164,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 768959946104..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.Api20250201.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.Api20250201.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.Api20250201.IAzureBackupRestoreRequest +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IAzureBackupRestoreRequest ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 84734299d646..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.Api20250201.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.Api20250201.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 116f8f24ab5a..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.Api20250201.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.Api20250201.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 385ed0f3bc59..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.Api20250201.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.Api20250201.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 74a623610982..e943e5ce144c 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupInstance.md @@ -316,7 +316,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 d182f6451366..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.Api20250201.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 f06848f91e70..926c297109f0 100644 --- a/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md +++ b/src/DataProtection/DataProtection/help/Update-AzDataProtectionBackupVault.md @@ -17,14 +17,13 @@ For example, updating tags for a resource. ``` Update-AzDataProtectionBackupVault [-Token ] [-AzureMonitorAlertsForAllJobFailure ] [-CrossRegionRestoreState ] - [-CrossSubscriptionRestoreState ] [-IdentityType ] - [-IdentityUserAssignedIdentity ] [-ImmutabilityState ] + [-CrossSubscriptionRestoreState ] [-ImmutabilityState ] [-ResourceGuardOperationRequest ] [-SoftDeleteRetentionDurationInDay ] [-SoftDeleteState ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] - -ResourceGroupName -VaultName [-SubscriptionId ] - [-CmkEncryptionState ] [-CmkIdentityType ] - [-CmkUserAssignedIdentityId ] [-CmkEncryptionKeyUri ] [-SecureToken ] - [-WhatIf] [-Confirm] [] + -ResourceGroupName -VaultName [-SubscriptionId ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-CmkEncryptionState ] + [-CmkIdentityType ] [-CmkUserAssignedIdentityId ] [-CmkEncryptionKeyUri ] + [-SecureToken ] [-WhatIf] [-Confirm] [] ``` ### UpdateViaIdentityExpanded @@ -32,7 +31,7 @@ Update-AzDataProtectionBackupVault [-Token ] [-AzureMonitorAlertsForAllJ Update-AzDataProtectionBackupVault -InputObject [-Token ] [-AzureMonitorAlertsForAllJobFailure ] [-CrossRegionRestoreState ] [-CrossSubscriptionRestoreState ] [-EncryptionSetting ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] [-ImmutabilityState ] + [-Identity ] [-ImmutabilityState ] [-ResourceGuardOperationRequest ] [-SoftDeleteRetentionDurationInDay ] [-SoftDeleteState ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] @@ -286,7 +285,23 @@ 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.Api20250201.IEncryptionSettings +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IEncryptionSettings +Parameter Sets: UpdateViaIdentityExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Identity +Input Managed Identity Details +To construct, see NOTES section for IDENTITY properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IDppIdentityDetails Parameter Sets: UpdateViaIdentityExpanded Aliases: @@ -298,11 +313,11 @@ Accept wildcard characters: False ``` ### -IdentityType -The identityType which can be either SystemAssigned, UserAssigned, 'SystemAssigned,UserAssigned' or None +The identityType which can take values: "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None" ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: Required: False @@ -317,7 +332,7 @@ Gets or sets the user assigned identities. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded Aliases: UserAssignedIdentity, AssignUserIdentity Required: False @@ -554,7 +569,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250201.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 7e3e789adeb0..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.Api20250201.IResourceGuardResource +### Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250701.IResourceGuardResource ## NOTES