diff --git a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
index e2c20c9f1887..052dc79bfda3 100644
--- a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
+++ b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
@@ -204,9 +204,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource
@@ -232,9 +232,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AbsoluteDeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AbsoluteDeleteOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AbsoluteDeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AbsoluteDeleteOption
@@ -260,9 +260,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdHocBackupRuleOptions
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdHocBackupRuleOptions
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdHocBackupRuleOptions
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdHocBackupRuleOptions
@@ -282,9 +282,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdhocBackupTriggerOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBackupTriggerOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdhocBackupTriggerOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBackupTriggerOption
@@ -304,9 +304,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdhocBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBasedTriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AdhocBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBasedTriggerContext
@@ -326,9 +326,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AuthCredentials
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AuthCredentials
@@ -348,9 +348,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupDiscreteRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupDiscreteRecoveryPoint
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupDiscreteRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupDiscreteRecoveryPoint
@@ -430,9 +430,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequest
@@ -464,9 +464,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesRequestResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequestResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesRequestResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequestResource
@@ -510,9 +510,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponse
@@ -532,9 +532,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesResponseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupFindRestorableTimeRangesResponseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponseResource
@@ -554,9 +554,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJob
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJob
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJob
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJob
@@ -744,9 +744,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJobResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJobResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource
@@ -766,9 +766,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJobResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupJobResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResourceList
@@ -788,9 +788,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupParams
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupParams
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupParams
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupParams
@@ -816,9 +816,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPoint
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPoint
@@ -838,9 +838,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest
@@ -890,9 +890,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResource
@@ -912,9 +912,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResourceList
@@ -934,9 +934,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryTimeBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryTimeBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest
@@ -986,9 +986,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRehydrationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRehydrationRequest
@@ -1020,9 +1020,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreRequest
@@ -1054,9 +1054,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreWithRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreWithRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest
@@ -1118,9 +1118,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRule
@@ -1146,9 +1146,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureMonitorAlertSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureMonitorAlertSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureMonitorAlertSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureMonitorAlertSettings
@@ -1168,9 +1168,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureOperationalStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureOperationalStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters
@@ -1202,9 +1202,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureRetentionRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureRetentionRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureRetentionRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureRetentionRule
@@ -1236,9 +1236,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupCriteria
@@ -1258,9 +1258,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupDatasourceParameters
@@ -1280,9 +1280,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance
@@ -1326,9 +1326,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResourceList
@@ -1348,9 +1348,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupParameters
@@ -1370,9 +1370,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupPolicy
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupPolicy
@@ -1398,9 +1398,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupSchedule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupSchedule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupSchedule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupSchedule
@@ -1426,9 +1426,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVault
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVault
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVault
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVault
@@ -1472,9 +1472,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource
@@ -1506,9 +1506,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResourceList
@@ -1528,9 +1528,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicy
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicy
@@ -1556,9 +1556,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResource
@@ -1578,9 +1578,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicyResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicyResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResourceList
@@ -1600,9 +1600,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BasePolicyRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BasePolicyRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BasePolicyRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BasePolicyRule
@@ -1628,9 +1628,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseResourceProperties
@@ -1650,9 +1650,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BlobBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BlobBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters
@@ -1678,9 +1678,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CheckNameAvailabilityRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CheckNameAvailabilityRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityRequest
@@ -1700,9 +1700,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CheckNameAvailabilityResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityResult
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CheckNameAvailabilityResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityResult
@@ -1734,9 +1734,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryDisplay
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryDisplay
@@ -1774,9 +1774,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryForLogSpecification
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryForLogSpecification
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryForLogSpecification
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryForLogSpecification
@@ -1808,9 +1808,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryResponse
@@ -1830,9 +1830,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryValueForSingleApi
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryValueForSingleApi
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ClientDiscoveryValueForSingleApi
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryValueForSingleApi
@@ -1864,9 +1864,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CopyOnExpiryOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOnExpiryOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CopyOnExpiryOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOnExpiryOption
@@ -1886,9 +1886,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOption
@@ -1908,9 +1908,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails
@@ -1936,9 +1936,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreJobRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreJobRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobRequest
@@ -1970,9 +1970,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreJobsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobsRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreJobsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobsRequest
@@ -1998,9 +1998,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreSettings
@@ -2020,9 +2020,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossSubscriptionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossSubscriptionRestoreSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossSubscriptionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossSubscriptionRestoreSettings
@@ -2042,9 +2042,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CustomCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CustomCopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CustomCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CustomCopyOption
@@ -2070,9 +2070,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Datasource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Datasource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Datasource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Datasource
@@ -2122,9 +2122,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DatasourceSet
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DatasourceSet
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet
@@ -2180,9 +2180,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DataStoreInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DataStoreInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreInfoBase
@@ -2208,9 +2208,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DataStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DataStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreParameters
@@ -2236,9 +2236,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Day
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Day
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Day
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Day
@@ -2264,9 +2264,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DefaultResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DefaultResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DefaultResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DefaultResourceProperties
@@ -2286,9 +2286,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstance
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstance
@@ -2332,9 +2332,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResource
@@ -2354,9 +2354,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletedBackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResourceList
@@ -2376,9 +2376,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeleteOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeleteOption
@@ -2404,9 +2404,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletionInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletionInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DeletionInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletionInfo
@@ -2444,9 +2444,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResource
@@ -2466,9 +2466,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResourceList
@@ -2488,9 +2488,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResource
@@ -2522,9 +2522,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseTrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppBaseTrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResourceTags
@@ -2544,9 +2544,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppIdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppIdentityDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppIdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppIdentityDetails
@@ -2572,9 +2572,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResource
@@ -2594,9 +2594,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppProxyResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppProxyResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResourceTags
@@ -2616,9 +2616,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResource
@@ -2638,9 +2638,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResourceList
@@ -2660,9 +2660,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResource
@@ -2694,9 +2694,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppTrackedResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppTrackedResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResourceList
@@ -2716,9 +2716,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequest
@@ -2762,9 +2762,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequestHeaders
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestHeaders
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequestHeaders
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestHeaders
@@ -2784,9 +2784,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DppWorkerRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestParameters
@@ -2806,9 +2806,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Error
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Error
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Error
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Error
@@ -2840,9 +2840,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ExportJobsResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ExportJobsResult
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ExportJobsResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ExportJobsResult
@@ -2880,9 +2880,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequest
@@ -2914,9 +2914,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationRequestBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequestBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationRequestBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequestBase
@@ -2936,9 +2936,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponse
@@ -2964,9 +2964,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationResponseBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponseBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FeatureValidationResponseBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponseBase
@@ -2986,9 +2986,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FetchSecondaryRPsRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FetchSecondaryRPsRequestParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.FetchSecondaryRPsRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FetchSecondaryRPsRequestParameters
@@ -3014,9 +3014,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IdentityDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IdentityDetails
@@ -3042,9 +3042,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ImmediateCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmediateCopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ImmediateCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmediateCopyOption
@@ -3064,9 +3064,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ImmutabilitySettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmutabilitySettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ImmutabilitySettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmutabilitySettings
@@ -3086,9 +3086,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerError
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerError
@@ -3108,9 +3108,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.InnerErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerErrorAdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.InnerErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerErrorAdditionalInfo
@@ -3130,9 +3130,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreCriteria
@@ -3152,9 +3152,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo
@@ -3186,9 +3186,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemPathBasedRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemPathBasedRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria
@@ -3226,9 +3226,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfo
@@ -3260,9 +3260,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobExtendedInfoAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfoAdditionalDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobExtendedInfoAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfoAdditionalDetails
@@ -3282,9 +3282,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobSubTask
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTask
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobSubTask
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTask
@@ -3322,9 +3322,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobSubTaskAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTaskAdditionalDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.JobSubTaskAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTaskAdditionalDetails
@@ -3344,9 +3344,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters
@@ -3408,9 +3408,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria
@@ -3478,9 +3478,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings
@@ -3500,9 +3500,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterVaultTierRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterVaultTierRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteria
@@ -3582,9 +3582,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
@@ -3604,9 +3604,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesPvRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesPvRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesPvRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesPvRestoreCriteria
@@ -3638,9 +3638,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesStorageClassRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesStorageClassRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesStorageClassRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesStorageClassRestoreCriteria
@@ -3672,9 +3672,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource
@@ -3700,9 +3700,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationExtendedInfo
@@ -3722,9 +3722,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationJobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationJobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo
@@ -3750,9 +3750,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationResource
@@ -3790,9 +3790,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PatchResourceGuardInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceGuardInputTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PatchResourceGuardInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceGuardInputTags
@@ -3812,9 +3812,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PatchResourceRequestInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceRequestInputTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PatchResourceRequestInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceRequestInputTags
@@ -3834,9 +3834,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PolicyInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PolicyInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.PolicyInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PolicyInfo
@@ -3862,9 +3862,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ProtectionStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ProtectionStatusDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ProtectionStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ProtectionStatusDetails
@@ -3884,9 +3884,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RangeBasedItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RangeBasedItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria
@@ -3918,9 +3918,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RecoveryPointDataStoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointDataStoreDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RecoveryPointDataStoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointDataStoreDetails
@@ -3976,9 +3976,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RecoveryPointsFilters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointsFilters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RecoveryPointsFilters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointsFilters
@@ -4028,9 +4028,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuard
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuard
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuard
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuard
@@ -4068,9 +4068,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperation
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperation
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperation
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperation
@@ -4096,9 +4096,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail
@@ -4124,9 +4124,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBase
@@ -4158,9 +4158,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResource
@@ -4180,9 +4180,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardProxyBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResourceList
@@ -4202,9 +4202,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResource
@@ -4236,9 +4236,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResourceList
@@ -4258,9 +4258,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceMoveDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceMoveDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceMoveDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceMoveDetails
@@ -4304,9 +4304,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestorableTimeRange
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestorableTimeRange
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestorableTimeRange
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestorableTimeRange
@@ -4338,9 +4338,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreFilesTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreFilesTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo
@@ -4372,9 +4372,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreJobRecoveryPointDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreJobRecoveryPointDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreJobRecoveryPointDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreJobRecoveryPointDetails
@@ -4400,9 +4400,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo
@@ -4434,9 +4434,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreTargetInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreTargetInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfoBase
@@ -4468,9 +4468,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RetentionTag
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RetentionTag
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RetentionTag
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RetentionTag
@@ -4496,9 +4496,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ScheduleBasedBackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedBackupCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ScheduleBasedBackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedBackupCriteria
@@ -4548,9 +4548,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ScheduleBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedTriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ScheduleBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedTriggerContext
@@ -4570,9 +4570,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreBasedAuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreBasedAuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials
@@ -4592,9 +4592,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource
@@ -4626,9 +4626,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SoftDeleteSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SoftDeleteSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SoftDeleteSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SoftDeleteSettings
@@ -4654,9 +4654,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.StorageSetting
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.StorageSetting
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.StorageSetting
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.StorageSetting
@@ -4676,9 +4676,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SupportedFeature
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SupportedFeature
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SupportedFeature
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SupportedFeature
@@ -4710,9 +4710,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SyncBackupInstanceRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SyncBackupInstanceRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SyncBackupInstanceRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SyncBackupInstanceRequest
@@ -4732,9 +4732,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TaggingCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TaggingCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TaggingCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TaggingCriteria
@@ -4760,9 +4760,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TargetDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TargetDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TargetDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TargetDetails
@@ -4800,9 +4800,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TriggerContext
@@ -4822,9 +4822,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UnlockDeleteRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UnlockDeleteRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteRequest
@@ -4850,9 +4850,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UnlockDeleteResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UnlockDeleteResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteResponse
@@ -4872,9 +4872,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingError
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingError
@@ -4924,9 +4924,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingErrorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingErrorProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingErrorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingErrorProperties
@@ -4946,9 +4946,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingWarningDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingWarningDetail
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.UserFacingWarningDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingWarningDetail
diff --git a/src/DataProtection/DataProtection.Autorest/README.md b/src/DataProtection/DataProtection.Autorest/README.md
index 3dde069a0d35..1b7dceb21cda 100644
--- a/src/DataProtection/DataProtection.Autorest/README.md
+++ b/src/DataProtection/DataProtection.Autorest/README.md
@@ -31,11 +31,11 @@ This file contains the configuration for generating My API from the OpenAPI spec
``` yaml
# it's the same options as command line options, just drop the double-dash!
-commit: c0e7b1360c19187fde2497251f784aa82641aa95
+commit: 41d1c179dc166b7f16b7e40ef4f2a1d9c85b10cc
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-11-01/dataprotection.json
+ - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-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:
@@ -398,16 +398,16 @@ directive:
- ValidateCrossRegionRestoreRequestObject
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicy Property');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerContext Trigger');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupParameters BackupParameter');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPoint Property');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property');
```
## Alternate settings
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 5a16aca4878f..944ebe2db80c 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": "2023-11-01",
+ "apiVersion": "2023-12-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 ba3478b1310e..cfe35efe176f 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": "2023-11-01",
+ "apiVersion": "2023-12-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 158aaa4cedd0..c4fe78e18289 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": "2023-11-01",
+ "apiVersion": "2023-12-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 3d0c05827da9..ac10f20440fb 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": "2023-11-01",
+ "apiVersion": "2023-12-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 5d0330b1bc4f..ff3a8537be6d 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": "2023-11-01",
+ "apiVersion": "2023-12-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 df72f64e6424..5d031f16bc27 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": "2023-11-01",
+ "apiVersion": "2023-12-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 d5da8548af61..adc197db9784 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": "2023-11-01",
+ "apiVersion": "2023-12-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 e1cd99e6b031..2e5bfb5bf1b1 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": "2023-11-01",
+ "apiVersion": "2023-12-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 14d4117ba3d7..8eb8115c66e1 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": "2023-11-01",
+ "apiVersion": "2023-12-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
},
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 2df9f0ad89f8..08ba20a98f84 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1
@@ -7,7 +7,7 @@
param (
[Parameter(Mandatory, HelpMessage='Subscription of Vault')]
[System.String[]]
- ${Subscription},
+ ${Subscription}, # TODO: add alias to all ARG command params
[Parameter(Mandatory=$false, HelpMessage='Resource Group of Vault')]
[System.String[]]
@@ -102,7 +102,7 @@
foreach($argResponse in $argInstanceResponse)
{
$jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100
- $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]::FromJsonString($jsonStringResponse)
+ $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 6f2d89f41c0f..8e66cf3ea659 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1
@@ -6,14 +6,17 @@
param (
[Parameter(Mandatory, HelpMessage='Subscription of Vault')]
+ [Alias('SubscriptionId')]
[System.String[]]
${Subscription},
[Parameter(Mandatory=$false, HelpMessage='Resource Group of Vault')]
+ [Alias('ResourceGroupName')]
[System.String[]]
${ResourceGroup},
[Parameter(Mandatory=$false, HelpMessage='Name of the vault')]
+ [Alias('VaultName')]
[System.String[]]
${Vault},
@@ -67,7 +70,7 @@
process
{
CheckResourceGraphModuleDependency
-
+
# $manifest = LoadManifest -DatasourceType $DatasourceType
$query = GetBackupVaultARGQuery
@@ -91,7 +94,7 @@
foreach($argVault in $argAllVaults)
{
$jsonStringResponse = $argVault | ConvertTo-Json -Depth 100
- $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupVaultResource]::FromJsonString($jsonStringResponse)
+ $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 0eaca8744601..cab28255a634 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.Api20231101.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
+ $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
}
return $backupJobs
}
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1
index d381085f89c8..483e035cf8fb 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Initialize-AzDataProtectionBackupInstance.ps1
@@ -2,7 +2,7 @@
function Initialize-AzDataProtectionBackupInstance {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
[CmdletBinding(PositionalBinding=$false)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Backup instance Request object for configuring backup')]
@@ -44,14 +44,14 @@ function Initialize-AzDataProtectionBackupInstance {
${FriendlyName},
[Parameter(Mandatory=$false, HelpMessage='Backup configuration for backup. Use this parameter to configure protection for AzureKubernetesService.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupDatasourceParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
${BackupConfiguration}
)
process {
$manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
- $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstance]::new()
+ $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance]::new()
$backupInstance.ObjectType = "BackupInstance"
if($manifest.snapshotRGPermissions.Length -eq 0 -and $SnapshotResourceGroupId -ne "")
@@ -70,12 +70,15 @@ function Initialize-AzDataProtectionBackupInstance {
$backupInstance.DataSourceSetInfo = GetDatasourceSetInfo -DatasourceInfo $backupInstance.DataSourceInfo -DatasourceType $DatasourceType
}
- if(-not($manifest.friendlyNameRequired) -and $FriendlyName -ne ""){
+ if(-not($manifest.friendlyNameRequired) -and -not($manifest.customFriendlyNameAllowed) -and $FriendlyName -ne ""){
$errormsg = "FriendlyName parameter is not expected for the given DatasourceType"
throw $errormsg
}
-
- if($backupInstance.DataSourceSetInfo.ResourceId -eq $null){
+
+ if($manifest.customFriendlyNameAllowed -and $FriendlyName -ne ""){
+ $backupInstance.FriendlyName = $FriendlyName
+ }
+ elseif($backupInstance.DataSourceSetInfo.ResourceId -eq $null -or $manifest.customFriendlyNameAllowed){
$backupInstance.FriendlyName = $backupInstance.DataSourceInfo.ResourceName
}
elseif($manifest.friendlyNameRequired){
@@ -106,9 +109,9 @@ function Initialize-AzDataProtectionBackupInstance {
$errormsg = "Please input SecretStoreType"
throw $errormsg
}
- $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreBasedAuthCredentials]::new()
+ $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials]::new()
$backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
- $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreResource]::new()
+ $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource]::new()
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI
}
@@ -118,7 +121,7 @@ function Initialize-AzDataProtectionBackupInstance {
}
}
- $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]::new()
+ $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]::new()
$backupInstanceResource.Property = $backupInstance
if($PSBoundParameters.ContainsKey("DatasourceId"))
@@ -136,7 +139,7 @@ function Initialize-AzDataProtectionBackupInstance {
if($manifest.addDataStoreParametersList -eq $true)
{
- $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureOperationalStoreParameters]::new()
+ $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters]::new()
$operationalParam.DataStoreType = "OperationalStore"
$operationalParam.ObjectType = "AzureOperationalStoreParameters"
$operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupConfigurationClientObject.ps1
index 7ba8131d9b3c..14ec26dd7bdb 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupConfigurationClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/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.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.KubernetesClusterBackupDatasourceParameters]::new()
+ $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters]::new()
$dataSourceParam.ObjectType = "KubernetesClusterBackupDatasourceParameters"
$dataSourceParam.ExcludedResourceType = $ExcludedResourceType
@@ -97,7 +97,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{
}
if($DatasourceType.ToString() -eq "AzureBlob"){
- $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BlobBackupDatasourceParameters]::new()
+ $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters]::new()
$dataSourceParam.ObjectType = "BlobBackupDatasourceParameters"
if($VaultedBackupContainer -ne $null){
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1
index d6d209f59bec..451d2de41455 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/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.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
${BackupInstance},
[Parameter(Mandatory=$false, HelpMessage='Resource tags')]
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 33f3109487f9..4b1efbb3ba91 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.Api20231101.IResourceGuardResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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/Unlock-AzDataProtectionResourceGuardOperation.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1
index c1eadb406cd7..d20498a837b4 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1
@@ -27,7 +27,7 @@ function Unlock-AzDataProtectionResourceGuardOperation
[System.String]
${ResourceToBeDeleted},
- [Parameter(ParameterSetName="UnlockDelete", Mandatory=$false, HelpMessage='Parameter to authorize operations protected by cross tenant resource guard. Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"). Token to fetch authorization token for different tenant.')]
+ [Parameter(ParameterSetName="UnlockDelete", Mandatory=$false, HelpMessage='Parameter to authorize operations protected by cross tenant resource guard. Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Token to fetch authorization token for different tenant.')]
[System.String]
${Token},
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
index 895e0a9017b7..a8d6d6dfd688 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
@@ -2,7 +2,7 @@
function Update-AzDataProtectionBackupInstanceAssociatedPolicy
{
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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/Common/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Update-AzDataProtectionResourceGuard.ps1
index b3a5f280dd36..0f46aa97f80b 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.Api20231101.IResourceGuardResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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/Job/Get-AzDataProtectionJob.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1
index 1eda4db857e3..6bce3e513c13 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.Api20231101.IAzureBackupJobResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 004f43bf0479..91a867b4e114 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,7 +1,7 @@
function Initialize-AzDataProtectionRestoreRequest
{
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest')]
- [CmdletBinding(PositionalBinding=$false)]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest')]
+ [CmdletBinding(PositionalBinding=$false, DefaultParameterSetName='AlternateLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Restore Request object for triggering restore on a protected backup instance.')]
param(
@@ -71,7 +71,7 @@
[Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')]
[Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]
${BackupInstance},
# this is applicable to all workloads wherever ALR supported.
@@ -81,7 +81,7 @@
${TargetResourceId},
# this parameter is being used in OSS cross subscription restore as files
- [Parameter(ParameterSetName="RestoreAsFiles", Mandatory=$false, HelpMessage='Target storage account container ARM Id to which backup data will be restored as files. This parameter is required for restoring as files to another subscription.')]
+ [Parameter(ParameterSetName="RestoreAsFiles", Mandatory=$false, HelpMessage='Target storage account container ARM Id to which backup data will be restored as files. This parameter is required for restoring as files when cross subscription restore is disabled on the backup vault.')]
[System.String]
${TargetResourceIdForRestoreAsFile},
@@ -89,7 +89,7 @@
[System.String]
${TargetContainerURI},
- [Parameter(ParameterSetName="RestoreAsFiles", Mandatory, HelpMessage='File name to be prefixed to the restored backup data.')]
+ [Parameter(ParameterSetName="RestoreAsFiles", Mandatory=$false, HelpMessage='File name to be prefixed to the restored backup data.')]
[System.String]
${FileNamePrefix},
@@ -117,7 +117,7 @@
[Parameter(ParameterSetName="AlternateLocationILR", Mandatory=$false, HelpMessage='Restore configuration for restore. Use this parameter to restore with AzureKubernetesService.')]
[Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory=$false, HelpMessage='Restore configuration for restore. Use this parameter to restore with AzureKubernetesService.')]
[Parameter(ParameterSetName="AlternateLocationFullRecovery", Mandatory=$false, HelpMessage='Restore configuration for restore. Use this parameter to restore with AzureKubernetesService.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]
${RestoreConfiguration},
[Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory=$false, HelpMessage='Secret uri for secret store authentication of data source. This parameter is only supported for AzureDatabaseForPostgreSQL currently.')]
@@ -151,7 +151,7 @@
Write-Debug -Message $RecoveryPoint
if($PSBoundParameters.ContainsKey("RehydrationPriority")){
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreWithRehydrationRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest"
$restoreRequest.RehydrationPriority = $RehydrationPriority
if($PSBoundParameters.ContainsKey("RehydrationDuration")){
@@ -162,7 +162,7 @@
}
}
else{
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryPointBasedRestoreRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest"
}
$restoreRequest.RecoveryPointId = $RecoveryPoint
@@ -172,7 +172,7 @@
{
$utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z")
Write-Debug -Message $utcTime
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRecoveryTimeBasedRestoreRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest"
$restoreRequest.RecoveryPointTime = $utcTime
$restoreMode = "PointInTimeBased"
@@ -189,15 +189,29 @@
if($RestoreType -eq "RestoreAsFiles")
{
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreFilesTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo"
- if(!($PSBoundParameters.ContainsKey("FileNamePrefix")) -or !($PSBoundParameters.ContainsKey("TargetContainerURI")) ){
- $errormsg = "FileNamePrefix and TargetContainerURI parameters are required for RestoreAsFiles "
- throw $errormsg
+ if($manifest.fileNamePrefixDisabled -and $PSBoundParameters.ContainsKey("FileNamePrefix")){
+ $errormsg = "FileNamePrefix can't be set for given DatasourceType. Please try again after removing FileNamePrefix parameter"
+ throw $errormsg
+ }
+ elseif($manifest.fileNamePrefixDisabled -and !($PSBoundParameters.ContainsKey("TargetContainerURI"))){
+ $errormsg = "TargetContainerURI parameter is required for RestoreAsFiles for given DatasourceType"
+ throw $errormsg
+ }
+ elseif( !$manifest.fileNamePrefixDisabled -and (!($PSBoundParameters.ContainsKey("FileNamePrefix")) -or !($PSBoundParameters.ContainsKey("TargetContainerURI"))) ){
+ $errormsg = "FileNamePrefix and TargetContainerURI parameters are required for RestoreAsFiles for given DatasourceType"
+ throw $errormsg
}
- $restoreRequest.RestoreTargetInfo.TargetDetail.FilePrefix = $FileNamePrefix
+ if($manifest.fileNamePrefixDisabled){
+ $restoreRequest.RestoreTargetInfo.TargetDetail.FilePrefix = "dummyprefix"
+ }
+ else{
+ $restoreRequest.RestoreTargetInfo.TargetDetail.FilePrefix = $FileNamePrefix
+ }
+
$restoreRequest.RestoreTargetInfo.TargetDetail.RestoreTargetLocationType = "AzureBlobs"
$restoreRequest.RestoreTargetInfo.TargetDetail.Url = $TargetContainerURI
@@ -210,11 +224,11 @@
{
# RestoreTargetInfo for OLR ALR Full recovery
if($DatasourceType -ne "AzureKubernetesService"){
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo"
}
else{
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo"
$restoreCriteriaList = @()
@@ -234,7 +248,7 @@
else
{
# ILR: ItemLevelRestoreTargetInfo
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemLevelRestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo"
$restoreCriteriaList = @()
@@ -245,7 +259,7 @@
if(($RecoveryPoint -ne $null) -and ($RecoveryPoint -ne "") -and $ContainersList.length -gt 0){
for($i = 0; $i -lt $ContainersList.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ItemPathBasedRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria]::new()
$restoreCriteria.ObjectType = "ItemPathBasedRestoreCriteria"
$restoreCriteria.ItemPath = $ContainersList[$i]
@@ -258,7 +272,7 @@
elseif($ContainersList.length -gt 0){
for($i = 0; $i -lt $ContainersList.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RangeBasedItemLevelRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria]::new()
$restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria"
$restoreCriteria.MinMatchingValue = $ContainersList[$i]
@@ -277,7 +291,7 @@
for($i = 0; $i -lt $FromPrefixPattern.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.RangeBasedItemLevelRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria]::new()
$restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria"
$restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i]
@@ -352,9 +366,9 @@
$errormsg = "Please input SecretStoreType"
throw $errormsg
}
- $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreBasedAuthCredentials]::new()
+ $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials]::new()
$restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
- $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.SecretStoreResource]::new()
+ $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 0d01a9451a0c..56634f53d1e4 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.Api20231101.KubernetesClusterRestoreCriteriaNamespaceMappings]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings]
${NamespaceMapping},
[Parameter(Mandatory=$false, HelpMessage='Restore mode for persistent volumes. Allowed values are RestoreWithVolumeData, RestoreWithoutVolumeData. Default value is RestoreWithVolumeData')]
@@ -49,12 +49,12 @@ function New-AzDataProtectionRestoreConfigurationClientObject{
${PersistentVolumeRestoreMode},
[Parameter(Mandatory=$false, HelpMessage='Hook reference to be executed during restore.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
${RestoreHookReference}
)
process {
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]::new()
$restoreCriteria.ObjectType = "KubernetesClusterRestoreCriteria"
$restoreCriteria.ExcludedResourceType = $ExcludedResourceType
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 f876f68abadd..32e38eb559a0 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.Api20231101.IOperationJobExtendedInfo')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
${Parameter},
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Object type of the restore request')]
@@ -33,7 +33,7 @@ function Start-AzDataProtectionBackupInstanceRestore
${ObjectType},
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Gets or sets the restore target information')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IRestoreTargetInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IRestoreTargetInfoBase]
${RestoreTargetInfo},
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Type of the source data store')]
@@ -141,7 +141,7 @@ function Start-AzDataProtectionBackupInstanceRestore
$backupInstanceId = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" + $ResourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + $VaultName + "/backupInstances/" + $BackupInstanceName
- $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreDetails]::new()
+ $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails]::new()
$crossRegionRestoreDetail.SourceBackupInstanceId = $backupInstanceId
$crossRegionRestoreDetail.SourceRegion = $vault.Location
@@ -152,7 +152,7 @@ function Start-AzDataProtectionBackupInstanceRestore
$PSBoundParameters.Add("RestoreRequestObject", $Parameter)
}
else{
- $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.AzureBackupRestoreRequest]::new()
+ $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 de534eab8556..7c6753767c53 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.Api20231101.IOperationJobExtendedInfo')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.ValidateCrossRegionRestoreRequestObject]::new()
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ValidateCrossRegionRestoreRequestObject]::new()
$Parameter.RestoreRequestObject = $RestoreRequest
- $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CrossRegionRestoreDetails]::new()
+ $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.ValidateRestoreRequestObject]::new()
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 653f398bc72f..4e313fdbebc4 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.Api20231101.IStorageSetting[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IStorageSetting[]]
${StorageSetting},
[Parameter(Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')]
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 7d19850bb409..e4d0a48734e3 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.Api20231101.StorageSetting]::new()
+ $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 112335ae6533..c47e8f138115 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
@@ -5,7 +5,7 @@
param(
[Parameter(ParameterSetName="SetPermissionsForBackup", Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
${BackupInstance},
[Parameter(ParameterSetName="SetPermissionsForBackup", Mandatory=$false, HelpMessage='ID of the keyvault')]
@@ -13,7 +13,12 @@
[System.String]
${KeyVaultId},
+ [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Subscription Id of the backup vault')]
+ [System.String]
+ ${SubscriptionId},
+
[Parameter(Mandatory, HelpMessage='Resource group of the backup vault')]
+ [Alias('ResourceGroupName')]
[System.String]
${VaultResourceGroup},
@@ -26,14 +31,22 @@
[ValidateSet("Resource","ResourceGroup","Subscription")]
${PermissionsScope},
+ [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Datasource Type')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes]
+ ${DatasourceType},
+
[Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory, HelpMessage='Restore request object which will be used for restore')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
${RestoreRequest},
- [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory, HelpMessage='Sanpshot Resource Group')]
+ [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Sanpshot Resource Group')]
[System.String]
[ValidatePattern("/subscriptions/([A-z0-9\-]+)/resourceGroups/(?.+)")]
- ${SnapshotResourceGroupId}
+ ${SnapshotResourceGroupId},
+
+ [Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Target storage account ARM Id. Use this parameter for DatasourceType AzureDatabaseForMySQL, AzureDatabaseForPGFlexServer.')]
+ [System.String]
+ ${StorageAccountARMId}
)
process {
@@ -45,34 +58,60 @@
$MissingRolesInitially = $false
if($PsCmdlet.ParameterSetName -eq "SetPermissionsForRestore"){
-
- $DatasourceId = $RestoreRequest.RestoreTargetInfo.DatasourceInfo.ResourceId
- $DatasourceType = GetClientDatasourceType -ServiceDatasourceType $RestoreRequest.RestoreTargetInfo.DatasourceInfo.Type
- $manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
-
- $ResourceArray = $DataSourceId.Split("/")
- $ResourceRG = GetResourceGroupIdFromArmId -Id $DataSourceId
- $SubscriptionName = GetSubscriptionNameFromArmId -Id $DataSourceId
- $subscriptionId = $ResourceArray[2]
+
+ $DatasourceId = $RestoreRequest.RestoreTargetInfo.DatasourceInfo.ResourceId
+
+ $DatasourceTypeInternal = ""
+ $subscriptionIdInternal = ""
+ if($DataSourceId -ne $null){
+ $DatasourceTypeInternal = GetClientDatasourceType -ServiceDatasourceType $RestoreRequest.RestoreTargetInfo.DatasourceInfo.Type
+
+ $ResourceArray = $DataSourceId.Split("/")
+ $ResourceRG = GetResourceGroupIdFromArmId -Id $DataSourceId
+ $SubscriptionName = GetSubscriptionNameFromArmId -Id $DataSourceId
+ $subscriptionIdInternal = $ResourceArray[2]
+
+ if($DatasourceType -ne $null -and $DatasourceTypeInternal -ne $DatasourceType){
+ throw "DatasourceType is not compatible with the RestoreRequest"
+ }
+ }
+ elseif($DatasourceType -ne $null){
+ $DatasourceTypeInternal = $DatasourceType
- $vault = Az.DataProtection\Get-AzDataProtectionBackupVault -VaultName $VaultName -ResourceGroupName $VaultResourceGroup -SubscriptionId $ResourceArray[2]
+ if($SubscriptionId -eq ""){
+
+ $err = "SubscriptionId can't be identified. Please provide the value for parameter SubscriptionId"
+ throw $err
+ }
+ else{
+ $subscriptionIdInternal = $SubscriptionId
+ }
+ }
+ else{
+ $err = "DatasourceType can't be identified since DataSourceInfo is null. Please provide the value for parameter DatasourceType"
+ throw $err
+ }
- if($DatasourceType -ne "AzureKubernetesService"){
+ $manifest = LoadManifest -DatasourceType $DatasourceTypeInternal.ToString()
+
+ $vault = Az.DataProtection\Get-AzDataProtectionBackupVault -VaultName $VaultName -ResourceGroupName $VaultResourceGroup -SubscriptionId $subscriptionIdInternal
+
+ if(-not $manifest.supportRestoreGrantPermission){
$err = "Set permissions for restore is currently not supported for given DataSourceType"
throw $err
}
- if($SnapshotResourceGroupId -eq ""){
+ if(($manifest.dataSourceOverSnapshotRGPermissions.Length -gt 0 -or $manifest.snapshotRGPermissions.Length -gt 0) -and $SnapshotResourceGroupId -eq ""){
$warning = "SnapshotResourceGroupId parameter is required to assign permissions over snapshot resource group, skipping"
Write-Warning $warning
}
else{
foreach($Permission in $manifest.dataSourceOverSnapshotRGPermissions)
{
- if($DatasourceType -eq "AzureKubernetesService"){
+ if($DatasourceTypeInternal -eq "AzureKubernetesService"){
CheckAksModuleDependency
- $aksCluster = Get-AzAksCluster -Id $RestoreRequest.RestoreTargetInfo.DataSourceInfo.ResourceId -SubscriptionId $subscriptionId
+ $aksCluster = Get-AzAksCluster -Id $RestoreRequest.RestoreTargetInfo.DataSourceInfo.ResourceId -SubscriptionId $subscriptionIdInternal
$dataSourceMSI = ""
if($aksCluster.Identity.Type -match "UserAssigned"){
@@ -134,7 +173,7 @@
}
}
- foreach($Permission in $manifest.datasourcePermissions)
+ foreach($Permission in $manifest.datasourcePermissionsForRestore)
{
# set context to the subscription where ObjectId is present
$AllRoles = Az.Resources\Get-AzRoleAssignment -ObjectId $vault.Identity.PrincipalId
@@ -155,6 +194,54 @@
Write-Host "Assigned $($Permission) permission to the backup vault over DataSource with Id $($DataSourceId)"
}
}
+
+ foreach($Permission in $manifest.storageAccountPermissionsForRestore)
+ {
+ # set context to the subscription where ObjectId is present
+ $AllRoles = Az.Resources\Get-AzRoleAssignment -ObjectId $vault.Identity.PrincipalId
+
+ $targetResourceArmId = $restoreRequest.RestoreTargetInfo.TargetDetail.TargetResourceArmId
+
+ if($targetResourceArmId -ne $null -and $targetResourceArmId -ne ""){
+ if(-not $targetResourceArmId.Contains("/blobServices/")){
+ $err = "restoreRequest.RestoreTargetInfo.TargetDetail.TargetResourceArmId is not in the correct format"
+ throw $err
+ }
+
+ $storageAccId = ($targetResourceArmId -split "/blobServices/")[0]
+ $storageAccResourceGroupId = ($targetResourceArmId -split "/providers/")[0]
+ $storageAccountSubId = ($targetResourceArmId -split "/resourceGroups/")[0]
+ }
+ else{
+ if($StorageAccountARMId -eq ""){
+ $err = "Permissions can't be assigned to target storage account. Please input parameter StorageAccountARMId"
+ throw $err
+ }
+
+ # storage Account subscription and resource group
+ $storageAccountSubId = ($StorageAccountARMId -split "/resourceGroups/")[0]
+ $storageAccResourceGroupId = ($StorageAccountARMId -split "/providers/")[0]
+
+ # storage Account ID
+ $storageAccId = $StorageAccountARMId
+ }
+
+ $CheckPermission = $AllRoles | Where-Object { ($_.Scope -eq $storageAccId -or $_.Scope -eq $storageAccResourceGroupId -or $_.Scope -eq $storageAccountSubId) -and $_.RoleDefinitionName -eq $Permission}
+
+ if($CheckPermission -ne $null)
+ {
+ Write-Host "Required permission $($Permission) is already assigned to backup vault over storage account with Id $($storageAccId)"
+ }
+
+ else
+ {
+ $MissingRolesInitially = $true
+
+ AssignMissingRoles -ObjectId $vault.Identity.PrincipalId -Permission $Permission -PermissionsScope $PermissionsScope -Resource $storageAccId -ResourceGroup $storageAccResourceGroupId -Subscription $storageAccountSubId
+
+ Write-Host "Assigned $($Permission) permission to the backup vault over storage account with Id $($storageAccId)"
+ }
+ }
}
elseif($PsCmdlet.ParameterSetName -eq "SetPermissionsForBackup"){
@@ -385,6 +472,32 @@
Write-Host "Assigned $($Permission) permission to the backup vault over DataSource with Id $($DataSourceId)"
}
}
+
+ foreach($Permission in $manifest.datasourceRGPermissions)
+ {
+ $AllRoles = Az.Resources\Get-AzRoleAssignment -ObjectId $vault.Identity.PrincipalId
+ $CheckPermission = $AllRoles | Where-Object { ($_.Scope -eq $ResourceRG -or $_.Scope -eq $SubscriptionName) -and $_.RoleDefinitionName -eq $Permission}
+
+ if($CheckPermission -ne $null)
+ {
+ Write-Host "Required permission $($Permission) is already assigned to backup vault over DataSource resource group with name $($ResourceRG)"
+ }
+
+ else
+ {
+ $MissingRolesInitially = $true
+
+ # "Resource","ResourceGroup","Subscription"
+ $DatasourceRGScope = $PermissionsScope
+ if($PermissionsScope -eq "Resource"){
+ $DatasourceRGScope = "ResourceGroup"
+ }
+
+ AssignMissingRoles -ObjectId $vault.Identity.PrincipalId -Permission $Permission -PermissionsScope $DatasourceRGScope -Resource $DataSourceId -ResourceGroup $ResourceRG -Subscription $SubscriptionName
+
+ Write-Host "Assigned $($Permission) permission to the backup vault over DataSource resource group with name $($ResourceRG)"
+ }
+ }
}
if($MissingRolesInitially -eq $true)
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 8bd20805adab..65a4728e96be 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.Api20231101.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.ISourceLifeCycle[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.AzureRetentionRule]::new()
+ $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.AzureRetentionRule]::new()
+ $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 15d337707f6e..966a73e4ad46 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.Api20231101.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IScheduleBasedBackupCriteria[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria[]]
${Criteria}
)
@@ -83,7 +83,7 @@
if($tagIndex -eq -1)
{
- $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.TaggingCriteria]::new()
+ $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 7cccb0209bc2..879ea3a22021 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.Api20231101.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 f59870bd63bf..9c8dd4c29a2a 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.Api20231101.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.BackupPolicy]::FromJsonString($jsonPolicyString)
+ $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 e7d8bbbac53f..f0d2410001f9 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.Api20231101.IBaseBackupPolicyResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
${Policy},
[Parameter()]
@@ -114,7 +114,7 @@
$index += 1
}
- $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BaseBackupPolicyResource]::new()
+ $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 6b76776968b6..c2c02e8dbf65 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.Api20231101.IScheduleBasedBackupCriteria')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.ScheduleBasedBackupCriteria]::new()
+ $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.Day]::new()
+ $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Day]::new()
$day.Date = $dayOfMonthNumber
$day.IsLast = $false
$criteria.DaysOfMonth += $day
@@ -72,7 +72,7 @@
{
thow "Day of month should either be between 1 and 28 or it should be last"
}
- $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Day]::new()
+ $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 1f6b757893c0..40bd0114e456 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.Api20231101.ISourceLifeCycle')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.SourceLifeCycle]::new()
+ $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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.Api20231101.TargetCopySetting]::new()
+ $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TargetCopySetting]::new()
$targetCopySetting.DataStoreObjectType = "DataStoreInfoBase"
$targetCopySetting.DataStoreType = $TargetDataStore
$targetCopySetting.CopyAfterObjectType = $CopyOption
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs b/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs
index bfff3c5c2176..75748ec2fc32 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs
+++ b/src/DataProtection/DataProtection.Autorest/custom/Enums/Enums.cs
@@ -8,7 +8,9 @@ public enum DatasourceTypes
AzureDisk = 0,
AzureBlob,
AzureDatabaseForPostgreSQL,
- AzureKubernetesService
+ AzureKubernetesService,
+ AzureDatabaseForPGFlexServer,
+ AzureDatabaseForMySQL
}
public enum StorageSettingType
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1
index 3df0dc36ce7d..c891a282b039 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.Api20231101.IDatasource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDatasource]
$DatasourceInfo,
[Parameter(Mandatory=$true)]
@@ -16,7 +16,7 @@ function GetDatasourceSetInfo
process
{
- $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.DatasourceSet]::new()
+ $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet]::new()
$DataSourceSetInfo.DatasourceType = $DatasourceInfo.Type
$DataSourceSetInfo.ObjectType = "DatasourceSet"
$DataSourceSetInfo.ResourceLocation = $DatasourceInfo.ResourceLocation
@@ -64,7 +64,7 @@ function GetDatasourceInfo
process
{
$manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
- $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.Datasource]::new()
+ $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.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 6ee1b1544806..261382df0ea3 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.Api20231101
+namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201
{
public partial class BackupInstanceResource
{
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json
index 9e561f7ce9bd..81e296221200 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureBlob.json
@@ -1,8 +1,12 @@
{
"datasourcePermissions": [ "Storage Account Backup Contributor" ],
+ "datasourceRGPermissions": [],
"snapshotRGPermissions": [],
"keyVaultPermissions": [],
"dataSourceOverSnapshotRGPermissions": [],
+ "supportRestoreGrantPermission": false,
+ "datasourcePermissionsForRestore": [],
+ "storageAccountPermissionsForRestore": [],
"isProxyResource": false,
"enableDataSourceSetInfo": false,
"resourceType": "Microsoft.Storage/storageAccounts",
@@ -11,10 +15,12 @@
"allowedRestoreModes": [ "PointInTimeBased", "RecoveryPointBased" ],
"allowedRestoreTargetTypes": [ "OriginalLocation", "AlternateLocation" ],
"itemLevelRecoveyEnabled": true,
+ "fileNamePrefixDisabled": false,
"addBackupDatasourceParametersList": true,
"backupConfigurationRequired": false,
"addDataStoreParametersList": false,
"friendlyNameRequired": false,
+ "customFriendlyNameAllowed": false,
"supportSecretStoreAuthentication": false,
"supportCrossRegionRestore": false,
"policySettings": {
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForMySQL.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForMySQL.json
new file mode 100644
index 000000000000..facaea6ff781
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForMySQL.json
@@ -0,0 +1,90 @@
+{
+ "datasourcePermissions": [ "MySQL Backup And Export Operator" ],
+ "datasourceRGPermissions": [ "Reader" ],
+ "snapshotRGPermissions": [],
+ "keyVaultPermissions": [],
+ "dataSourceOverSnapshotRGPermissions": [],
+ "supportRestoreGrantPermission": true,
+ "datasourcePermissionsForRestore": [],
+ "storageAccountPermissionsForRestore": [ "Storage Blob Data Contributor" ],
+ "isProxyResource": true,
+ "enableDataSourceSetInfo": true,
+ "resourceType": "Microsoft.DBforMySQL/flexibleServers",
+ "parentResourceType": "Microsoft.DBforMySQL/flexibleServers",
+ "datasourceType": "Microsoft.DBforMySQL/flexibleServers",
+ "allowedRestoreModes": [ "RecoveryPointBased" ],
+ "allowedRestoreTargetTypes": [ "RestoreAsFiles" ],
+ "itemLevelRecoveyEnabled": false,
+ "fileNamePrefixDisabled": true,
+ "addBackupDatasourceParametersList": false,
+ "backupConfigurationRequired": false,
+ "addDataStoreParametersList": false,
+ "friendlyNameRequired": false,
+ "customFriendlyNameAllowed": true,
+ "supportSecretStoreAuthentication": false,
+ "supportCrossRegionRestore": true,
+ "policySettings": {
+ "supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ],
+ "supportedDatastoreTypes": [ "VaultStore" ],
+ "disableAddRetentionRule": false,
+ "disableCustomRetentionTag": false,
+ "backupScheduleSupported": true,
+ "supportedBackupFrequency": [ "Weekly" ],
+ "defaultPolicy": {
+ "name": "MySQLPolicy1",
+ "datasourceTypes": [ "Microsoft.DBforMySQL/flexibleServers" ],
+ "objectType": "BackupPolicy",
+ "policyRules": [
+ {
+ "lifecycles": [
+ {
+ "deleteAfter": {
+ "objectType": "AbsoluteDeleteOption",
+ "duration": "P10Y"
+ },
+ "targetDataStoreCopySettings": [],
+ "sourceDataStore": {
+ "dataStoreType": "VaultStore",
+ "objectType": "DataStoreInfoBase"
+ }
+ }
+ ],
+ "isDefault": true,
+ "name": "Default",
+ "objectType": "AzureRetentionRule"
+ },
+ {
+ "backupParameters": {
+ "backupType": "full",
+ "objectType": "AzureBackupParams"
+ },
+ "trigger": {
+ "schedule": {
+ "repeatingTimeIntervals": [
+ "R/2024-01-07T23:00:00+00:00/P1W"
+ ],
+ "timeZone": "UTC"
+ },
+ "taggingCriteria": [
+ {
+ "tagInfo": {
+ "tagName": "Default",
+ "id": "Default_"
+ },
+ "taggingPriority": 99,
+ "isDefault": true
+ }
+ ],
+ "objectType": "ScheduleBasedTriggerContext"
+ },
+ "dataStore": {
+ "dataStoreType": "VaultStore",
+ "objectType": "DataStoreInfoBase"
+ },
+ "name": "BackupWeekly",
+ "objectType": "AzureBackupRule"
+ }
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPGFlexServer.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPGFlexServer.json
new file mode 100644
index 000000000000..f866bf9febe0
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPGFlexServer.json
@@ -0,0 +1,90 @@
+{
+ "datasourcePermissions": [ "PostgreSQL Flexible Server Long Term Retention Backup Role" ],
+ "datasourceRGPermissions": [ "Reader" ],
+ "snapshotRGPermissions": [],
+ "keyVaultPermissions": [],
+ "dataSourceOverSnapshotRGPermissions": [],
+ "supportRestoreGrantPermission": true,
+ "datasourcePermissionsForRestore": [],
+ "storageAccountPermissionsForRestore": [ "Storage Blob Data Contributor" ],
+ "isProxyResource": true,
+ "enableDataSourceSetInfo": true,
+ "resourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
+ "parentResourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
+ "datasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
+ "allowedRestoreModes": [ "RecoveryPointBased" ],
+ "allowedRestoreTargetTypes": [ "RestoreAsFiles" ],
+ "itemLevelRecoveyEnabled": false,
+ "fileNamePrefixDisabled": true,
+ "addBackupDatasourceParametersList": false,
+ "backupConfigurationRequired": false,
+ "addDataStoreParametersList": false,
+ "friendlyNameRequired": false,
+ "customFriendlyNameAllowed": true,
+ "supportSecretStoreAuthentication": false,
+ "supportCrossRegionRestore": true,
+ "policySettings": {
+ "supportedRetentionTags": [ "Weekly", "Monthly", "Yearly" ],
+ "supportedDatastoreTypes": [ "VaultStore" ],
+ "disableAddRetentionRule": false,
+ "disableCustomRetentionTag": false,
+ "backupScheduleSupported": true,
+ "supportedBackupFrequency": [ "Daily", "Weekly" ],
+ "defaultPolicy": {
+ "name": "PGFlexPolicy1",
+ "datasourceTypes": [ "Microsoft.DBforPostgreSQL/flexibleServers" ],
+ "objectType": "BackupPolicy",
+ "policyRules": [
+ {
+ "lifecycles": [
+ {
+ "deleteAfter": {
+ "objectType": "AbsoluteDeleteOption",
+ "duration": "P10Y"
+ },
+ "targetDataStoreCopySettings": [],
+ "sourceDataStore": {
+ "dataStoreType": "VaultStore",
+ "objectType": "DataStoreInfoBase"
+ }
+ }
+ ],
+ "isDefault": true,
+ "name": "Default",
+ "objectType": "AzureRetentionRule"
+ },
+ {
+ "backupParameters": {
+ "backupType": "full",
+ "objectType": "AzureBackupParams"
+ },
+ "trigger": {
+ "schedule": {
+ "repeatingTimeIntervals": [
+ "R/2024-01-07T23:00:00+00:00/P1W"
+ ],
+ "timeZone": "UTC"
+ },
+ "taggingCriteria": [
+ {
+ "tagInfo": {
+ "tagName": "Default",
+ "id": "Default_"
+ },
+ "taggingPriority": 99,
+ "isDefault": true
+ }
+ ],
+ "objectType": "ScheduleBasedTriggerContext"
+ },
+ "dataStore": {
+ "dataStoreType": "VaultStore",
+ "objectType": "DataStoreInfoBase"
+ },
+ "name": "BackupWeekly",
+ "objectType": "AzureBackupRule"
+ }
+ ]
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPostgreSQL.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPostgreSQL.json
index aae91425084a..dc84fc2bbdc2 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPostgreSQL.json
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDatabaseForPostgreSQL.json
@@ -1,8 +1,12 @@
{
"datasourcePermissions": [ "Reader" ],
+ "datasourceRGPermissions": [],
"snapshotRGPermissions": [],
"keyVaultPermissions": [ "Key Vault Secrets User" ],
"dataSourceOverSnapshotRGPermissions": [],
+ "supportRestoreGrantPermission": false,
+ "datasourcePermissionsForRestore": [],
+ "storageAccountPermissionsForRestore": [],
"isProxyResource": true,
"enableDataSourceSetInfo": false,
"resourceType": "Microsoft.DBforPostgreSQL/servers/databases",
@@ -11,10 +15,12 @@
"allowedRestoreModes": [ "RecoveryPointBased" ],
"allowedRestoreTargetTypes": [ "AlternateLocation", "RestoreAsFiles" ],
"itemLevelRecoveyEnabled": false,
+ "fileNamePrefixDisabled": false,
"addBackupDatasourceParametersList": false,
"backupConfigurationRequired": false,
"addDataStoreParametersList": false,
"friendlyNameRequired": false,
+ "customFriendlyNameAllowed": false,
"supportSecretStoreAuthentication": true,
"supportCrossRegionRestore": true,
"policySettings": {
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDisk.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDisk.json
index fd53b446472a..45c801bccb51 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDisk.json
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureDisk.json
@@ -1,8 +1,12 @@
{
"datasourcePermissions": [ "Disk Backup Reader" ],
+ "datasourceRGPermissions": [],
"snapshotRGPermissions": [ "Disk Snapshot Contributor" ],
"keyVaultPermissions": [],
"dataSourceOverSnapshotRGPermissions": [],
+ "supportRestoreGrantPermission": false,
+ "datasourcePermissionsForRestore": [],
+ "storageAccountPermissionsForRestore": [],
"isProxyResource": false,
"enableDataSourceSetInfo": false,
"resourceType": "Microsoft.Compute/disks",
@@ -11,10 +15,12 @@
"allowedRestoreModes": [ "RecoveryPointBased" ],
"allowedRestoreTargetTypes": [ "AlternateLocation" ],
"itemLevelRecoveyEnabled": false,
+ "fileNamePrefixDisabled": false,
"addBackupDatasourceParametersList": false,
"backupConfigurationRequired": false,
"addDataStoreParametersList": true,
"friendlyNameRequired": false,
+ "customFriendlyNameAllowed": false,
"supportSecretStoreAuthentication": false,
"supportCrossRegionRestore": false,
"policySettings": {
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureKubernetesService.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureKubernetesService.json
index f37c964f85ca..8c1326c3d0bd 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureKubernetesService.json
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/AzureKubernetesService.json
@@ -1,8 +1,12 @@
{
"datasourcePermissions": [ "Reader" ],
+ "datasourceRGPermissions": [],
"snapshotRGPermissions": [ "Reader" ],
"keyVaultPermissions": [],
"dataSourceOverSnapshotRGPermissions": [ "Contributor" ],
+ "supportRestoreGrantPermission": true,
+ "datasourcePermissionsForRestore": [ "Reader" ],
+ "storageAccountPermissionsForRestore": [],
"isProxyResource": true,
"enableDataSourceSetInfo": true,
"resourceType": "Microsoft.ContainerService/managedclusters",
@@ -11,10 +15,12 @@
"allowedRestoreModes": [ "RecoveryPointBased" ],
"allowedRestoreTargetTypes": [ "AlternateLocation", "OriginalLocation" ],
"itemLevelRecoveyEnabled": true,
+ "fileNamePrefixDisabled": false,
"addBackupDatasourceParametersList": true,
"backupConfigurationRequired": true,
"addDataStoreParametersList": true,
"friendlyNameRequired": true,
+ "customFriendlyNameAllowed": false,
"supportSecretStoreAuthentication": false,
"supportCrossRegionRestore": false,
"policySettings": {
diff --git a/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json b/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json
index c9a006c3007b..75f840eedb26 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json
+++ b/src/DataProtection/DataProtection.Autorest/custom/manifests/DatasourceTypesInfo.json
@@ -15,6 +15,14 @@
{
"serviceDatasourceType": "Microsoft.ContainerService/managedClusters",
"clientDatasourceType": "AzureKubernetesService"
+ },
+ {
+ "serviceDatasourceType": "Microsoft.DBforPostgreSQL/flexibleServers",
+ "clientDatasourceType": "AzureDatabaseForPGFlexServer"
+ },
+ {
+ "serviceDatasourceType": "Microsoft.DBforMySQL/flexibleServers",
+ "clientDatasourceType": "AzureDatabaseForMySQL"
}
]
}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md
index 656cc6b3a108..6ee39e31d652 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionResourceGuardMapping.md
@@ -12,8 +12,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z
Name : DppResourceGuardProxy
ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard
s/mua-pstest-resguard
-ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail,
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail}
+ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail}
SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData
Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies
```
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Initialize-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/examples/Initialize-AzDataProtectionBackupInstance.md
index b930bfa71225..832ba61cd69d 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Initialize-AzDataProtectionBackupInstance.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Initialize-AzDataProtectionBackupInstance.md
@@ -36,3 +36,20 @@ Name BackupInstanceName
The First command gets the AzureKubernetesService policy in a given vault. The second, third command initializes the AKS cluster and snapshot resource group Id.
The fourth command backup configuration object needed for AzureKubernetesService. The fifth command initializes the client object for backup instance.
This object can now be used to configure backup using New-AzDataProtectionBackupInstance after all necessary permissions are assigned with Set-AzDataProtectionMSIPermission command.
+
+### Example 3: Configure protection for AzureDatabaseForPGFlexServer
+```powershell
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" -Name "policyName"
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-pgflex"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPGFlexServer -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
+```
+
+```output
+Name BackupInstanceName
+---- ------------------
+ test-pgflex-test-pgflex-ed68435e-069t-4b4a-9d84-d0c194800fc2
+```
+
+The first command gets the backup vault. The second command get the AzureDatabaseForPGFlexServer policy.
+The third command datasource ARM Id. The fourth command initializes the backup instance. Similarly use datasourcetype AzureDatabaseForMySQL to initialize backup instance for AzureDatabaseForMySQL.
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupInstance.md b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupInstance.md
index 33ce229b2f77..b825800a8bb2 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupInstance.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupInstance.md
@@ -91,3 +91,31 @@ The fifth command assigns the necessary permissions for configure backup.
The sixth command validates if the backup instance object is valid for configure protection (validate backup). This command runs in async way using parameter -NoWait.
Next we fetch the operation in a while loop until it succeeds.
The last command is used to configure protection for the backup instance.
+
+### Example 5: Configure protection for AzureDatabaseForMySQL
+```powershell
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" | Where-Object { $_.DatasourceType -match "mysql" }
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforMySQL/flexibleServers/test-mysql"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForMySQL -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -BackupInstance $backupInstanceClientObject -PermissionsScope ResourceGroup
+$operationResponse = Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject.Property -NoWait
+$operationId = $operationResponse.Target.Split("/")[-1].Split("?")[0]
+While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $vault.Location -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Status -eq "Inprogress"){
+ Start-Sleep -Seconds 10
+}
+$backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject
+```
+
+```output
+Name BackupInstanceName
+---- ------------------
+test-mysql-test-mysql-64f7399a-b024-4d61-8f16-c424c5fd2564 test-mysql-test-mysql-64f7399a-b024-4d61-8f16-c424c5fd2564
+```
+
+The first command gets the backup vault. The second command get the AzureDatabaseForMySQL policy.
+The third command datasource ARM Id. The fourth command initializes the backup instance.
+The fifth command assigns the necessary permissions for configure backup.
+The sixth command validates if the backup instance object is valid for configure protection (validate backup). This command runs in async way using parameter -NoWait.
+Next we fetch the operation in a while loop until it succeeds.
+The last command is used to configure protection for the backup instance.
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupPolicy.md b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupPolicy.md
index 8a0d32f40797..9271006265d1 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupPolicy.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupPolicy.md
@@ -163,4 +163,36 @@ operationalVaultedPolicyName Microsoft.DataProtection/backupVaults/backupP
The first command gets the default vaulted policy template for AzureBlob.
The second to fifteenth command defines and updates the Operational, vaulted weekly, monthly, yearly lifecycle and tagcriteria.
Next we define a trigger object with schedule time and timzone, set it to 2:30 AM West Europe standard time.
-The last command creates the hybrid AzureBlob policy.
\ No newline at end of file
+The last command creates the hybrid AzureBlob policy.
+
+### Example 6: Create policy for AzureDatabaseForPGFlexServer/AzureDatabaseForMySQL
+```powershell
+$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPGFlexServer
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 10
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault -IsDefault $true
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault -IsDefault $false
+$schDates = @(
+(
+ (Get-Date -Year 2024 -Month 03 -Day 04 -Hour 09 -Minute 0 -Second 0)
+),
+(
+ (Get-Date -Year 2024 -Month 03 -Day 05 -Hour 09 -Minute 0 -Second 0)
+))
+$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1
+Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol
+$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -MonthsOfYear January -DaysOfMonth 1,5,Last
+Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria
+$pgflexPolicy = New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "pgflex-policy" -Policy $defaultPol
+```
+
+```output
+Name Type
+---- ----
+pgflex-policy Microsoft.DataProtection/backupVaults/backupPolicies
+```
+
+The first command gets the default policy template for AzureDatabaseForPGFlexServer. These steps can also be used for AzureDatabaseForMySQL as is.
+The second to tenth command defines and updates the vaulted daily, monthly lifecycle and tagcriteria.
+Next we define a trigger object with schedule, set it to every Weekly Monday, Tuesday schedule.
+The last command creates the AzureDatabaseForPGFlexServer policy.
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md
index c768d24c0425..9fb673bdeb40 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md
@@ -12,8 +12,8 @@ LastUpdatedTime : 2023-08-29T07:23:05.1111730Z
Name : DppResourceGuardProxy
ResourceGuardId : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/hiaga-rg/providers/Microsoft.DataProtection/resourceGuard
s/mua-pstest-resguard
-ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail,
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ResourceGuardOperationDetail}
+ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail}
SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData
Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies
```
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Start-AzDataProtectionBackupInstanceRestore.md b/src/DataProtection/DataProtection.Autorest/examples/Start-AzDataProtectionBackupInstanceRestore.md
index 7caedb795872..0fcbba457cef 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Start-AzDataProtectionBackupInstanceRestore.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Start-AzDataProtectionBackupInstanceRestore.md
@@ -129,7 +129,7 @@ while($jobstatus -ne "Completed")
```
The first, second commands fetch the backup instance and recovery point for the backup instance.
-The third command initializes the ARM Id for target container. This parameter is needed for cross sub restore for AzureDatabaseForPostgreSQL and not needed for same susbscription restore.
+The third command initializes the ARM Id for target container. This parameter is needed for vaults where cross subscription restore is disabled and optional for CSR enabled vaults.
The fourth, fifth command initializes targetContainerURI and fileNamePrefix for restore.
The sixth command initializes the restore request object for AzureDatabaseForPostgreSQL restore.
The seventh command triggers validate before restore.
@@ -150,3 +150,21 @@ while($jobstatus -ne "Completed")
This command command triggers the cross region restore for AzureDatabaseForPostgreSQL. For triggering cross region restore to secondary region, use RestoreToSecondaryRegion switch.
+
+### Example 9: Trigger restore as Files for datasource type AzureDatabaseForPGFlexServer, AzureDatabaseForMySQL.
+```powershell
+$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" | Where { $_.Name -match "test-pgflex" }
+$rps = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name
+$targetContainerURI = "https://teststorageaccount.blob.core.windows.net/powershellpgflexrestore"
+$storageAccId = (Get-AzStorageAccount -ResourceGroupName "teststorageaccountRG" -Name "teststorageaccount").Id
+$pgFlexRestoreAsFilesRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPGFlexServer -SourceDataStore VaultStore -RestoreLocation $vault.Location -RestoreType RestoreAsFiles -RecoveryPoint $rps[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -PermissionsScope "ResourceGroup" -RestoreRequest $pgFlexRestoreAsFilesRequest -DatasourceType AzureDatabaseForPGFlexServer -SubscriptionId $SubscriptionId -StorageAccountARMId $storageAccId
+$validateRestore = Test-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -RestoreRequest $pgFlexRestoreAsFilesRequest -Name $instance.BackupInstanceName
+$restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.BackupInstanceName -Parameter $pgFlexRestoreAsFilesRequest
+```
+
+The first, second commands fetch the instance and recovery point for the instance.
+The third and fourthcommand initializes the target container id and target storage account ARM id.
+The fifth command initializes the restore request object for AzureDatabaseForPGFlexServer restore. This example also works for datasource type AzureDatabaseForMySQL.
+The sixth command assigns the permissions to the backup vault and other permissions necessary for triggering the restore for AzureDatabaseForPGFlexServer.
+The last command triggers the restore for AzureDatabaseForPGFlexServer.
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1
index cb9f01fbd5e2..9c01de49bd8f 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1
@@ -38,7 +38,7 @@ while($jobstatus -ne "Completed")
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc
#>
function Backup-AzDataProtectionBackupInstanceAdhoc {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='BackupExpanded', Mandatory)]
@@ -202,7 +202,13 @@ begin {
BackupViaIdentityExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded';
}
if (('BackupExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1
index 0d2913d73c11..b56d5c6eb9a9 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1
@@ -27,7 +27,7 @@ Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -
Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -67,12 +67,12 @@ POLICY : Backup Policy Object
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject
#>
function Edit-AzDataProtectionPolicyRetentionRuleClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy Object
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -97,7 +97,7 @@ param(
[Parameter(ParameterSetName='AddRetention', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle[]]
# Life cycles associated with the retention rule.
# To construct, see NOTES section for LIFECYCLES properties and create a hash table.
${LifeCycles},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1
index e3532d07b954..84123f900c7c 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTagClientObject.ps1
@@ -26,7 +26,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $
Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -67,12 +67,12 @@ POLICY : Backup Policy Object.
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject
#>
function Edit-AzDataProtectionPolicyTagClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy Object.
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -91,7 +91,7 @@ param(
[Parameter(ParameterSetName='updateTag', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria[]]
# Criterias to be associated with the schedule tag.
# To construct, see NOTES section for CRITERIA properties and create a hash table.
${Criteria}
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1
index 51f89ebd77ab..5737298e9b25 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyTriggerClientObject.ps1
@@ -24,7 +24,7 @@ $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays
Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,12 +54,12 @@ POLICY : Backup Policy object.
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject
#>
function Edit-AzDataProtectionPolicyTriggerClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveBackupSchedule', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy object.
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Find-AzDataProtectionRestorableTimeRange.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Find-AzDataProtectionRestorableTimeRange.ps1
index b60812a21543..098c5c08451a 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Find-AzDataProtectionRestorableTimeRange.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Find-AzDataProtectionRestorableTimeRange.ps1
@@ -27,12 +27,12 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName
$pointInTimeRange.RestorableTimeRange | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupFindRestorableTimeRangesResponseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange
#>
function Find-AzDataProtectionRestorableTimeRange {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupFindRestorableTimeRangesResponseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource])]
[CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -161,7 +161,13 @@ begin {
FindExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_FindExpanded';
}
if (('FindExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1
index 55150b2a1499..5b07346e40fa 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1
@@ -27,7 +27,7 @@ Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance
#>
function Get-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -172,7 +172,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1
index 14d66c64eceb..6edf12b38f3c 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1
@@ -27,7 +27,7 @@ Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy
#>
function Get-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -172,7 +172,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
index db8a99532d7b..bd7d08a505a0 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
@@ -32,7 +32,7 @@ $vault.SecureScore
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault
#>
function Get-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get')]
@@ -171,7 +171,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_GetViaIdentity';
}
if (('Get', 'Get1', 'Get2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1
index 35e164593bd3..0a0a28fc5aec 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1
@@ -29,7 +29,7 @@ Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupJobResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -53,7 +53,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob
#>
function Get-AzDataProtectionJob {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupJobResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperation.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperation.ps1
index 585e9ab31a29..46c58331a314 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperation.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperation.ps1
@@ -23,12 +23,12 @@ Returns the list of available operations.
Get-AzDataProtectionOperation
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IClientDiscoveryValueForSingleApi
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation
#>
function Get-AzDataProtectionOperation {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IClientDiscoveryValueForSingleApi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperationStatus.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperationStatus.ps1
index d10103cc26c3..c2577c8170b3 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperationStatus.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionOperationStatus.ps1
@@ -30,7 +30,7 @@ While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -54,7 +54,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperationstatus
#>
function Get-AzDataProtectionOperationStatus {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -163,7 +163,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionOperationStatus_GetViaIdentity';
}
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1
index 2779fca527bf..3123fafb9b7c 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1
@@ -23,12 +23,12 @@ Gets default policy template for a selected datasource type.
Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate
#>
function Get-AzDataProtectionPolicyTemplate {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionRecoveryPoint.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionRecoveryPoint.ps1
index 9a73046a9f2a..0c9b0e84b74d 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionRecoveryPoint.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionRecoveryPoint.ps1
@@ -32,7 +32,7 @@ $recoveryPoints = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPointResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource
.Outputs
System.Management.Automation.PSObject
.Notes
@@ -58,7 +58,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint
#>
function Get-AzDataProtectionRecoveryPoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPointResource], [PSObject])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource], [PSObject])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -204,7 +204,13 @@ begin {
List = 'Az.DataProtection.custom\Get-AzDataProtectionRecoveryPoint_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1
index 6aa917298a91..1c3f5b6ec785 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1
@@ -27,7 +27,7 @@ Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard
#>
function Get-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -164,7 +164,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_GetViaIdentity';
}
if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1
index 0499b5b781c3..0d1f439e7cac 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1
@@ -26,7 +26,7 @@ $mapping | fl
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguardmapping
#>
function Get-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -167,7 +167,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1
index 81e0f8e98696..2ee35f9135f6 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1
@@ -25,7 +25,7 @@ Get-AzDataProtectionSoftDeletedBackupInstance -ResourceGroupName $resourceGroupN
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IDeletedBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionsoftdeletedbackupinstance
#>
function Get-AzDataProtectionSoftDeletedBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IDeletedBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -169,7 +169,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionSoftDeletedBackupInstance_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
index 6b8bf5328256..d50a93e3c020 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
@@ -32,9 +32,14 @@ $snapshotResourceGroupId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/
$backupConfig = New-AzDataProtectionBackupConfigurationClientObject -SnapshotVolume $true -IncludeClusterScopeResource $true -DatasourceType AzureKubernetesService -LabelSelector "x=y","foo=bar"
$backupInstance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureKubernetesService -DatasourceLocation "eastus" -PolicyId $policy.Id -DatasourceId $sourceClusterId -SnapshotResourceGroupId $snapshotResourceGroupId -FriendlyName "aks-cluster-friendlyName" -BackupConfiguration $backupConfig
$instance
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" -Name "policyName"
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-pgflex"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPGFlexServer -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -46,7 +51,7 @@ BACKUPCONFIGURATION : Backup configuration for back
https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance
#>
function Initialize-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -101,7 +106,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupDatasourceParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
# Backup configuration for backup.
# Use this parameter to configure protection for AzureKubernetesService.
# To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table.
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionRestoreRequest.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionRestoreRequest.ps1
index 2e9857f04dd7..f686e6148e1f 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionRestoreRequest.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionRestoreRequest.ps1
@@ -57,7 +57,7 @@ $fileNamePrefix = "oss-pstest-crrasfiles"
$OssRestoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation $vault.ReplicatedRegion[0] -RestoreType RestoreAsFiles -RecoveryPoint $recoveryPointsCrr[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -112,6 +112,8 @@ RESTORECONFIGURATION : Restore configuration f
[NamespaceMapping ]: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore.
[(Any) ]: This indicates any property can be added to this object.
[PersistentVolumeRestoreMode ]: Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored.
+ [ResourceModifierReferenceName ]: Name of the resource
+ [ResourceModifierReferenceNamespace ]: Namespace in which the resource exists
[RestoreHookReference ]: Gets or sets the restore hook references. This property sets the hook reference to be executed during restore.
[Name ]: Name of the resource
[Namespace ]: Namespace in which the resource exists
@@ -119,7 +121,7 @@ RESTORECONFIGURATION : Restore configuration f
https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest
#>
function Initialize-AzDataProtectionRestoreRequest {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest])]
[CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -146,69 +148,40 @@ param(
# Restore Target Type
${RestoreType},
- [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
[Parameter(ParameterSetName='AlternateLocationFullRecovery', Mandatory)]
+ [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Specify the target resource ID for restoring backup data in an alternate location.
# For instance, provide the target database ARM ID that you want to restore to, for workloadType AzureDatabaseForPostgreSQL.
${TargetResourceId},
- [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
- [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Switch parameter to enable item level recovery.
- ${ItemLevelRecovery},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Id of the recovery point to be restored.
${RecoveryPoint},
- [Parameter(ParameterSetName='AlternateLocationILR')]
- [Parameter(ParameterSetName='OriginalLocationILR')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String[]]
- # Container names for Item Level Recovery.
- ${ContainersList},
-
- [Parameter(ParameterSetName='AlternateLocationILR')]
- [Parameter(ParameterSetName='OriginalLocationILR')]
[Parameter(ParameterSetName='AlternateLocationFullRecovery')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria]
- # Restore configuration for restore.
- # Use this parameter to restore with AzureKubernetesService.
- # To construct, see NOTES section for RESTORECONFIGURATION properties and create a hash table.
- ${RestoreConfiguration},
-
- [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # Target storage account container Id to which backup data will be restored as files.
- ${TargetContainerURI},
-
- [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # File name to be prefixed to the restored backup data.
- ${FileNamePrefix},
+ [System.DateTime]
+ # Point In Time for restore.
+ ${PointInTime},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Rehydration duration for the archived recovery point to stay rehydrated, default value for rehydration duration is 15.
${RehydrationDuration},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
@@ -216,16 +189,20 @@ param(
# This parameter is mandatory for rehydrate restore of archived points.
${RehydrationPriority},
- [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
+ [Parameter(ParameterSetName='AlternateLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # Target storage account container ARM Id to which backup data will be restored as files.
- # This parameter is required for restoring as files to another subscription.
- ${TargetResourceIdForRestoreAsFile},
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]
+ # Restore configuration for restore.
+ # Use this parameter to restore with AzureKubernetesService.
+ # To construct, see NOTES section for RESTORECONFIGURATION properties and create a hash table.
+ ${RestoreConfiguration},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
@@ -233,9 +210,9 @@ param(
# This parameter is only supported for AzureDatabaseForPostgreSQL currently.
${SecretStoreURI},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreTypes]
@@ -243,22 +220,47 @@ param(
# This parameter is only supported for AzureDatabaseForPostgreSQL currently.
${SecretStoreType},
+ [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
+ [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Switch parameter to enable item level recovery.
+ ${ItemLevelRecovery},
+
+ [Parameter(ParameterSetName='AlternateLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String[]]
+ # Container names for Item Level Recovery.
+ ${ContainersList},
+
+ [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account container Id to which backup data will be restored as files.
+ ${TargetContainerURI},
+
+ [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account container ARM Id to which backup data will be restored as files.
+ # This parameter is required for restoring as files when cross subscription restore is disabled on the backup vault.
+ ${TargetResourceIdForRestoreAsFile},
+
+ [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # File name to be prefixed to the restored backup data.
+ ${FileNamePrefix},
+
[Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
[Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]
# Backup Instance object to trigger original localtion restore.
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
- [Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
- [Parameter(ParameterSetName='OriginalLocationFullRecovery')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.DateTime]
- # Point In Time for restore.
- ${PointInTime},
-
[Parameter(ParameterSetName='OriginalLocationILR')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
@@ -298,10 +300,10 @@ begin {
}
$mapping = @{
+ AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
AlternateLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
RestoreAsFiles = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
- AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
OriginalLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1
index 0b499d376d66..a881fb75211f 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1
@@ -95,7 +95,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
# Hook reference to be executed during backup.
# To construct, see NOTES section for BACKUPHOOKREFERENCE properties and create a hash table.
${BackupHookReference},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1
index 079492c92a9e..419bac41d98e 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1
@@ -56,6 +56,18 @@ While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $
Start-Sleep -Seconds 10
}
$backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" | Where-Object { $_.DatasourceType -match "mysql" }
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforMySQL/flexibleServers/test-mysql"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForMySQL -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -BackupInstance $backupInstanceClientObject -PermissionsScope ResourceGroup
+$operationResponse = Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject.Property -NoWait
+$operationId = $operationResponse.Target.Split("/")[-1].Split("?")[0]
+While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $vault.Location -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Status -eq "Inprogress"){
+ Start-Sleep -Seconds 10
+}
+$backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -118,7 +130,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
# Backup instance request object which will be used to configure backup
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1
index 3b71a11eea8a..28a50ec50a26 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1
@@ -96,9 +96,27 @@ $defaultPol.PolicyRule[0].Trigger.ScheduleRepeatingTimeInterval[0] = "R/2023-05-
$timeZone = Get-TimeZone -ListAvailable | Where-Object { $_.Id -match "Europe" }
$defaultPol.PolicyRule[0].Trigger.ScheduleTimeZone = $timeZone[0].Id
$operationalVaultedPolicy = New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "operationalVaultedPolicyName" -Policy $defaultPol
+.Example
+$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPGFlexServer
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 10
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault -IsDefault $true
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault -IsDefault $false
+$schDates = @(
+(
+ (Get-Date -Year 2024 -Month 03 -Day 04 -Hour 09 -Minute 0 -Second 0)
+),
+(
+ (Get-Date -Year 2024 -Month 03 -Day 05 -Hour 09 -Minute 0 -Second 0)
+))
+$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1
+Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol
+$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -MonthsOfYear January -DaysOfMonth 1,5,Last
+Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria
+$pgflexPolicy = New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "pgflex-policy" -Policy $defaultPol
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -128,7 +146,7 @@ POLICY : Policy Request Object
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy
#>
function New-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -151,7 +169,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Policy Request Object
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1
index 9ac77b4064c3..526c0d050dcc 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1
@@ -65,7 +65,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IStorageSetting[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IStorageSetting[]]
# Storage Settings of the vault.
# Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create.
# To construct, see NOTES section for STORAGESETTING properties and create a hash table.
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1
index e7b91e1f43af..b6d2cee719a9 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1
@@ -25,12 +25,12 @@ New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay
New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday")
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject
#>
function New-AzDataProtectionPolicyTagCriteriaClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria])]
[CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionResourceGuard.ps1
index af968b7fccb1..2b26a25f556b 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionResourceGuard.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionResourceGuard.ps1
@@ -23,12 +23,12 @@ Creates a resource guard under a resource group
New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard
#>
function New-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRestoreConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRestoreConfigurationClientObject.ps1
index 5751d8413bbb..566645dc74bd 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRestoreConfigurationClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRestoreConfigurationClientObject.ps1
@@ -95,7 +95,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteriaNamespaceMappings]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings]
# Namespaces mapping from source namespaces to target namespaces to resolve namespace naming conflicts in the target cluster.
# To construct, see NOTES section for NAMESPACEMAPPING properties and create a hash table.
${NamespaceMapping},
@@ -110,7 +110,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
# Hook reference to be executed during restore.
# To construct, see NOTES section for RESTOREHOOKREFERENCE properties and create a hash table.
${RestoreHookReference}
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1
index db09b6e491b5..2f6dab3e4082 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionRetentionLifeCycleClientObject.ps1
@@ -25,12 +25,12 @@ New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalS
New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject
#>
function New-AzDataProtectionRetentionLifeCycleClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DataProtection/DataProtection.Autorest/exports/ProxyCmdletDefinitions.ps1
index cccbf4bc4ceb..8e5d7bcc0be7 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -38,7 +38,7 @@ while($jobstatus -ne "Completed")
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -62,7 +62,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc
#>
function Backup-AzDataProtectionBackupInstanceAdhoc {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='BackupExpanded', Mandatory)]
@@ -202,7 +202,13 @@ begin {
BackupViaIdentityExpanded = 'Az.DataProtection.private\Backup-AzDataProtectionBackupInstanceAdhoc_BackupViaIdentityExpanded';
}
if (('BackupExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -267,12 +273,12 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName
$pointInTimeRange.RestorableTimeRange | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupFindRestorableTimeRangesResponseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange
#>
function Find-AzDataProtectionRestorableTimeRange {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupFindRestorableTimeRangesResponseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource])]
[CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -401,7 +407,13 @@ begin {
FindExpanded = 'Az.DataProtection.private\Find-AzDataProtectionRestorableTimeRange_FindExpanded';
}
if (('FindExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -466,7 +478,7 @@ Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -490,7 +502,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance
#>
function Get-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -611,7 +623,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstance_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -676,7 +694,7 @@ Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -700,7 +718,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy
#>
function Get-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -821,7 +839,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionBackupPolicy_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -891,7 +915,7 @@ $vault.SecureScore
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -915,7 +939,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault
#>
function Get-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get')]
@@ -1030,7 +1054,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionBackupVault_GetViaIdentity';
}
if (('Get', 'Get1', 'Get2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1098,7 +1128,7 @@ While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1122,7 +1152,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperationstatus
#>
function Get-AzDataProtectionOperationStatus {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1231,7 +1261,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionOperationStatus_GetViaIdentity';
}
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1292,12 +1328,12 @@ Returns the list of available operations.
Get-AzDataProtectionOperation
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IClientDiscoveryValueForSingleApi
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation
#>
function Get-AzDataProtectionOperation {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IClientDiscoveryValueForSingleApi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -1445,7 +1481,7 @@ $recoveryPoints = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPointResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource
.Outputs
System.Management.Automation.PSObject
.Notes
@@ -1471,7 +1507,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint
#>
function Get-AzDataProtectionRecoveryPoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRecoveryPointResource], [PSObject])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource], [PSObject])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1617,7 +1653,13 @@ begin {
List = 'Az.DataProtection.custom\Get-AzDataProtectionRecoveryPoint_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1681,7 +1723,7 @@ $mapping | fl
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1705,7 +1747,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguardmapping
#>
function Get-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1822,7 +1864,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -1887,7 +1935,7 @@ Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1911,7 +1959,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard
#>
function Get-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -2024,7 +2072,13 @@ begin {
GetViaIdentity = 'Az.DataProtection.private\Get-AzDataProtectionResourceGuard_GetViaIdentity';
}
if (('Get', 'Get1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2087,7 +2141,7 @@ Get-AzDataProtectionSoftDeletedBackupInstance -ResourceGroupName $resourceGroupN
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IDeletedBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2111,7 +2165,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionsoftdeletedbackupinstance
#>
function Get-AzDataProtectionSoftDeletedBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IDeletedBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -2231,7 +2285,13 @@ begin {
List = 'Az.DataProtection.private\Get-AzDataProtectionSoftDeletedBackupInstance_List';
}
if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2454,7 +2514,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2665,7 +2731,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -2880,7 +2952,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3089,7 +3167,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3292,7 +3376,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3513,7 +3603,13 @@ begin {
ResumeViaIdentity = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_ResumeViaIdentity';
}
if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3575,7 +3671,7 @@ $proxy = Set-AzDataProtectionResourceGuardMapping -ResourceGroupName $resourceGr
$proxy | fl
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3588,7 +3684,7 @@ RESOURCEGUARDOPERATIONDETAIL : .
https://learn.microsoft.com/powershell/module/az.dataprotection/set-azdataprotectionresourceguardmapping
#>
function Set-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -3699,7 +3795,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -3920,7 +4022,13 @@ begin {
StopViaIdentity = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_StopViaIdentity';
}
if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -4141,7 +4249,13 @@ begin {
SuspendViaIdentity = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_SuspendViaIdentity';
}
if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -4342,7 +4456,13 @@ begin {
SyncExpanded = 'Az.DataProtection.private\Sync-AzDataProtectionBackupInstance_SyncExpanded';
}
if (('SyncExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -4408,7 +4528,7 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $
Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -4451,7 +4571,7 @@ BACKUPINSTANCE : Backup Instance
https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness
#>
function Test-AzDataProtectionBackupInstanceReadiness {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -4477,7 +4597,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstance]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstance]
# Backup Instance
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
@@ -4572,7 +4692,13 @@ begin {
ValidateExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded';
}
if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -4794,7 +4920,13 @@ begin {
UndeleteViaIdentity = 'Az.DataProtection.private\Undo-AzDataProtectionBackupInstanceDeletion_UndeleteViaIdentity';
}
if (('Undelete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -4864,7 +4996,7 @@ Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -4888,7 +5020,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault
#>
function Update-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -4980,7 +5112,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IPatchResourceRequestInputTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IPatchResourceRequestInputTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -5076,7 +5208,13 @@ begin {
UpdateViaIdentityExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
@@ -5141,7 +5279,7 @@ Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -
Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $pol -Name Weekly -RemoveRule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5181,12 +5319,12 @@ POLICY : Backup Policy Object
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicyretentionruleclientobject
#>
function Edit-AzDataProtectionPolicyRetentionRuleClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy Object
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -5211,7 +5349,7 @@ param(
[Parameter(ParameterSetName='AddRetention', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle[]]
# Life cycles associated with the retention rule.
# To construct, see NOTES section for LIFECYCLES properties and create a hash table.
${LifeCycles},
@@ -5314,7 +5452,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -Criteria $
Edit-AzDataProtectionPolicyTagClientObject -Policy $pol -Name Weekly -RemoveRule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5355,12 +5493,12 @@ POLICY : Backup Policy Object.
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytagclientobject
#>
function Edit-AzDataProtectionPolicyTagClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy Object.
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -5379,7 +5517,7 @@ param(
[Parameter(ParameterSetName='updateTag', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria[]]
# Criterias to be associated with the schedule tag.
# To construct, see NOTES section for CRITERIA properties and create a hash table.
${Criteria}
@@ -5474,7 +5612,7 @@ $schedule = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays
Edit-AzDataProtectionPolicyTriggerClientObject -Policy $pol -Schedule $schedule
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5504,12 +5642,12 @@ POLICY : Backup Policy object.
https://learn.microsoft.com/powershell/module/az.dataprotection/edit-azdataprotectionpolicytriggerclientobject
#>
function Edit-AzDataProtectionPolicyTriggerClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveBackupSchedule', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Backup Policy object.
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -5621,7 +5759,7 @@ Get-AzDataProtectionJob -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupJobResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5645,7 +5783,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob
#>
function Get-AzDataProtectionJob {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupJobResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='List', Mandatory)]
@@ -5820,12 +5958,12 @@ Gets default policy template for a selected datasource type.
Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDisk
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate
#>
function Get-AzDataProtectionPolicyTemplate {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -5931,9 +6069,14 @@ $snapshotResourceGroupId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/
$backupConfig = New-AzDataProtectionBackupConfigurationClientObject -SnapshotVolume $true -IncludeClusterScopeResource $true -DatasourceType AzureKubernetesService -LabelSelector "x=y","foo=bar"
$backupInstance = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureKubernetesService -DatasourceLocation "eastus" -PolicyId $policy.Id -DatasourceId $sourceClusterId -SnapshotResourceGroupId $snapshotResourceGroupId -FriendlyName "aks-cluster-friendlyName" -BackupConfiguration $backupConfig
$instance
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" -Name "policyName"
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforPostgreSQL/flexibleServers/test-pgflex"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPGFlexServer -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -5945,7 +6088,7 @@ BACKUPCONFIGURATION : Backup configuration for back
https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionbackupinstance
#>
function Initialize-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -6000,7 +6143,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupDatasourceParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
# Backup configuration for backup.
# Use this parameter to configure protection for AzureKubernetesService.
# To construct, see NOTES section for BACKUPCONFIGURATION properties and create a hash table.
@@ -6128,7 +6271,7 @@ $fileNamePrefix = "oss-pstest-crrasfiles"
$OssRestoreReq = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPostgreSQL -SourceDataStore VaultStore -RestoreLocation $vault.ReplicatedRegion[0] -RestoreType RestoreAsFiles -RecoveryPoint $recoveryPointsCrr[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI -FileNamePrefix $fileNamePrefix
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -6183,6 +6326,8 @@ RESTORECONFIGURATION : Restore configuration f
[NamespaceMapping ]: Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore.
[(Any) ]: This indicates any property can be added to this object.
[PersistentVolumeRestoreMode ]: Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored.
+ [ResourceModifierReferenceName ]: Name of the resource
+ [ResourceModifierReferenceNamespace ]: Namespace in which the resource exists
[RestoreHookReference ]: Gets or sets the restore hook references. This property sets the hook reference to be executed during restore.
[Name ]: Name of the resource
[Namespace ]: Namespace in which the resource exists
@@ -6190,7 +6335,7 @@ RESTORECONFIGURATION : Restore configuration f
https://learn.microsoft.com/powershell/module/az.dataprotection/initialize-azdataprotectionrestorerequest
#>
function Initialize-AzDataProtectionRestoreRequest {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest])]
[CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -6217,69 +6362,40 @@ param(
# Restore Target Type
${RestoreType},
- [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
[Parameter(ParameterSetName='AlternateLocationFullRecovery', Mandatory)]
+ [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Specify the target resource ID for restoring backup data in an alternate location.
# For instance, provide the target database ARM ID that you want to restore to, for workloadType AzureDatabaseForPostgreSQL.
${TargetResourceId},
- [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
- [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.Management.Automation.SwitchParameter]
- # Switch parameter to enable item level recovery.
- ${ItemLevelRecovery},
-
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Id of the recovery point to be restored.
${RecoveryPoint},
- [Parameter(ParameterSetName='AlternateLocationILR')]
- [Parameter(ParameterSetName='OriginalLocationILR')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String[]]
- # Container names for Item Level Recovery.
- ${ContainersList},
-
- [Parameter(ParameterSetName='AlternateLocationILR')]
- [Parameter(ParameterSetName='OriginalLocationILR')]
[Parameter(ParameterSetName='AlternateLocationFullRecovery')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteria]
- # Restore configuration for restore.
- # Use this parameter to restore with AzureKubernetesService.
- # To construct, see NOTES section for RESTORECONFIGURATION properties and create a hash table.
- ${RestoreConfiguration},
-
- [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # Target storage account container Id to which backup data will be restored as files.
- ${TargetContainerURI},
-
- [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # File name to be prefixed to the restored backup data.
- ${FileNamePrefix},
+ [System.DateTime]
+ # Point In Time for restore.
+ ${PointInTime},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Rehydration duration for the archived recovery point to stay rehydrated, default value for rehydration duration is 15.
${RehydrationDuration},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
@@ -6287,16 +6403,20 @@ param(
# This parameter is mandatory for rehydrate restore of archived points.
${RehydrationPriority},
- [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
+ [Parameter(ParameterSetName='AlternateLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.String]
- # Target storage account container ARM Id to which backup data will be restored as files.
- # This parameter is required for restoring as files to another subscription.
- ${TargetResourceIdForRestoreAsFile},
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]
+ # Restore configuration for restore.
+ # Use this parameter to restore with AzureKubernetesService.
+ # To construct, see NOTES section for RESTORECONFIGURATION properties and create a hash table.
+ ${RestoreConfiguration},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
@@ -6304,9 +6424,9 @@ param(
# This parameter is only supported for AzureDatabaseForPostgreSQL currently.
${SecretStoreURI},
+ [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='RestoreAsFiles')]
[Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SecretStoreTypes]
@@ -6314,22 +6434,47 @@ param(
# This parameter is only supported for AzureDatabaseForPostgreSQL currently.
${SecretStoreType},
+ [Parameter(ParameterSetName='AlternateLocationILR', Mandatory)]
+ [Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Switch parameter to enable item level recovery.
+ ${ItemLevelRecovery},
+
+ [Parameter(ParameterSetName='AlternateLocationILR')]
+ [Parameter(ParameterSetName='OriginalLocationILR')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String[]]
+ # Container names for Item Level Recovery.
+ ${ContainersList},
+
+ [Parameter(ParameterSetName='RestoreAsFiles', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account container Id to which backup data will be restored as files.
+ ${TargetContainerURI},
+
+ [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account container ARM Id to which backup data will be restored as files.
+ # This parameter is required for restoring as files when cross subscription restore is disabled on the backup vault.
+ ${TargetResourceIdForRestoreAsFile},
+
+ [Parameter(ParameterSetName='RestoreAsFiles')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # File name to be prefixed to the restored backup data.
+ ${FileNamePrefix},
+
[Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
[Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]
# Backup Instance object to trigger original localtion restore.
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
- [Parameter(ParameterSetName='OriginalLocationILR')]
- [Parameter(ParameterSetName='AlternateLocationFullRecovery')]
- [Parameter(ParameterSetName='OriginalLocationFullRecovery')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [System.DateTime]
- # Point In Time for restore.
- ${PointInTime},
-
[Parameter(ParameterSetName='OriginalLocationILR')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
@@ -6369,10 +6514,10 @@ begin {
}
$mapping = @{
+ AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
AlternateLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
RestoreAsFiles = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
OriginalLocationILR = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
- AlternateLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
OriginalLocationFullRecovery = 'Az.DataProtection.custom\Initialize-AzDataProtectionRestoreRequest';
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
@@ -6506,7 +6651,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
# Hook reference to be executed during backup.
# To construct, see NOTES section for BACKUPHOOKREFERENCE properties and create a hash table.
${BackupHookReference},
@@ -6660,6 +6805,18 @@ While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $
Start-Sleep -Seconds 10
}
$backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$pol = Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -ResourceGroupName "resourceGroupName" | Where-Object { $_.DatasourceType -match "mysql" }
+$datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName/providers/Microsoft.DBforMySQL/flexibleServers/test-mysql"
+$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForMySQL -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -BackupInstance $backupInstanceClientObject -PermissionsScope ResourceGroup
+$operationResponse = Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject.Property -NoWait
+$operationId = $operationResponse.Target.Split("/")[-1].Split("?")[0]
+While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $vault.Location -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Status -eq "Inprogress"){
+ Start-Sleep -Seconds 10
+}
+$backupnstanceCreate = New-AzDataProtectionBackupInstance -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -BackupInstance $backupInstanceClientObject
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -6722,7 +6879,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
# Backup instance request object which will be used to configure backup
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
@@ -6950,9 +7107,27 @@ $defaultPol.PolicyRule[0].Trigger.ScheduleRepeatingTimeInterval[0] = "R/2023-05-
$timeZone = Get-TimeZone -ListAvailable | Where-Object { $_.Id -match "Europe" }
$defaultPol.PolicyRule[0].Trigger.ScheduleTimeZone = $timeZone[0].Id
$operationalVaultedPolicy = New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "operationalVaultedPolicyName" -Policy $defaultPol
+.Example
+$defaultPol = Get-AzDataProtectionPolicyTemplate -DatasourceType AzureDatabaseForPGFlexServer
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Days -SourceRetentionDurationCount 10
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Default -LifeCycles $lifeCycleVault -IsDefault $true
+$lifeCycleVault = New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore VaultStore -SourceRetentionDurationType Months -SourceRetentionDurationCount 6
+Edit-AzDataProtectionPolicyRetentionRuleClientObject -Policy $defaultPol -Name Monthly -LifeCycles $lifeCycleVault -IsDefault $false
+$schDates = @(
+(
+ (Get-Date -Year 2024 -Month 03 -Day 04 -Hour 09 -Minute 0 -Second 0)
+),
+(
+ (Get-Date -Year 2024 -Month 03 -Day 05 -Hour 09 -Minute 0 -Second 0)
+))
+$trigger = New-AzDataProtectionPolicyTriggerScheduleClientObject -ScheduleDays $schDates -IntervalType Weekly -IntervalCount 1
+Edit-AzDataProtectionPolicyTriggerClientObject -Schedule $trigger -Policy $defaultPol
+$tagCriteria = New-AzDataProtectionPolicyTagCriteriaClientObject -MonthsOfYear January -DaysOfMonth 1,5,Last
+Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Criteria $tagCriteria
+$pgflexPolicy = New-AzDataProtectionBackupPolicy -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Name "pgflex-policy" -Policy $defaultPol
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -6982,7 +7157,7 @@ POLICY : Policy Request Object
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackuppolicy
#>
function New-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -7005,7 +7180,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
# Policy Request Object
# To construct, see NOTES section for POLICY properties and create a hash table.
${Policy},
@@ -7186,7 +7361,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IStorageSetting[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IStorageSetting[]]
# Storage Settings of the vault.
# Use New-AzDataProtectionBackupVaultStorageSetting Cmdlet to Create.
# To construct, see NOTES section for STORAGESETTING properties and create a hash table.
@@ -7505,12 +7680,12 @@ New-AzDataProtectionPolicyTagCriteriaClientObject -AbsoluteCriteria FirstOfDay
New-AzDataProtectionPolicyTagCriteriaClientObject -DaysOfWeek @("Sunday", "Monday")
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject
#>
function New-AzDataProtectionPolicyTagCriteriaClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IScheduleBasedBackupCriteria])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria])]
[CmdletBinding(DefaultParameterSetName='ScheduleCriteria', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='AbsoluteCriteria', Mandatory)]
@@ -7760,12 +7935,12 @@ Creates a resource guard under a resource group
New-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "mua-rg" -Name "mua-resource-guard" -Location "centraluseuap"
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard
#>
function New-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='CreateResourceGuard', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -8010,7 +8185,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.KubernetesClusterRestoreCriteriaNamespaceMappings]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings]
# Namespaces mapping from source namespaces to target namespaces to resolve namespace naming conflicts in the target cluster.
# To construct, see NOTES section for NAMESPACEMAPPING properties and create a hash table.
${NamespaceMapping},
@@ -8025,7 +8200,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
# Hook reference to be executed during restore.
# To construct, see NOTES section for RESTOREHOOKREFERENCE properties and create a hash table.
${RestoreHookReference}
@@ -8120,12 +8295,12 @@ New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalS
New-AzDataProtectionRetentionLifeCycleClientObject -SourceDataStore OperationalStore -SourceRetentionDurationType Weeks -SourceRetentionDurationCount 20
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject
#>
function New-AzDataProtectionRetentionLifeCycleClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISourceLifeCycle])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -8425,18 +8600,21 @@ function Search-AzDataProtectionBackupVaultInAzGraph {
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
+ [Alias('SubscriptionId')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Subscription of Vault
${Subscription},
[Parameter()]
+ [Alias('ResourceGroupName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Resource Group of Vault
${ResourceGroup},
[Parameter()]
+ [Alias('VaultName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Name of the vault
@@ -8826,6 +9004,7 @@ function Set-AzDataProtectionMSIPermission {
[CmdletBinding(DefaultParameterSetName='SetPermissionsForBackup', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ResourceGroupName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Resource group of the backup vault
@@ -8845,7 +9024,7 @@ param(
[Parameter(ParameterSetName='SetPermissionsForBackup', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
# Backup instance request object which will be used to configure backup
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
@@ -8858,16 +9037,35 @@ param(
[Parameter(ParameterSetName='SetPermissionsForRestore', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object which will be used for restore
# To construct, see NOTES section for RESTOREREQUEST properties and create a hash table.
${RestoreRequest},
- [Parameter(ParameterSetName='SetPermissionsForRestore', Mandatory)]
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Subscription Id of the backup vault
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes]
+ # Datasource Type
+ ${DatasourceType},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Sanpshot Resource Group
- ${SnapshotResourceGroupId}
+ ${SnapshotResourceGroupId},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account ARM Id.
+ # Use this parameter for DatasourceType AzureDatabaseForMySQL, AzureDatabaseForPGFlexServer.
+ ${StorageAccountARMId}
)
begin {
@@ -9041,11 +9239,20 @@ while($jobstatus -ne "Completed")
$currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -UseSecondaryRegion
$jobstatus = $currentjob.Status
}
+.Example
+$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" | Where { $_.Name -match "test-pgflex" }
+$rps = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name
+$targetContainerURI = "https://teststorageaccount.blob.core.windows.net/powershellpgflexrestore"
+$storageAccId = (Get-AzStorageAccount -ResourceGroupName "teststorageaccountRG" -Name "teststorageaccount").Id
+$pgFlexRestoreAsFilesRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPGFlexServer -SourceDataStore VaultStore -RestoreLocation $vault.Location -RestoreType RestoreAsFiles -RecoveryPoint $rps[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -PermissionsScope "ResourceGroup" -RestoreRequest $pgFlexRestoreAsFilesRequest -DatasourceType AzureDatabaseForPGFlexServer -SubscriptionId $SubscriptionId -StorageAccountARMId $storageAccId
+$validateRestore = Test-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -RestoreRequest $pgFlexRestoreAsFilesRequest -Name $instance.BackupInstanceName
+$restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.BackupInstanceName -Parameter $pgFlexRestoreAsFilesRequest
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -9068,7 +9275,7 @@ RESTORETARGETINFO : Gets or sets the restore target info
https://learn.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore
#>
function Start-AzDataProtectionBackupInstanceRestore {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -9091,7 +9298,7 @@ param(
[Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object to be initialized using Initialize-AzDataProtectionRestoreRequest cmdlet
# To construct, see NOTES section for PARAMETER properties and create a hash table.
${Parameter},
@@ -9168,7 +9375,7 @@ param(
[Parameter(ParameterSetName='TriggerExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IRestoreTargetInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IRestoreTargetInfoBase]
# Gets or sets the restore target information
# To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table.
${RestoreTargetInfo},
@@ -9292,7 +9499,7 @@ $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0
$validateRestore = Test-AzDataProtectionBackupInstanceRestore -ResourceGroupName $ResourceGroupName -Name $instance[0].Name -VaultName $VaultName -RestoreRequest $RestoreRequestObject -SubscriptionId $SubscriptionId -RestoreToSecondaryRegion
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -9311,7 +9518,7 @@ RESTOREREQUEST : Restore request object for which to
https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore
#>
function Test-AzDataProtectionBackupInstanceRestore {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='ValidateRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -9334,7 +9541,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object for which to validate
# To construct, see NOTES section for RESTOREREQUEST properties and create a hash table.
${RestoreRequest},
@@ -9558,8 +9765,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Parameter to authorize operations protected by cross tenant resource guard.
- # Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
- # Token to fetch authorization token for different tenant.
+ # Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Token to fetch authorization token for different tenant.
${Token},
[Parameter()]
@@ -9693,12 +9899,12 @@ $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupNa
Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy
#>
function Update-AzDataProtectionBackupInstanceAssociatedPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -9872,12 +10078,12 @@ $operationsToBeExcluded = $criticalOperations | Where-Object { $_ -match "backup
Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard
#>
function Update-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupInstance.ps1
index e54184dc8d2e..7b1b63469fbb 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupInstance.ps1
@@ -185,7 +185,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupInstance_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupPolicy.ps1
index f5b95a19eafa..c75daa50a39f 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupPolicy.ps1
@@ -173,7 +173,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupPolicy_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupVault.ps1
index 418c3ba2dd59..5acdb01eb7ad 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionBackupVault.ps1
@@ -177,7 +177,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionBackupVault_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuard.ps1
index 1183c657a479..868fb920ba09 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuard.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuard.ps1
@@ -165,7 +165,13 @@ begin {
DeleteViaIdentity = 'Az.DataProtection.private\Remove-AzDataProtectionResourceGuard_DeleteViaIdentity';
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuardMapping.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuardMapping.ps1
index 8877cce18fb1..918892b7b3b3 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuardMapping.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Remove-AzDataProtectionResourceGuardMapping.ps1
@@ -171,7 +171,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1
index ed26e504a7e7..ab0f31e78edd 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Resume-AzDataProtectionBackupInstanceProtection.ps1
@@ -183,7 +183,13 @@ begin {
ResumeViaIdentity = 'Az.DataProtection.private\Resume-AzDataProtectionBackupInstanceProtection_ResumeViaIdentity';
}
if (('Resume') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Search-AzDataProtectionBackupVaultInAzGraph.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Search-AzDataProtectionBackupVaultInAzGraph.ps1
index 556e63d69626..0e33eb00afb4 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Search-AzDataProtectionBackupVaultInAzGraph.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Search-AzDataProtectionBackupVaultInAzGraph.ps1
@@ -32,18 +32,21 @@ function Search-AzDataProtectionBackupVaultInAzGraph {
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
+ [Alias('SubscriptionId')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Subscription of Vault
${Subscription},
[Parameter()]
+ [Alias('ResourceGroupName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Resource Group of Vault
${ResourceGroup},
[Parameter()]
+ [Alias('VaultName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String[]]
# Name of the vault
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionMSIPermission.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionMSIPermission.ps1
index 38c1854e62d9..776e4caf8018 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionMSIPermission.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionMSIPermission.ps1
@@ -91,6 +91,7 @@ function Set-AzDataProtectionMSIPermission {
[CmdletBinding(DefaultParameterSetName='SetPermissionsForBackup', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
+ [Alias('ResourceGroupName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Resource group of the backup vault
@@ -110,7 +111,7 @@ param(
[Parameter(ParameterSetName='SetPermissionsForBackup', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
# Backup instance request object which will be used to configure backup
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
@@ -123,16 +124,35 @@ param(
[Parameter(ParameterSetName='SetPermissionsForRestore', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object which will be used for restore
# To construct, see NOTES section for RESTOREREQUEST properties and create a hash table.
${RestoreRequest},
- [Parameter(ParameterSetName='SetPermissionsForRestore', Mandatory)]
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Subscription Id of the backup vault
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.DatasourceTypes]
+ # Datasource Type
+ ${DatasourceType},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Sanpshot Resource Group
- ${SnapshotResourceGroupId}
+ ${SnapshotResourceGroupId},
+
+ [Parameter(ParameterSetName='SetPermissionsForRestore')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # Target storage account ARM Id.
+ # Use this parameter for DatasourceType AzureDatabaseForMySQL, AzureDatabaseForPGFlexServer.
+ ${StorageAccountARMId}
)
begin {
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionResourceGuardMapping.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionResourceGuardMapping.ps1
index e9b8919dc60a..91e26d2dd426 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionResourceGuardMapping.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Set-AzDataProtectionResourceGuardMapping.ps1
@@ -24,7 +24,7 @@ $proxy = Set-AzDataProtectionResourceGuardMapping -ResourceGroupName $resourceGr
$proxy | fl
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -37,7 +37,7 @@ RESOURCEGUARDOPERATIONDETAIL : .
https://learn.microsoft.com/powershell/module/az.dataprotection/set-azdataprotectionresourceguardmapping
#>
function Set-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -148,7 +148,13 @@ begin {
$PSBoundParameters['ResourceGuardProxyName'] = "DppResourceGuardProxy"
}
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Start-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Start-AzDataProtectionBackupInstanceRestore.ps1
index f199844aaea8..36b1484e8648 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Start-AzDataProtectionBackupInstanceRestore.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Start-AzDataProtectionBackupInstanceRestore.ps1
@@ -106,11 +106,20 @@ while($jobstatus -ne "Completed")
$currentjob = Get-AzDataProtectionJob -Id $jobid -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -UseSecondaryRegion
$jobstatus = $currentjob.Status
}
+.Example
+$instance = Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" | Where { $_.Name -match "test-pgflex" }
+$rps = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.Name
+$targetContainerURI = "https://teststorageaccount.blob.core.windows.net/powershellpgflexrestore"
+$storageAccId = (Get-AzStorageAccount -ResourceGroupName "teststorageaccountRG" -Name "teststorageaccount").Id
+$pgFlexRestoreAsFilesRequest = Initialize-AzDataProtectionRestoreRequest -DatasourceType AzureDatabaseForPGFlexServer -SourceDataStore VaultStore -RestoreLocation $vault.Location -RestoreType RestoreAsFiles -RecoveryPoint $rps[0].Property.RecoveryPointId -TargetContainerURI $targetContainerURI
+Set-AzDataProtectionMSIPermission -VaultResourceGroup "resourceGroupName" -VaultName "vaultName" -PermissionsScope "ResourceGroup" -RestoreRequest $pgFlexRestoreAsFilesRequest -DatasourceType AzureDatabaseForPGFlexServer -SubscriptionId $SubscriptionId -StorageAccountARMId $storageAccId
+$validateRestore = Test-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -RestoreRequest $pgFlexRestoreAsFilesRequest -Name $instance.BackupInstanceName
+$restoreJob = Start-AzDataProtectionBackupInstanceRestore -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -BackupInstanceName $instance.BackupInstanceName -Parameter $pgFlexRestoreAsFilesRequest
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -133,7 +142,7 @@ RESTORETARGETINFO : Gets or sets the restore target info
https://learn.microsoft.com/powershell/module/az.dataprotection/start-azdataprotectionbackupinstancerestore
#>
function Start-AzDataProtectionBackupInstanceRestore {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='Trigger', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -156,7 +165,7 @@ param(
[Parameter(ParameterSetName='Trigger', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object to be initialized using Initialize-AzDataProtectionRestoreRequest cmdlet
# To construct, see NOTES section for PARAMETER properties and create a hash table.
${Parameter},
@@ -233,7 +242,7 @@ param(
[Parameter(ParameterSetName='TriggerExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IRestoreTargetInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IRestoreTargetInfoBase]
# Gets or sets the restore target information
# To construct, see NOTES section for RESTORETARGETINFO properties and create a hash table.
${RestoreTargetInfo},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1
index 0b27c2b6f31d..d0263ba8aa94 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Stop-AzDataProtectionBackupInstanceProtection.ps1
@@ -183,7 +183,13 @@ begin {
StopViaIdentity = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_StopViaIdentity';
}
if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1
index e65678760cb2..a37379fb0c92 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Suspend-AzDataProtectionBackupInstanceBackup.ps1
@@ -183,7 +183,13 @@ begin {
SuspendViaIdentity = 'Az.DataProtection.private\Suspend-AzDataProtectionBackupInstanceBackup_SuspendViaIdentity';
}
if (('Suspend') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Sync-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Sync-AzDataProtectionBackupInstance.ps1
index b3a6ef10097e..f7ccba09dc25 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Sync-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Sync-AzDataProtectionBackupInstance.ps1
@@ -163,7 +163,13 @@ begin {
SyncExpanded = 'Az.DataProtection.private\Sync-AzDataProtectionBackupInstance_SyncExpanded';
}
if (('SyncExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1
index a17dbf49db2b..9dd72959192e 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceReadiness.ps1
@@ -28,7 +28,7 @@ $instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $
Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -71,7 +71,7 @@ BACKUPINSTANCE : Backup Instance
https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancereadiness
#>
function Test-AzDataProtectionBackupInstanceReadiness {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='ValidateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -97,7 +97,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstance]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstance]
# Backup Instance
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
@@ -192,7 +192,13 @@ begin {
ValidateExpanded = 'Az.DataProtection.private\Test-AzDataProtectionBackupInstanceReadiness_ValidateExpanded';
}
if (('ValidateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceRestore.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceRestore.ps1
index 0818cb1f687d..d32c04a99562 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceRestore.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Test-AzDataProtectionBackupInstanceRestore.ps1
@@ -29,7 +29,7 @@ $validateRestore = Test-AzDataProtectionBackupInstanceRestore -Name $instances[0
$validateRestore = Test-AzDataProtectionBackupInstanceRestore -ResourceGroupName $ResourceGroupName -Name $instance[0].Name -VaultName $VaultName -RestoreRequest $RestoreRequestObject -SubscriptionId $SubscriptionId -RestoreToSecondaryRegion
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,7 +48,7 @@ RESTOREREQUEST : Restore request object for which to
https://learn.microsoft.com/powershell/module/az.dataprotection/test-azdataprotectionbackupinstancerestore
#>
function Test-AzDataProtectionBackupInstanceRestore {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='ValidateRestore', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -71,7 +71,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
# Restore request object for which to validate
# To construct, see NOTES section for RESTOREREQUEST properties and create a hash table.
${RestoreRequest},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Undo-AzDataProtectionBackupInstanceDeletion.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Undo-AzDataProtectionBackupInstanceDeletion.ps1
index 7fd599011611..d3de49d3fc58 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Undo-AzDataProtectionBackupInstanceDeletion.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Undo-AzDataProtectionBackupInstanceDeletion.ps1
@@ -184,7 +184,13 @@ begin {
UndeleteViaIdentity = 'Az.DataProtection.private\Undo-AzDataProtectionBackupInstanceDeletion_UndeleteViaIdentity';
}
if (('Undelete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Unlock-AzDataProtectionResourceGuardOperation.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Unlock-AzDataProtectionResourceGuardOperation.ps1
index 748e5b698e31..1c054cf313a4 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Unlock-AzDataProtectionResourceGuardOperation.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Unlock-AzDataProtectionResourceGuardOperation.ps1
@@ -92,8 +92,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
# Parameter to authorize operations protected by cross tenant resource guard.
- # Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
- # Token to fetch authorization token for different tenant.
+ # Use command (Get-AzAccessToken -TenantId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").Token to fetch authorization token for different tenant.
${Token},
[Parameter()]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
index a75a3dd3dfbe..77f72631aff1 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
@@ -26,12 +26,12 @@ $policy = Get-AzDataProtectionBackupPolicy -SubscriptionId $sub -ResourceGroupNa
Update-AzDataProtectionBackupInstanceAssociatedPolicy -SubscriptionId $sub -ResourceGroupName sarath-rg -VaultName sarath-vault -BackupInstanceName $instance[0].Name -PolicyId $policy[1].Id
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupinstanceassociatedpolicy
#>
function Update-AzDataProtectionBackupInstanceAssociatedPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupVault.ps1
index d1cfa5697d73..66d475631bc8 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionBackupVault.ps1
@@ -32,7 +32,7 @@ Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,7 +56,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionbackupvault
#>
function Update-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
@@ -148,7 +148,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IPatchResourceRequestInputTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IPatchResourceRequestInputTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
@@ -244,7 +244,13 @@ begin {
UpdateViaIdentityExpanded = 'Az.DataProtection.private\Update-AzDataProtectionBackupVault_UpdateViaIdentityExpanded';
}
if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName) }
+ if ($testPlayback) {
+ $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
+ } else {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
}
$cmdInfo = Get-Command -Name $mapping[$parameterSet]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionResourceGuard.ps1
index e7373e487f3b..c6cc294e73be 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionResourceGuard.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Update-AzDataProtectionResourceGuard.ps1
@@ -26,12 +26,12 @@ $operationsToBeExcluded = $criticalOperations | Where-Object { $_ -match "backup
Update-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "rgName" -Name $resourceGuard.Name -CriticalOperationExclusionList $operationsToBeExcluded
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/update-azdataprotectionresourceguard
#>
function Update-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='UpdateResourceGuardOperations', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/generated/api/DataProtection.cs b/src/DataProtection/DataProtection.Autorest/generated/api/DataProtection.cs
index c9e5a8dae21c..d2b4af9547a3 100644
--- a/src/DataProtection/DataProtection.Autorest/generated/api/DataProtection.cs
+++ b/src/DataProtection/DataProtection.Autorest/generated/api/DataProtection.cs
@@ -27,9 +27,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -76,9 +76,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesAdhocBackupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerBackupRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -137,7 +137,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -252,13 +252,13 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -286,7 +286,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesAdhocBackup_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerBackupRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -316,9 +316,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -364,9 +364,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -424,7 +424,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -541,13 +541,13 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -575,7 +575,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -605,9 +605,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesDelete(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesDelete(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -649,9 +649,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -706,7 +706,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -836,7 +836,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -890,9 +890,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesGet(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesGet(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -938,9 +938,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, string operationId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -984,9 +984,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResultViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResultViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1046,7 +1046,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesGetBackupInstanceOperationResult_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onAccepted, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1064,7 +1064,7 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
case global::System.Net.HttpStatusCode.Accepted:
@@ -1076,7 +1076,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1129,9 +1129,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1185,7 +1185,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1203,13 +1203,13 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1262,9 +1262,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesList(string subscriptionId, string resourceGroupName, string vaultName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1304,9 +1304,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1358,7 +1358,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1376,13 +1376,13 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.BackupInstanceResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1434,9 +1434,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesResumeBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesResumeBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1478,9 +1478,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesResumeBackupsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesResumeBackupsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1535,7 +1535,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesResumeBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesResumeBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1659,7 +1659,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1713,9 +1713,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesResumeProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesResumeProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1757,9 +1757,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesResumeProtectionViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesResumeProtectionViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -1814,7 +1814,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesResumeProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesResumeProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -1938,7 +1938,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -1994,9 +1994,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesStopProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesStopProtection(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2040,9 +2040,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesStopProtectionViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesStopProtectionViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2097,7 +2097,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesStopProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesStopProtection_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -2221,7 +2221,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -2278,9 +2278,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2325,9 +2325,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackupsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesSuspendBackupsViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2382,7 +2382,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesSuspendBackups_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -2506,7 +2506,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -2564,9 +2564,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISyncBackupInstanceRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISyncBackupInstanceRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2616,9 +2616,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstanceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISyncBackupInstanceRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstanceViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISyncBackupInstanceRequest body, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2677,7 +2677,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -2801,7 +2801,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -2829,7 +2829,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ISyncBackupInstanceRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesSyncBackupInstance_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISyncBackupInstanceRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -2858,9 +2858,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ICrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ICrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2905,9 +2905,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ICrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ICrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -2965,7 +2965,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -3080,7 +3080,7 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
@@ -3113,7 +3113,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.ICrossRegionRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerCrossRegionRestore_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ICrossRegionRestoreRequestObject body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -3143,9 +3143,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3192,9 +3192,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRehydrationRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3253,7 +3253,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -3377,7 +3377,7 @@ public partial class DataProtection
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -3405,7 +3405,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRehydrate_Validate(string resourceGroupName, string subscriptionId, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRehydrationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -3435,9 +3435,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3484,9 +3484,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesTriggerRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3545,7 +3545,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
using( NoSynchronizationContext )
{
@@ -3660,13 +3660,13 @@ public partial class DataProtection
case global::System.Net.HttpStatusCode.OK:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
default:
{
await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; }
- await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
+ await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CloudError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.Json.JsonNode.Parse(body.Result)) ));
break;
}
}
@@ -3694,7 +3694,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
+ internal async global::System.Threading.Tasks.Task BackupInstancesTriggerRestore_Validate(string subscriptionId, string resourceGroupName, string vaultName, string backupInstanceName, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener)
{
using( NoSynchronizationContext )
{
@@ -3723,9 +3723,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestore(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IValidateCrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestore(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IValidateCrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3770,9 +3770,9 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- public async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231101.IValidateCrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ public async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestoreViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IValidateCrossRegionRestoreRequestObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
{
- var apiVersion = @"2023-11-01";
+ var apiVersion = @"2023-12-01";
// Constant Parameters
using( NoSynchronizationContext )
{
@@ -3830,7 +3830,7 @@ public partial class DataProtection
///
/// A that will be complete when handling of the response is completed.
///
- internal async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.ISendAsync sender)
+ internal async global::System.Threading.Tasks.Task BackupInstancesValidateCrossRegionRestore_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func