diff --git a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
index 052dc79bfda3..de376a34f2f0 100644
--- a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
+++ b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.format.ps1xml
@@ -38,6 +38,9 @@
+
+
+
@@ -78,6 +81,9 @@
ResourceGuardsName
+
+ ResourceId
+
SubscriptionId
@@ -204,9 +210,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource
@@ -232,9 +238,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AbsoluteDeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AbsoluteDeleteOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AbsoluteDeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AbsoluteDeleteOption
@@ -260,9 +266,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdHocBackupRuleOptions
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdHocBackupRuleOptions
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdHocBackupRuleOptions
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdHocBackupRuleOptions
@@ -282,9 +288,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBackupTriggerOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdhocBackupTriggerOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBackupTriggerOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdhocBackupTriggerOption
@@ -304,9 +310,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdhocBasedTriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AdhocBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AdhocBasedTriggerContext
@@ -326,9 +332,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AuthCredentials
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AuthCredentials
@@ -348,9 +354,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupDiscreteRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupDiscreteRecoveryPoint
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupDiscreteRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupDiscreteRecoveryPoint
@@ -430,9 +436,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesRequest
@@ -464,9 +470,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequestResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesRequestResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesRequestResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesRequestResource
@@ -510,9 +516,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesResponse
@@ -532,9 +538,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesResponseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupFindRestorableTimeRangesResponseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupFindRestorableTimeRangesResponseResource
@@ -554,9 +560,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJob
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJob
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJob
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJob
@@ -744,9 +750,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResource
@@ -766,9 +772,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupJobResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResourceList
@@ -788,9 +794,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupParams
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupParams
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupParams
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupParams
@@ -816,9 +822,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPoint
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPoint
@@ -838,9 +844,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointBasedRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointBasedRestoreRequest
@@ -853,6 +859,9 @@
+
+
+
@@ -875,6 +884,9 @@
ObjectType
+
+ ResourceGuardOperationRequest
+
SourceDataStoreType
@@ -890,9 +902,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointResource
@@ -912,9 +924,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointResourceList
@@ -934,9 +946,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryTimeBasedRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryTimeBasedRestoreRequest
@@ -949,6 +961,9 @@
+
+
+
@@ -971,6 +986,9 @@
ObjectType
+
+ ResourceGuardOperationRequest
+
SourceDataStoreType
@@ -986,9 +1004,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRehydrationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRehydrationRequest
@@ -1020,15 +1038,18 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRestoreRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRestoreRequest
+
+
+
@@ -1042,6 +1063,9 @@
ObjectType
+
+ ResourceGuardOperationRequest
+
SourceDataStoreType
@@ -1054,9 +1078,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRestoreWithRehydrationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRestoreWithRehydrationRequest
@@ -1072,6 +1096,9 @@
+
+
+
@@ -1100,6 +1127,9 @@
RecoveryPointId
+
+ ResourceGuardOperationRequest
+
SourceDataStoreType
@@ -1118,9 +1148,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRule
@@ -1146,9 +1176,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureMonitorAlertSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureMonitorAlertSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureMonitorAlertSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureMonitorAlertSettings
@@ -1168,9 +1198,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureOperationalStoreParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureOperationalStoreParameters
@@ -1202,9 +1232,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureRetentionRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureRetentionRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureRetentionRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureRetentionRule
@@ -1236,9 +1266,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupCriteria
@@ -1258,9 +1288,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupDatasourceParameters
@@ -1280,9 +1310,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstance
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstance
@@ -1298,6 +1328,9 @@
+
+
+
@@ -1317,6 +1350,9 @@
ProvisioningState
+
+ ResourceGuardOperationRequest
+
ValidationType
@@ -1326,9 +1362,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResourceList
@@ -1348,9 +1384,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupParameters
@@ -1370,9 +1406,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupPolicy
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupPolicy
@@ -1398,9 +1434,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupSchedule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupSchedule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupSchedule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupSchedule
@@ -1426,12 +1462,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVault
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVault
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVault
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVault
+
+
+
@@ -1441,6 +1480,9 @@
+
+
+
@@ -1451,6 +1493,9 @@
+
+ BcdrSecurityLevel
+
IsVaultProtectedByResourceGuard
@@ -1460,6 +1505,9 @@
ReplicatedRegion
+
+ ResourceGuardOperationRequest
+
ResourceMoveState
@@ -1472,9 +1520,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVaultResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVaultResource
@@ -1506,9 +1554,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVaultResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupVaultResourceList
@@ -1528,9 +1576,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicy
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicy
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicy
@@ -1556,9 +1604,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicyResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicyResource
@@ -1578,9 +1626,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicyResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseBackupPolicyResourceList
@@ -1600,9 +1648,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BasePolicyRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BasePolicyRule
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BasePolicyRule
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BasePolicyRule
@@ -1628,9 +1676,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BaseResourceProperties
@@ -1650,9 +1698,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BlobBackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BlobBackupDatasourceParameters
@@ -1678,9 +1726,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CheckNameAvailabilityRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CheckNameAvailabilityRequest
@@ -1700,9 +1748,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CheckNameAvailabilityResult
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CheckNameAvailabilityResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CheckNameAvailabilityResult
@@ -1734,9 +1782,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryDisplay
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryDisplay
@@ -1774,9 +1822,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryForLogSpecification
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryForLogSpecification
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryForLogSpecification
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryForLogSpecification
@@ -1808,9 +1856,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryResponse
@@ -1830,9 +1878,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryValueForSingleApi
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryValueForSingleApi
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ClientDiscoveryValueForSingleApi
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ClientDiscoveryValueForSingleApi
@@ -1864,9 +1912,59 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOnExpiryOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IdentityId
+
+
+ IdentityType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties
+
+
+
+
+
+
+
+
+
+
+
+ KeyUri
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CopyOnExpiryOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOnExpiryOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CopyOnExpiryOption
@@ -1886,9 +1984,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CopyOption
@@ -1908,9 +2006,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreDetails
@@ -1936,9 +2034,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreJobRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreJobRequest
@@ -1970,9 +2068,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreJobsRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreJobsRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreJobsRequest
@@ -1998,9 +2096,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreSettings
@@ -2020,9 +2118,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossSubscriptionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossSubscriptionRestoreSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossSubscriptionRestoreSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossSubscriptionRestoreSettings
@@ -2042,9 +2140,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CustomCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CustomCopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CustomCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CustomCopyOption
@@ -2070,9 +2168,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Datasource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Datasource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Datasource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Datasource
@@ -2122,9 +2220,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DatasourceSet
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DatasourceSet
@@ -2180,9 +2278,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DataStoreInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DataStoreInfoBase
@@ -2208,9 +2306,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DataStoreParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DataStoreParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DataStoreParameters
@@ -2236,9 +2334,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Day
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Day
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Day
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Day
@@ -2264,9 +2362,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DefaultResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DefaultResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DefaultResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DefaultResourceProperties
@@ -2286,9 +2384,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstance
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstance
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstance
@@ -2304,6 +2402,9 @@
+
+
+
@@ -2323,6 +2424,9 @@
ProvisioningState
+
+ ResourceGuardOperationRequest
+
ValidationType
@@ -2332,9 +2436,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstanceResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstanceResource
@@ -2354,9 +2458,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstanceResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletedBackupInstanceResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletedBackupInstanceResourceList
@@ -2376,9 +2480,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeleteOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeleteOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeleteOption
@@ -2404,9 +2508,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletionInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletionInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DeletionInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DeletionInfo
@@ -2444,9 +2548,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseResource
@@ -2466,9 +2570,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseResourceList
@@ -2488,9 +2592,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseTrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseTrackedResource
@@ -2522,9 +2626,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseTrackedResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppBaseTrackedResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppBaseTrackedResourceTags
@@ -2544,9 +2648,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppIdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppIdentityDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppIdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppIdentityDetails
@@ -2572,9 +2676,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppProxyResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppProxyResource
@@ -2594,9 +2698,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppProxyResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppProxyResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppProxyResourceTags
@@ -2616,9 +2720,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppResource
@@ -2638,9 +2742,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppResourceList
@@ -2660,9 +2764,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppTrackedResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppTrackedResource
@@ -2694,9 +2798,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppTrackedResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppTrackedResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppTrackedResourceList
@@ -2716,9 +2820,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequest
@@ -2762,9 +2866,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestHeaders
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequestHeaders
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestHeaders
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequestHeaders
@@ -2784,9 +2888,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequestParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DppWorkerRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.DppWorkerRequestParameters
@@ -2806,9 +2910,37 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Error
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.Error
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CmkInfrastructureEncryption
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Error
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.Error
@@ -2840,9 +2972,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ExportJobsResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ExportJobsResult
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ExportJobsResult
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ExportJobsResult
@@ -2880,9 +3012,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationRequest
@@ -2914,9 +3046,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequestBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationRequestBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationRequestBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationRequestBase
@@ -2936,9 +3068,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationResponse
@@ -2964,9 +3096,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponseBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationResponseBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FeatureValidationResponseBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FeatureValidationResponseBase
@@ -2986,9 +3118,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FetchSecondaryRPsRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FetchSecondaryRPsRequestParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.FetchSecondaryRPsRequestParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.FetchSecondaryRPsRequestParameters
@@ -3014,9 +3146,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IdentityDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IdentityDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IdentityDetails
@@ -3042,9 +3174,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmediateCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ImmediateCopyOption
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmediateCopyOption
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ImmediateCopyOption
@@ -3064,9 +3196,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmutabilitySettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ImmutabilitySettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ImmutabilitySettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ImmutabilitySettings
@@ -3086,9 +3218,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.InnerError
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.InnerError
@@ -3108,9 +3240,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.InnerErrorAdditionalInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.InnerErrorAdditionalInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.InnerErrorAdditionalInfo
@@ -3130,9 +3262,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreCriteria
@@ -3152,9 +3284,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreTargetInfo
@@ -3186,9 +3318,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemPathBasedRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemPathBasedRestoreCriteria
@@ -3226,9 +3358,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobExtendedInfo
@@ -3260,9 +3392,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfoAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobExtendedInfoAdditionalDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobExtendedInfoAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobExtendedInfoAdditionalDetails
@@ -3282,9 +3414,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTask
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobSubTask
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTask
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobSubTask
@@ -3322,9 +3454,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTaskAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobSubTaskAdditionalDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.JobSubTaskAdditionalDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.JobSubTaskAdditionalDetails
@@ -3344,9 +3476,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterBackupDatasourceParameters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterBackupDatasourceParameters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterBackupDatasourceParameters
@@ -3408,9 +3540,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterRestoreCriteria
@@ -3478,9 +3610,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterRestoreCriteriaNamespaceMappings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterRestoreCriteriaNamespaceMappings
@@ -3500,9 +3632,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterVaultTierRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterVaultTierRestoreCriteria
@@ -3582,9 +3714,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesClusterVaultTierRestoreCriteriaNamespaceMappings
@@ -3604,9 +3736,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesPvRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesPvRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesPvRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesPvRestoreCriteria
@@ -3638,9 +3770,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesStorageClassRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesStorageClassRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesStorageClassRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.KubernetesStorageClassRestoreCriteria
@@ -3672,9 +3804,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.NamespacedNameResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.NamespacedNameResource
@@ -3700,9 +3832,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationExtendedInfo
@@ -3722,9 +3854,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationJobExtendedInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationJobExtendedInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationJobExtendedInfo
@@ -3750,9 +3882,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.OperationResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.OperationResource
@@ -3790,9 +3922,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceGuardInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchBackupVaultInput
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceGuardInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchBackupVaultInput
+
+
+
+
+
+
+
+
+
+
+
+ ResourceGuardOperationRequest
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchResourceGuardInputTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchResourceGuardInputTags
@@ -3812,9 +3966,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceRequestInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchResourceRequestInputTags
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PatchResourceRequestInputTags
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PatchResourceRequestInputTags
@@ -3834,9 +3988,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PolicyInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PolicyInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.PolicyInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.PolicyInfo
@@ -3862,9 +4016,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ProtectionStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ProtectionStatusDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ProtectionStatusDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ProtectionStatusDetails
@@ -3884,9 +4038,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RangeBasedItemLevelRestoreCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RangeBasedItemLevelRestoreCriteria
@@ -3918,9 +4072,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointDataStoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RecoveryPointDataStoreDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointDataStoreDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RecoveryPointDataStoreDetails
@@ -3976,9 +4130,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointsFilters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RecoveryPointsFilters
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RecoveryPointsFilters
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RecoveryPointsFilters
@@ -4028,9 +4182,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuard
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuard
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuard
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuard
@@ -4068,9 +4222,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperation
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperation
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperation
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperation
@@ -4096,9 +4250,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail
@@ -4124,9 +4278,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBase
@@ -4158,9 +4312,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBaseResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBaseResource
@@ -4180,9 +4334,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBaseResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardProxyBaseResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardProxyBaseResourceList
@@ -4202,9 +4356,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardResource
@@ -4236,9 +4390,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardResourceList
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardResourceList
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardResourceList
@@ -4258,9 +4412,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceMoveDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceMoveDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceMoveDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceMoveDetails
@@ -4304,9 +4458,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestorableTimeRange
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestorableTimeRange
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestorableTimeRange
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestorableTimeRange
@@ -4338,9 +4492,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreFilesTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreFilesTargetInfo
@@ -4372,9 +4526,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreJobRecoveryPointDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreJobRecoveryPointDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreJobRecoveryPointDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreJobRecoveryPointDetails
@@ -4400,9 +4554,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreTargetInfo
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreTargetInfo
@@ -4434,9 +4588,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreTargetInfoBase
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfoBase
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreTargetInfoBase
@@ -4468,9 +4622,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RetentionTag
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RetentionTag
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RetentionTag
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RetentionTag
@@ -4496,9 +4650,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedBackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ScheduleBasedBackupCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedBackupCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ScheduleBasedBackupCriteria
@@ -4548,9 +4702,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ScheduleBasedTriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ScheduleBasedTriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ScheduleBasedTriggerContext
@@ -4570,9 +4724,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreBasedAuthCredentials
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreBasedAuthCredentials
@@ -4592,9 +4746,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreResource
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreResource
@@ -4626,9 +4780,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SoftDeleteSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SoftDeleteSettings
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SoftDeleteSettings
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SoftDeleteSettings
@@ -4654,9 +4808,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.StorageSetting
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.StopProtectionRequest
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.StopProtectionRequest
+
+
+
+
+
+
+
+
+
+
+
+ ResourceGuardOperationRequest
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.StorageSetting
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.StorageSetting
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.StorageSetting
@@ -4676,9 +4852,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SupportedFeature
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SupportedFeature
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SupportedFeature
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SupportedFeature
@@ -4710,9 +4886,31 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SyncBackupInstanceRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SuspendBackupRequest
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SuspendBackupRequest
+
+
+
+
+
+
+
+
+
+
+
+ ResourceGuardOperationRequest
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SyncBackupInstanceRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SyncBackupInstanceRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SyncBackupInstanceRequest
@@ -4732,9 +4930,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TaggingCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TaggingCriteria
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TaggingCriteria
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TaggingCriteria
@@ -4760,9 +4958,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TargetDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TargetDetails
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TargetDetails
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TargetDetails
@@ -4800,9 +4998,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TriggerContext
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TriggerContext
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TriggerContext
@@ -4822,9 +5020,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UnlockDeleteRequest
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UnlockDeleteRequest
@@ -4850,9 +5048,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UnlockDeleteResponse
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UnlockDeleteResponse
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UnlockDeleteResponse
@@ -4872,9 +5070,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingError
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingError
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingError
@@ -4924,9 +5122,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingErrorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingErrorProperties
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingErrorProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingErrorProperties
@@ -4946,9 +5144,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingWarningDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingWarningDetail
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.UserFacingWarningDetail
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.UserFacingWarningDetail
diff --git a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.psd1 b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.psd1
index 88dae6211b2f..d00720fe355c 100644
--- a/src/DataProtection/DataProtection.Autorest/Az.DataProtection.psd1
+++ b/src/DataProtection/DataProtection.Autorest/Az.DataProtection.psd1
@@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DataProtection.private.dll'
FormatsToProcess = './Az.DataProtection.format.ps1xml'
- FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'Edit-AzDataProtectionPolicyRetentionRuleClientObject', 'Edit-AzDataProtectionPolicyTagClientObject', 'Edit-AzDataProtectionPolicyTriggerClientObject', 'Find-AzDataProtectionRestorableTimeRange', 'Get-AzDataProtectionBackupInstance', 'Get-AzDataProtectionBackupPolicy', 'Get-AzDataProtectionBackupVault', 'Get-AzDataProtectionJob', 'Get-AzDataProtectionOperation', 'Get-AzDataProtectionOperationStatus', 'Get-AzDataProtectionPolicyTemplate', 'Get-AzDataProtectionRecoveryPoint', 'Get-AzDataProtectionResourceGuard', 'Get-AzDataProtectionResourceGuardMapping', 'Get-AzDataProtectionSoftDeletedBackupInstance', 'Initialize-AzDataProtectionBackupInstance', 'Initialize-AzDataProtectionRestoreRequest', 'New-AzDataProtectionBackupConfigurationClientObject', 'New-AzDataProtectionBackupInstance', 'New-AzDataProtectionBackupPolicy', 'New-AzDataProtectionBackupVault', 'New-AzDataProtectionBackupVaultStorageSettingObject', 'New-AzDataProtectionPolicyTagCriteriaClientObject', 'New-AzDataProtectionPolicyTriggerScheduleClientObject', 'New-AzDataProtectionResourceGuard', 'New-AzDataProtectionRestoreConfigurationClientObject', 'New-AzDataProtectionRetentionLifeCycleClientObject', 'Remove-AzDataProtectionBackupInstance', 'Remove-AzDataProtectionBackupPolicy', 'Remove-AzDataProtectionBackupVault', 'Remove-AzDataProtectionResourceGuard', 'Remove-AzDataProtectionResourceGuardMapping', 'Resume-AzDataProtectionBackupInstanceProtection', 'Search-AzDataProtectionBackupInstanceInAzGraph', 'Search-AzDataProtectionBackupVaultInAzGraph', 'Search-AzDataProtectionJobInAzGraph', 'Set-AzDataProtectionMSIPermission', 'Set-AzDataProtectionResourceGuardMapping', 'Start-AzDataProtectionBackupInstanceRestore', 'Stop-AzDataProtectionBackupInstanceProtection', 'Suspend-AzDataProtectionBackupInstanceBackup', 'Sync-AzDataProtectionBackupInstance', 'Test-AzDataProtectionBackupInstanceReadiness', 'Test-AzDataProtectionBackupInstanceRestore', 'Undo-AzDataProtectionBackupInstanceDeletion', 'Unlock-AzDataProtectionResourceGuardOperation', 'Update-AzDataProtectionBackupInstance', 'Update-AzDataProtectionBackupInstanceAssociatedPolicy', 'Update-AzDataProtectionBackupVault', 'Update-AzDataProtectionResourceGuard', '*'
+ FunctionsToExport = 'Backup-AzDataProtectionBackupInstanceAdhoc', 'Edit-AzDataProtectionPolicyRetentionRuleClientObject', 'Edit-AzDataProtectionPolicyTagClientObject', 'Edit-AzDataProtectionPolicyTriggerClientObject', 'Find-AzDataProtectionRestorableTimeRange', 'Get-AzDataProtectionBackupInstance', 'Get-AzDataProtectionBackupInstancesExtensionRouting', 'Get-AzDataProtectionBackupPolicy', 'Get-AzDataProtectionBackupVault', 'Get-AzDataProtectionJob', 'Get-AzDataProtectionOperation', 'Get-AzDataProtectionOperationStatus', 'Get-AzDataProtectionPolicyTemplate', 'Get-AzDataProtectionRecoveryPoint', 'Get-AzDataProtectionResourceGuard', 'Get-AzDataProtectionResourceGuardMapping', 'Get-AzDataProtectionSoftDeletedBackupInstance', 'Initialize-AzDataProtectionBackupInstance', 'Initialize-AzDataProtectionRestoreRequest', 'New-AzDataProtectionBackupConfigurationClientObject', 'New-AzDataProtectionBackupInstance', 'New-AzDataProtectionBackupPolicy', 'New-AzDataProtectionBackupVault', 'New-AzDataProtectionBackupVaultStorageSettingObject', 'New-AzDataProtectionPolicyTagCriteriaClientObject', 'New-AzDataProtectionPolicyTriggerScheduleClientObject', 'New-AzDataProtectionResourceGuard', 'New-AzDataProtectionRestoreConfigurationClientObject', 'New-AzDataProtectionRetentionLifeCycleClientObject', 'Remove-AzDataProtectionBackupInstance', 'Remove-AzDataProtectionBackupPolicy', 'Remove-AzDataProtectionBackupVault', 'Remove-AzDataProtectionResourceGuard', 'Remove-AzDataProtectionResourceGuardMapping', 'Resume-AzDataProtectionBackupInstanceProtection', 'Search-AzDataProtectionBackupInstanceInAzGraph', 'Search-AzDataProtectionBackupVaultInAzGraph', 'Search-AzDataProtectionJobInAzGraph', 'Set-AzDataProtectionMSIPermission', 'Set-AzDataProtectionResourceGuardMapping', 'Start-AzDataProtectionBackupInstanceRestore', 'Stop-AzDataProtectionBackupInstanceProtection', 'Suspend-AzDataProtectionBackupInstanceBackup', 'Sync-AzDataProtectionBackupInstance', 'Test-AzDataProtectionBackupInstanceReadiness', 'Test-AzDataProtectionBackupInstanceRestore', 'Undo-AzDataProtectionBackupInstanceDeletion', 'Unlock-AzDataProtectionResourceGuardOperation', 'Update-AzDataProtectionBackupInstance', 'Update-AzDataProtectionBackupInstanceAssociatedPolicy', 'Update-AzDataProtectionBackupVault', 'Update-AzDataProtectionResourceGuard', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{
diff --git a/src/DataProtection/DataProtection.Autorest/README.md b/src/DataProtection/DataProtection.Autorest/README.md
index 1b7dceb21cda..80247483e4b6 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: 41d1c179dc166b7f16b7e40ef4f2a1d9c85b10cc
+commit: 72f52bc8847a889488da885f40d6871a89e0470b
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-12-01/dataprotection.json
+ - $(repo)/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2024-04-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:
@@ -45,10 +45,6 @@ directive:
- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}"].delete
transform: $["description"] = "Delete a backupInstances"
- - from: swagger-document
- where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete"]["post"]["parameters"]
- transform: >
- $.push({"name": "x-ms-authorization-auxiliary","in": "header","type": "string"})
- where:
parameter-name: XmsAuthorizationAuxiliary
set:
@@ -104,6 +100,10 @@ directive:
set:
parameter-name: SoftDeleteSetting
clear-alias: true
+ - where:
+ parameter-name: SecuritySettingEncryptionSetting
+ set:
+ parameter-name: EncryptionSetting
- where:
verb: Get
subject: BackupVaultResource.*
@@ -159,7 +159,7 @@ directive:
subject: ResourceGuardMapping
- where:
parameter-name: ResourceGuardProxyName
- hide: true
+ hide: true
set:
default:
script: '"DppResourceGuardProxy"'
@@ -167,7 +167,7 @@ directive:
verb: New
subject: ResourceGuardMapping
parameter-name: LastUpdatedTime|Description|ResourceGuardOperationDetail
- hide: true
+ hide: true
- where:
verb: Get
subject: DeletedBackupInstance
@@ -237,6 +237,26 @@ directive:
verb: Start
subject: .*Restore$
hide: true
+ - where:
+ verb: Stop
+ subject: ^BackupInstanceProtection$
+ variant: Stop$|StopViaIdentityExpanded$
+ remove: true
+ - where:
+ verb: Stop
+ subject: ^BackupInstanceProtection$
+ variant: StopExpanded$|StopViaIdentity$
+ hide: true
+ - where:
+ verb: Suspend
+ subject: ^BackupInstanceBackup$
+ variant: Suspend$|SuspendViaIdentityExpanded$
+ remove: true
+ - where:
+ verb: Suspend
+ subject: ^BackupInstanceBackup$
+ variant: SuspendExpanded$|SuspendViaIdentity$
+ hide: true
- where:
verb: Get
subject: OperationResultPatch
@@ -249,6 +269,11 @@ directive:
verb: New
subject: BackupVault
hide: true
+ - where:
+ verb: Update
+ subject: BackupVault
+ variant: ^UpdateExpanded$
+ hide: true
- where:
verb: Invoke
variant: ^Post$|^PostViaIdentity$|^PostViaIdentityExpanded$
@@ -360,6 +385,22 @@ directive:
property-name: SoftDeleteSettingState
set:
property-name: SoftDeleteState
+ - where:
+ property-name: SecuritySettingEncryptionSetting
+ set:
+ property-name: EncryptionSetting
+ - where:
+ property-name: InfrastructureEncryption
+ set:
+ property-name: CmkInfrastructureEncryption
+ - where:
+ property-name: KekIdentity
+ set:
+ property-name: CmkIdentity
+ - where:
+ property-name: KeyVaultProperty
+ set:
+ property-name: CmkKeyVaultProperty
- where:
subject: OperationStatus
parameter-name: Location
@@ -396,18 +437,19 @@ directive:
- UserFacingError
- ValidateRestoreRequestObject
- ValidateCrossRegionRestoreRequestObject
+ - EncryptionSettings
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicy Property');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicy Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicy Property');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ITriggerContext Trigger');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ITriggerContext Trigger', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ITriggerContext Trigger');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupParameters BackupParameter');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupParameters BackupParameter', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupParameters BackupParameter');
- from: source-file-csharp
where: $
- transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPoint Property');
+ transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPoint Property', 'public Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 944ebe2db80c..b707555e50bb 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-12-01",
+ "apiVersion": "2024-04-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 cfe35efe176f..69c37ada48ac 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-12-01",
+ "apiVersion": "2024-04-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dataprotection"
},
@@ -177,92 +177,6 @@
}
]
},
- {
- "name": "Stop-AzDataProtectionBackupInstanceProtection",
- "description": "This operation will stop protection of a backup instance and data will be held forever",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection"
- },
- "parameterSets": [
- {
- "parameters": [
- "-BackupInstanceName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]",
- "-VaultName "
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "This operation will stop protection of a backup instance and data will be held forever",
- "parameters": [
- {
- "name": "-BackupInstanceName",
- "value": "[Path.backupInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- },
- {
- "name": "-VaultName",
- "value": "[Path.vaultName]"
- }
- ]
- }
- ]
- },
- {
- "name": "Suspend-AzDataProtectionBackupInstanceBackup",
- "description": "This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)",
- "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups",
- "help": {
- "learnMore": {
- "url": "https://learn.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup"
- },
- "parameterSets": [
- {
- "parameters": [
- "-BackupInstanceName ",
- "-ResourceGroupName ",
- "[-SubscriptionId ]",
- "-VaultName "
- ]
- }
- ]
- },
- "examples": [
- {
- "description": "This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)",
- "parameters": [
- {
- "name": "-BackupInstanceName",
- "value": "[Path.backupInstanceName]"
- },
- {
- "name": "-ResourceGroupName",
- "value": "[Path.resourceGroupName]"
- },
- {
- "name": "-SubscriptionId",
- "value": "[Path.subscriptionId]"
- },
- {
- "name": "-VaultName",
- "value": "[Path.vaultName]"
- }
- ]
- }
- ]
- },
{
"name": "Test-AzDataProtectionBackupInstanceRestore",
"description": "Validates if Restore can be triggered for a DataSource",
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 c4fe78e18289..06a28d3d956a 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-12-01",
+ "apiVersion": "2024-04-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 ac10f20440fb..1ac12ef6cfb1 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-12-01",
+ "apiVersion": "2024-04-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 ff3a8537be6d..442106630bd6 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-12-01",
+ "apiVersion": "2024-04-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 5d031f16bc27..ae8d76368ef2 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-12-01",
+ "apiVersion": "2024-04-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 adc197db9784..9de969f8bfbb 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-12-01",
+ "apiVersion": "2024-04-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 2e5bfb5bf1b1..92014bab0c02 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-12-01",
+ "apiVersion": "2024-04-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 8eb8115c66e1..fc3d7714e5a6 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-12-01",
+ "apiVersion": "2024-04-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 08ba20a98f84..a9166a9652c6 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupInstanceInAzGraph.ps1
@@ -102,7 +102,7 @@
foreach($argResponse in $argInstanceResponse)
{
$jsonStringResponse = $argResponse | ConvertTo-Json -Depth 100
- $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]::FromJsonString($jsonStringResponse)
+ $backupInstances += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 167522e73a51..3861375f4aa3 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Backupcenter/Search-AzDataProtectionBackupVaultInAzGraph.ps1
@@ -94,7 +94,7 @@
foreach($argVault in $argAllVaults)
{
$jsonStringResponse = $argVault | ConvertTo-Json -Depth 100
- $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupVaultResource]::FromJsonString($jsonStringResponse)
+ $backupVaults += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 cab28255a634..3208a4598cd1 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.Api20231201.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
+ $backupJobs += [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupJobResource]::FromJsonString($jsonStringResponse)
}
return $backupJobs
}
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/New-AzDataProtectionResourceGuard.ps1
index 4b1efbb3ba91..d863622f1d58 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.Api20231201.IResourceGuardResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 d20498a837b4..f39a8409823a 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Common/Unlock-AzDataProtectionResourceGuardOperation.ps1
@@ -81,8 +81,7 @@ function Unlock-AzDataProtectionResourceGuardOperation
else {
$ResGuardProxy = Get-AzDataProtectionResourceGuardMapping -VaultName $VaultName -ResourceGroupName $ResourceGroupName
}
-
- # TODO : Add new operations
+
$CriticalOperationsMap = @{ DisableMUA = "deleteResourceGuardProxyRequests"; DeleteBackupInstance = "deleteBackupInstanceRequests" }
# modify Critical operation exclusion list
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 0f46aa97f80b..566588b8cfe9 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.Api20231201.IResourceGuardResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource')]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a resource guard belonging to a resource group')]
@@ -31,7 +31,7 @@ function Update-AzDataProtectionResourceGuard
[Hashtable]
${Tag},
- [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='List of critical operations which are not protected by this resourceGuard. Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin, DeleteBackupInstance')]
+ [Parameter(ParameterSetName="UpdateResourceGuardOperations", Mandatory=$false, HelpMessage='List of critical operations which are not protected by this resourceGuard. Supported values are DeleteProtection, UpdateProtection, UpdatePolicy, GetSecurityPin, DeleteBackupInstance, RecoveryServicesDisableImmutability, DataProtectionDisableImmutability, RecoveryServicesModifyEncryptionSettings, DataProtectionModifyEncryptionSettings')]
[System.String[]]
${CriticalOperationExclusionList},
@@ -87,7 +87,7 @@ function Update-AzDataProtectionResourceGuard
}
# modify Critical operation exclusion list
- $CriticalOperationsMap = @{ DeleteProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete"; UpdateProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write"; UpdatePolicy = "Microsoft.RecoveryServices/vaults/backupPolicies/write"; GetSecurityPin = "Microsoft.RecoveryServices/vaults/backupSecurityPIN/action"; DeleteBackupInstance = "Microsoft.DataProtection/backupVaults/backupInstances/delete" }
+ $CriticalOperationsMap = @{ DeleteProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/delete"; UpdateProtection = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/write"; UpdatePolicy = "Microsoft.RecoveryServices/vaults/backupPolicies/write"; GetSecurityPin = "Microsoft.RecoveryServices/vaults/backupSecurityPIN/action"; DeleteBackupInstance = "Microsoft.DataProtection/backupVaults/backupInstances/delete"; RecoveryServicesDisableImmutability = "Microsoft.RecoveryServices/vaults/write#reduceImmutabilityState"; DataProtectionDisableImmutability = "Microsoft.DataProtection/backupVaults/write#reduceImmutabilityState"; RecoveryServicesModifyEncryptionSettings = "Microsoft.RecoveryServices/vaults/write#modifyEncryptionSettings"; DataProtectionModifyEncryptionSettings = "Microsoft.DataProtection/backupVaults/write#modifyEncryptionSettings"}
$CriticalOperationExclusionListInternal = [System.Collections.ArrayList]@()
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1
index 58ea6cf8bae7..2ed6c6678135 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Initialize-AzDataProtectionBackupInstance.ps1
@@ -2,7 +2,7 @@
function Initialize-AzDataProtectionBackupInstance {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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,AzureBlob.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupDatasourceParameters]
${BackupConfiguration}
)
process {
$manifest = LoadManifest -DatasourceType $DatasourceType.ToString()
- $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstance]::new()
+ $backupInstance = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstance]::new()
$backupInstance.ObjectType = "BackupInstance"
if($manifest.snapshotRGPermissions.Length -eq 0 -and $SnapshotResourceGroupId -ne "")
@@ -109,9 +109,9 @@ function Initialize-AzDataProtectionBackupInstance {
$errormsg = "Please input SecretStoreType"
throw $errormsg
}
- $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials]::new()
+ $backupInstance.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreBasedAuthCredentials]::new()
$backupInstance.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
- $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource]::new()
+ $backupInstance.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreResource]::new()
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.SecretStoreType = $SecretStoreType
$backupInstance.DatasourceAuthCredentials.SecretStoreResource.Uri = $SecretStoreURI
}
@@ -121,7 +121,7 @@ function Initialize-AzDataProtectionBackupInstance {
}
}
- $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]::new()
+ $backupInstanceResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource]::new()
$backupInstanceResource.Property = $backupInstance
if($PSBoundParameters.ContainsKey("DatasourceId"))
@@ -139,7 +139,7 @@ function Initialize-AzDataProtectionBackupInstance {
if($manifest.addDataStoreParametersList -eq $true)
{
- $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureOperationalStoreParameters]::new()
+ $operationalParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureOperationalStoreParameters]::new()
$operationalParam.DataStoreType = "OperationalStore"
$operationalParam.ObjectType = "AzureOperationalStoreParameters"
$operationalParam.ResourceGroupId = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}"
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1
index 14ec26dd7bdb..694c079e0390 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupConfigurationClientObject.ps1
@@ -39,7 +39,7 @@ function New-AzDataProtectionBackupConfigurationClientObject{
${IncludeClusterScopeResource},
[Parameter(Mandatory=$false, HelpMessage='Hook reference to be executed during backup.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.KubernetesClusterBackupDatasourceParameters]::new()
+ $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.BlobBackupDatasourceParameters]::new()
+ $dataSourceParam = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BlobBackupDatasourceParameters]::new()
$dataSourceParam.ObjectType = "BlobBackupDatasourceParameters"
if($VaultedBackupContainer -ne $null){
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1
index 451d2de41455..4ca22fe19ce9 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/New-AzDataProtectionBackupInstance.ps1
@@ -20,7 +20,7 @@ function New-AzDataProtectionBackupInstance {
${VaultName},
[Parameter(Mandatory, HelpMessage='Backup instance request object which will be used to configure backup')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource]
${BackupInstance},
[Parameter(Mandatory=$false, HelpMessage='Resource tags')]
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1
new file mode 100644
index 000000000000..f1e4eda26998
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Stop-AzDataProtectionBackupInstanceProtection.ps1
@@ -0,0 +1,115 @@
+
+
+function Stop-AzDataProtectionBackupInstanceProtection
+{
+ [OutputType('System.Boolean')]
+ [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('This operation will stop protection of a backup instance and data will be held forever')]
+
+ param(
+ [Parameter(ParameterSetName="Stop", Mandatory=$false, HelpMessage='Subscription Id of the backup vault')]
+ [System.String]
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName="Stop", Mandatory, HelpMessage='The name of the resource group where the backup vault is present')]
+ [System.String]
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName="Stop", Mandatory, HelpMessage='The name of the backup instance')]
+ [System.String]
+ ${BackupInstanceName},
+
+ [Parameter(ParameterSetName="Stop", Mandatory, HelpMessage='The name of the backup vault')]
+ [System.String]
+ ${VaultName},
+
+ [Parameter(ParameterSetName="StopViaIdentity", Mandatory, HelpMessage='Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.', ValueFromPipeline=$true)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity]
+ ${InputObject},
+
+ [Parameter(Mandatory=$false, HelpMessage='Resource guard operation request in the format similar to /dppDisableStopProtectionRequests/default. Use this parameter when the operation is MUA protected.')]
+ [System.String[]]
+ ${ResourceGuardOperationRequest},
+
+ [Parameter(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},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(HelpMessage='Run the command as a job')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(HelpMessage='Run the command asynchronously')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(HelpMessage='Returns true when the command succeeds')]
+ [System.Management.Automation.SwitchParameter]
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+
+ process
+ {
+ $parameterSetName = $PsCmdlet.ParameterSetName
+ if($parameterSetName -eq "StopViaIdentity"){
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.StopProtectionRequest]::new()
+
+ $hasResourceGuardOperationRequest = $PSBoundParameters.Remove("ResourceGuardOperationRequest")
+ if($hasResourceGuardOperationRequest){
+ $Parameter.ResourceGuardOperationRequest = $ResourceGuardOperationRequest
+ }
+
+ $null = $PSBoundParameters.Add("Parameter", $Parameter)
+ }
+
+ if($PSBoundParameters.ContainsKey("Token"))
+ {
+ $null = $PSBoundParameters.Remove("Token")
+ $null = $PSBoundParameters.Add("Token", "Bearer $Token")
+ }
+
+ Az.DataProtection.Internal\Stop-AzDataProtectionBackupInstanceProtection @PSBoundParameters
+ }
+}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1
new file mode 100644
index 000000000000..80e9dbfb5d4c
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Suspend-AzDataProtectionBackupInstanceBackup.ps1
@@ -0,0 +1,115 @@
+
+
+function Suspend-AzDataProtectionBackupInstanceBackup
+{
+ [OutputType('System.Boolean')]
+ [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('This operation will stop backup for a backup instance and retains the backup data as per the policy except latest Recovery point, which will be retained forever')]
+
+ param(
+ [Parameter(ParameterSetName="Suspend", Mandatory=$false, HelpMessage='Subscription Id of the backup vault')]
+ [System.String]
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName="Suspend", Mandatory, HelpMessage='The name of the resource group where the backup vault is present')]
+ [System.String]
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName="Suspend", Mandatory, HelpMessage='The name of the backup instance')]
+ [System.String]
+ ${BackupInstanceName},
+
+ [Parameter(ParameterSetName="Suspend", Mandatory, HelpMessage='The name of the backup vault')]
+ [System.String]
+ ${VaultName},
+
+ [Parameter(ParameterSetName="SuspendViaIdentity", Mandatory, HelpMessage='Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.', ValueFromPipeline=$true)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity]
+ ${InputObject},
+
+ [Parameter(Mandatory=$false, HelpMessage='Resource guard operation request in the format similar to /dppDisableSuspendBackupsRequests/default. Use this parameter when the operation is MUA protected.')]
+ [System.String[]]
+ ${ResourceGuardOperationRequest},
+
+ [Parameter(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},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(HelpMessage='Run the command as a job')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(HelpMessage='Run the command asynchronously')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(HelpMessage='Returns true when the command succeeds')]
+ [System.Management.Automation.SwitchParameter]
+ ${PassThru},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+ )
+
+ process
+ {
+ $parameterSetName = $PsCmdlet.ParameterSetName
+ if($parameterSetName -eq "SuspendViaIdentity"){
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SuspendBackupRequest]::new()
+
+ $hasResourceGuardOperationRequest = $PSBoundParameters.Remove("ResourceGuardOperationRequest")
+ if($hasResourceGuardOperationRequest){
+ $Parameter.ResourceGuardOperationRequest = $ResourceGuardOperationRequest
+ }
+
+ $null = $PSBoundParameters.Add("Parameter", $Parameter)
+ }
+
+ if($PSBoundParameters.ContainsKey("Token"))
+ {
+ $null = $PSBoundParameters.Remove("Token")
+ $null = $PSBoundParameters.Add("Token", "Bearer $Token")
+ }
+
+ Az.DataProtection.Internal\Suspend-AzDataProtectionBackupInstanceBackup @PSBoundParameters
+ }
+}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1
index 643d019871d4..463fd64ccfce 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstance.ps1
@@ -2,7 +2,7 @@
function Update-AzDataProtectionBackupInstance
{
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource')]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a given backup instance')]
@@ -116,7 +116,7 @@ function Update-AzDataProtectionBackupInstance
$instance.Property.PolicyInfo.PolicyParameter.BackupDatasourceParametersList[0].ContainersList = $VaultedBackupContainer
}
elseif($datasourceParam -eq $null){
- $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BlobBackupDatasourceParameters]::new()
+ $backupConfiguration = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BlobBackupDatasourceParameters]::new()
$backupConfiguration.ObjectType = "BlobBackupDatasourceParameters"
$backupConfiguration.ContainersList = $VaultedBackupContainer
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
index a8d6d6dfd688..bef107bf76be 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/BackupInstance/Update-AzDataProtectionBackupInstanceAssociatedPolicy.ps1
@@ -2,7 +2,7 @@
function Update-AzDataProtectionBackupInstanceAssociatedPolicy
{
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource')]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates associated policy for a given backup instance')]
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Job/Get-AzDataProtectionJob.ps1
index 6bce3e513c13..a7a0369044c5 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.Api20231201.IAzureBackupJobResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 02c660dbcf96..867c4b884174 100644
--- a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Restore/Initialize-AzDataProtectionRestoreRequest.ps1
@@ -1,6 +1,6 @@
function Initialize-AzDataProtectionRestoreRequest
{
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRestoreRequest')]
[CmdletBinding(PositionalBinding=$false, DefaultParameterSetName='AlternateLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Initializes Restore Request object for triggering restore on a protected backup instance.')]
@@ -71,7 +71,7 @@
[Parameter(ParameterSetName="OriginalLocationFullRecovery", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')]
[Parameter(ParameterSetName="OriginalLocationILR", Mandatory, HelpMessage='Backup Instance object to trigger original localtion restore.')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource]
${BackupInstance},
# this is applicable to all workloads wherever ALR supported.
@@ -121,7 +121,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.Api20231201.KubernetesClusterRestoreCriteria]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.')]
@@ -155,7 +155,7 @@
Write-Debug -Message $RecoveryPoint
if($PSBoundParameters.ContainsKey("RehydrationPriority")){
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreWithRehydrationRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRestoreWithRehydrationRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRestoreWithRehydrationRequest"
$restoreRequest.RehydrationPriority = $RehydrationPriority
if($PSBoundParameters.ContainsKey("RehydrationDuration")){
@@ -166,7 +166,7 @@
}
}
else{
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryPointBasedRestoreRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryPointBasedRestoreRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRecoveryPointBasedRestoreRequest"
}
$restoreRequest.RecoveryPointId = $RecoveryPoint
@@ -176,7 +176,7 @@
{
$utcTime = $PointInTime.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.0000000Z")
Write-Debug -Message $utcTime
- $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRecoveryTimeBasedRestoreRequest]::new()
+ $restoreRequest = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.AzureBackupRecoveryTimeBasedRestoreRequest]::new()
$restoreRequest.ObjectType = "AzureBackupRecoveryTimeBasedRestoreRequest"
$restoreRequest.RecoveryPointTime = $utcTime
$restoreMode = "PointInTimeBased"
@@ -193,7 +193,7 @@
if($RestoreType -eq "RestoreAsFiles")
{
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreFilesTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreFilesTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "RestoreFilesTargetInfo"
if($manifest.fileNamePrefixDisabled -and $PSBoundParameters.ContainsKey("FileNamePrefix")){
@@ -228,11 +228,11 @@
{
# RestoreTargetInfo for OLR ALR Full recovery
if($DatasourceType -ne "AzureKubernetesService"){
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "restoreTargetInfo"
}
else{
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo"
$restoreCriteriaList = @()
@@ -252,7 +252,7 @@
else
{
# ILR: ItemLevelRestoreTargetInfo
- $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemLevelRestoreTargetInfo]::new()
+ $restoreRequest.RestoreTargetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemLevelRestoreTargetInfo]::new()
$restoreRequest.RestoreTargetInfo.ObjectType = "itemLevelRestoreTargetInfo"
$restoreCriteriaList = @()
@@ -264,7 +264,7 @@
$hasPrefixMatch = $PSBoundParameters.Remove("PrefixMatch")
for($i = 0; $i -lt $ContainersList.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ItemPathBasedRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ItemPathBasedRestoreCriteria]::new()
$restoreCriteria.ObjectType = "ItemPathBasedRestoreCriteria"
$restoreCriteria.ItemPath = $ContainersList[$i]
@@ -285,7 +285,7 @@
elseif($ContainersList.length -gt 0){
for($i = 0; $i -lt $ContainersList.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RangeBasedItemLevelRestoreCriteria]::new()
$restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria"
$restoreCriteria.MinMatchingValue = $ContainersList[$i]
@@ -304,7 +304,7 @@
for($i = 0; $i -lt $FromPrefixPattern.length; $i++){
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.RangeBasedItemLevelRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.RangeBasedItemLevelRestoreCriteria]::new()
$restoreCriteria.ObjectType = "RangeBasedItemLevelRestoreCriteria"
$restoreCriteria.MinMatchingValue = $FromPrefixPattern[$i]
@@ -379,9 +379,9 @@
$errormsg = "Please input SecretStoreType"
throw $errormsg
}
- $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreBasedAuthCredentials]::new()
+ $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.SecretStoreBasedAuthCredentials]::new()
$restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.ObjectType = "SecretStoreBasedAuthCredentials"
- $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.SecretStoreResource]::new()
+ $restoreRequest.RestoreTargetInfo.DatasourceAuthCredentials.SecretStoreResource = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 56634f53d1e4..6515f47651ee 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.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.NamespacedNameResource[]]
${RestoreHookReference}
)
process {
- $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]::new()
+ $restoreCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 32e38eb559a0..3230007fc5fd 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.Api20231201.IOperationJobExtendedInfo')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo')]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Triggers restore for a BackupInstance')]
@@ -25,15 +25,23 @@ 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.Api20231201.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRestoreRequest]
${Parameter},
+ [Parameter(Mandatory=$false, HelpMessage='Resource guard operation request in the format similar to /dppTriggerRestoreRequests/default. Use this parameter when the operation is MUA protected.')]
+ [System.String[]]
+ ${ResourceGuardOperationRequest},
+
+ [Parameter(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},
+
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Object type of the restore request')]
[System.String]
${ObjectType},
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Gets or sets the restore target information')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IRestoreTargetInfoBase]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IRestoreTargetInfoBase]
${RestoreTargetInfo},
[Parameter(ParameterSetName="TriggerExpanded", Mandatory, HelpMessage='Type of the source data store')]
@@ -109,7 +117,19 @@ function Start-AzDataProtectionBackupInstanceRestore
process
{
- $hasRestoreToSecondaryRegion = $PSBoundParameters.Remove("RestoreToSecondaryRegion")
+ $hasRestoreToSecondaryRegion = $PSBoundParameters.Remove("RestoreToSecondaryRegion")
+
+ # MUA
+ if($PsCmdlet.ParameterSetName -eq "Trigger" -and $PSBoundParameters.ContainsKey("ResourceGuardOperationRequest")){
+ $PSBoundParameters.Remove("ResourceGuardOperationRequest")
+ $Parameter.ResourceGuardOperationRequest = $ResourceGuardOperationRequest
+ }
+
+ if($PSBoundParameters.ContainsKey("Token"))
+ {
+ $null = $PSBoundParameters.Remove("Token")
+ $null = $PSBoundParameters.Add("Token", "Bearer $Token")
+ }
if($hasRestoreToSecondaryRegion){
@@ -141,7 +161,7 @@ function Start-AzDataProtectionBackupInstanceRestore
$backupInstanceId = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" + $ResourceGroupName + "/providers/Microsoft.DataProtection/backupVaults/" + $VaultName + "/backupInstances/" + $BackupInstanceName
- $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails]::new()
+ $crossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CrossRegionRestoreDetails]::new()
$crossRegionRestoreDetail.SourceBackupInstanceId = $backupInstanceId
$crossRegionRestoreDetail.SourceRegion = $vault.Location
@@ -152,7 +172,7 @@ function Start-AzDataProtectionBackupInstanceRestore
$PSBoundParameters.Add("RestoreRequestObject", $Parameter)
}
else{
- $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.AzureBackupRestoreRequest]::new()
+ $restoreRequestObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 7c6753767c53..aadc21084198 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.Api20231201.IOperationJobExtendedInfo')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.ValidateCrossRegionRestoreRequestObject]::new()
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ValidateCrossRegionRestoreRequestObject]::new()
$Parameter.RestoreRequestObject = $RestoreRequest
- $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.CrossRegionRestoreDetails]::new()
+ $Parameter.CrossRegionRestoreDetail = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.ValidateRestoreRequestObject]::new()
+ $Parameter = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 4e313fdbebc4..a8f9599706ff 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
@@ -21,7 +21,7 @@
[System.String]
${ETag},
- [Parameter(HelpMessage='The identityType which can be either SystemAssigned or None.')]
+ [Parameter(HelpMessage='The identityType can take values - "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None".')]
[System.String]
${IdentityType},
@@ -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.Api20231201.IStorageSetting[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IStorageSetting[]]
${StorageSetting},
[Parameter(Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')]
@@ -65,6 +65,31 @@
[Parameter(HelpMessage='Resource tags.')]
[System.Collections.Hashtable]
${Tag},
+
+ [Parameter(Mandatory=$false, HelpMessage='Gets or sets the user assigned identities.')]
+ [Alias('UserAssignedIdentity')]
+ [System.Collections.Hashtable]
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter(Mandatory=$false, HelpMessage='Enable CMK encryption state for a Backup Vault.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.EncryptionState]
+ ${CmkEncryptionState},
+
+ [Parameter(Mandatory=$false, HelpMessage='Enable infrastructure encryption with CMK on this vault. Infrastructure encryption must be configured only when creating the vault.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.InfrastructureEncryptionState]
+ ${CmkInfrastructureEncryption},
+
+ [Parameter(Mandatory=$false, HelpMessage='The identity type to be used for CMK encryption - SystemAssigned or UserAssigned Identity.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.IdentityType]
+ ${CmkIdentityType},
+
+ [Parameter(Mandatory=$false, HelpMessage='This parameter is required if the identity type is UserAssigned. Add the user assigned managed identity id to be used which has access permissions to the Key Vault.')]
+ [System.String]
+ ${CmkUserAssignedIdentityId},
+
+ [Parameter(Mandatory=$false, HelpMessage='The Key URI of the CMK key to be used for encryption. To enable auto-rotation of keys, exclude the version component from the Key URI. ')]
+ [System.String]
+ ${CmkEncryptionKeyUri},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -123,6 +148,29 @@
{
$null = $PSBoundParameters.Add("IdentityType", "SystemAssigned")
}
+
+ $hasCmkEncryptionState = $PSBoundParameters.Remove("CmkEncryptionState")
+ $hasCmkIdentityType = $PSBoundParameters.Remove("CmkIdentityType")
+ $hasCmkUserAssignedIdentityId = $PSBoundParameters.Remove("CmkUserAssignedIdentityId")
+ $hasCmkEncryptionKeyUri = $PSBoundParameters.Remove("CmkEncryptionKeyUri")
+ $hasCmkInfrastructureEncryption = $PSBoundParameters.Remove("CmkInfrastructureEncryption")
+
+ if (-not $hasCmkEncryptionState -and -not $hasCmkIdentityType -and -not $hasCmkUserAssignedIdentityId -and -not $hasCmkEncryptionKeyUri) {
+ Az.DataProtection.Internal\New-AzDataProtectionBackupVault @PSBoundParameters
+ return
+ }
+
+ $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings]::new()
+ $encryptionSettings.State = $CmkEncryptionState
+ $encryptionSettings.CmkInfrastructureEncryption = $CmkInfrastructureEncryption
+ $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity]::new()
+ $encryptionSettings.CmkIdentity.IdentityType = $CmkIdentityType
+ $encryptionSettings.CmkIdentity.IdentityId = $CmkUserAssignedIdentityId
+ $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties]::new()
+ $encryptionSettings.CmkKeyVaultProperty.KeyUri = $CmkEncryptionKeyUri
+
+ $PSBoundParameters.Add("EncryptionSetting", $encryptionSettings)
+
Az.DataProtection.Internal\New-AzDataProtectionBackupVault @PSBoundParameters
}
}
\ No newline at end of file
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/New-AzDataProtectionBackupVaultStorageSettingObject.ps1
index e4d0a48734e3..75f6728bc77c 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.Api20231201.StorageSetting]::new()
+ $storageSetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 c47e8f138115..abf9c6db288e 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.Api20231201.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource]
${BackupInstance},
[Parameter(ParameterSetName="SetPermissionsForBackup", Mandatory=$false, HelpMessage='ID of the keyvault')]
@@ -36,7 +36,7 @@
${DatasourceType},
[Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory, HelpMessage='Restore request object which will be used for restore')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRestoreRequest]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRestoreRequest]
${RestoreRequest},
[Parameter(ParameterSetName="SetPermissionsForRestore", Mandatory=$false, HelpMessage='Sanpshot Resource Group')]
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1
new file mode 100644
index 000000000000..507ee2aba973
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Platform/Vault/Update-AzDataProtectionBackupVault.ps1
@@ -0,0 +1,201 @@
+function Update-AzDataProtectionBackupVault
+{
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource')]
+ [CmdletBinding(DefaultParameterSetName="UpdateExpanded", PositionalBinding=$false, SupportsShouldProcess)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Description('Updates a BackupVault resource belonging to a resource group. For example updating tags for a resource.')]
+
+ param(
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='The ID of the target subscription. The value must be an UUID.')]
+ [System.String]
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory, HelpMessage='The name of the resource group. The name is case insensitive.')]
+ [System.String]
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory, HelpMessage='The name of the backup vault.')]
+ [System.String]
+ ${VaultName},
+
+ [Parameter(ParameterSetName="UpdateExpanded",HelpMessage='The identityType which can take values: "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None"')]
+ [System.String]
+ ${IdentityType},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Parameter to Enable or Disable built-in azure monitor alerts for job failures. Security alerts cannot be disabled.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.AlertsState]
+ [ValidateSet('Enabled','Disabled')]
+ ${AzureMonitorAlertsForAllJobFailure},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Immutability state of the vault. Allowed values are Disabled, Unlocked, Locked.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.ImmutabilityState]
+ [ValidateSet('Disabled','Unlocked', 'Locked')]
+ ${ImmutabilityState},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Cross region restore state of the vault. Allowed values are Disabled, Enabled.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossRegionRestoreState]
+ [ValidateSet('Disabled','Enabled')]
+ ${CrossRegionRestoreState},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Cross subscription restore state of the vault. Allowed values are Disabled, Enabled, PermanentlyDisabled.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.CrossSubscriptionRestoreState]
+ [ValidateSet('Disabled','Enabled', 'PermanentlyDisabled')]
+ ${CrossSubscriptionRestoreState},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Soft delete retention duration in days')]
+ [System.Double]
+ ${SoftDeleteRetentionDurationInDay},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Soft delete state of the vault. Allowed values are Off, On, AlwaysOn')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SoftDeleteState]
+ [ValidateSet('Off','On', 'AlwaysOn')]
+ ${SoftDeleteState},
+
+ [Parameter(ParameterSetName="UpdateExpanded",HelpMessage='Resource tags.')]
+ [System.Collections.Hashtable]
+ ${Tag},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Gets or sets the user assigned identities.')]
+ [Alias('UserAssignedIdentity')]
+ [System.Collections.Hashtable]
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='Enable CMK encryption state for a Backup Vault.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.EncryptionState]
+ ${CmkEncryptionState},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='The identity type to be used for CMK encryption - SystemAssigned or UserAssigned Identity.')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.IdentityType]
+ ${CmkIdentityType},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='This parameter is required if the identity type is UserAssigned. Add the user assigned managed identity id to be used which has access permissions to the Key Vault.')]
+ [System.String]
+ ${CmkUserAssignedIdentityId},
+
+ [Parameter(ParameterSetName="UpdateExpanded",Mandatory=$false, HelpMessage='The Key URI of the CMK key to be used for encryption. To enable auto-rotation of keys, exclude the version component from the Key URI. ')]
+ [System.String]
+ ${CmkEncryptionKeyUri},
+
+ [Parameter(ParameterSetName="UpdateExpanded", Mandatory=$false, HelpMessage='Resource guard operation request in the format similar to /operationName/default. Here operationName can be any of dppReduceImmutabilityStateRequests, dppReduceSoftDeleteSecurityRequests, dppModifyEncryptionSettingsRequests. Use this parameter when the operation is MUA protected.')]
+ [System.String[]]
+ ${ResourceGuardOperationRequest},
+
+ [Parameter(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},
+
+ [Parameter(HelpMessage='The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.')]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(HelpMessage='Run the command as a job')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter()]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+
+ )
+
+ process
+ {
+ if($PSBoundParameters.ContainsKey("Token"))
+ {
+ $null = $PSBoundParameters.Remove("Token")
+ $null = $PSBoundParameters.Add("Token", "Bearer $Token")
+ }
+
+ $hasCmkEncryptionState = $PSBoundParameters.Remove("CmkEncryptionState")
+ $hasCmkIdentityType = $PSBoundParameters.Remove("CmkIdentityType")
+ $hasCmkUserAssignedIdentityId = $PSBoundParameters.Remove("CmkUserAssignedIdentityId")
+ $hasCmkEncryptionKeyUri = $PSBoundParameters.Remove("CmkEncryptionKeyUri")
+
+ if (-not $hasCmkEncryptionState -and -not $hasCmkIdentityType -and -not $hasCmkUserAssignedIdentityId -and -not $hasCmkEncryptionKeyUri) {
+ Az.DataProtection.Internal\Update-AzDataProtectionBackupVault @PSBoundParameters
+ return
+ }
+
+ $hasIdentityType = $PSBoundParameters.Remove("IdentityType")
+ $hasAzureMonitorAlertsForAllJobFailure = $PSBoundParameters.Remove("AzureMonitorAlertsForAllJobFailure")
+ $hasImmutabilityState = $PSBoundParameters.Remove("ImmutabilityState")
+ $hasCrossRegionRestoreState = $PSBoundParameters.Remove("CrossRegionRestoreState")
+ $hasCrossSubscriptionRestoreState = $PSBoundParameters.Remove("CrossSubscriptionRestoreState")
+ $hasSoftDeleteRetentionDurationInDay = $PSBoundParameters.Remove("SoftDeleteRetentionDurationInDay")
+ $hasSoftDeleteState = $PSBoundParameters.Remove("SoftDeleteState")
+ $hasTag = $PSBoundParameters.Remove("Tag")
+ $hasUserAssignedIdentity = $PSBoundParameters.Remove("UserAssignedIdentity")
+
+ $vault = Az.DataProtection\Get-AzDataProtectionBackupVault @PSBoundParameters
+
+ $encryptionSettings = $null
+
+ if ($vault.EncryptionSetting -ne $null) { $encryptionSettings = $vault.EncryptionSetting }
+ else {
+ $encryptionSettings = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.EncryptionSettings]::new()
+ $encryptionSettings.CmkIdentity = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity]::new()
+ $encryptionSettings.CmkKeyVaultProperty = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties]::new()
+ }
+
+ if ($hasCmkEncryptionState) { $encryptionSettings.State = $CmkEncryptionState }
+ if ($hasCmkIdentityType) {
+ $encryptionSettings.CmkIdentity.IdentityType = $CmkIdentityType
+ if ( $CmkIdentityType -eq "SystemAssigned" ) {
+ $encryptionSettings.CmkIdentity.IdentityId = $null
+ }
+ }
+ if ($hasCmkUserAssignedIdentityId) { $encryptionSettings.CmkIdentity.IdentityId = $CmkUserAssignedIdentityId }
+ if ($hasCmkEncryptionKeyUri) { $encryptionSettings.CmkKeyVaultProperty.KeyUri = $CmkEncryptionKeyUri }
+
+ $PSBoundParameters.Add("EncryptionSetting", $encryptionSettings)
+
+ if ($hasIdentityType) { $PSBoundParameters.Add("IdentityType", $IdentityType) }
+ if ($hasAzureMonitorAlertsForAllJobFailure) { $PSBoundParameters.Add("AzureMonitorAlertsForAllJobFailure", $AzureMonitorAlertsForAllJobFailure) }
+ if ($hasImmutabilityState) { $PSBoundParameters.Add("ImmutabilityState", $ImmutabilityState) }
+ if ($hasCrossRegionRestoreState) { $PSBoundParameters.Add("CrossRegionRestoreState", $CrossRegionRestoreState) }
+ if ($hasCrossSubscriptionRestoreState) { $PSBoundParameters.Add("CrossSubscriptionRestoreState", $CrossSubscriptionRestoreState) }
+ if ($hasSoftDeleteRetentionDurationInDay) { $PSBoundParameters.Add("SoftDeleteRetentionDurationInDay", $SoftDeleteRetentionDurationInDay) }
+ if ($hasSoftDeleteState) { $PSBoundParameters.Add("SoftDeleteState", $SoftDeleteState) }
+ if ($hasTag) { $PSBoundParameters.Add("Tag", $Tag) }
+ if ($hasUserAssignedIdentity) { $PSBoundParameters.Add("UserAssignedIdentity", $UserAssignedIdentity) }
+
+ Az.DataProtection.Internal\Update-AzDataProtectionBackupVault @PSBoundParameters
+ }
+}
\ No newline at end of file
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 65a4728e96be..bcefa1a052b0 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.Api20231201.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.ISourceLifeCycle[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.AzureRetentionRule]::new()
+ $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.AzureRetentionRule]::new()
+ $newRetentionRule = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 966a73e4ad46..5053a589f523 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.Api20231201.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IScheduleBasedBackupCriteria[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IScheduleBasedBackupCriteria[]]
${Criteria}
)
@@ -83,7 +83,7 @@
if($tagIndex -eq -1)
{
- $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.TaggingCriteria]::new()
+ $tagCriteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 879ea3a22021..e4a5b3a61e2e 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.Api20231201.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 9c8dd4c29a2a..08e539d20c88 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.Api20231201.IBackupPolicy')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.BackupPolicy]::FromJsonString($jsonPolicyString)
+ $defaultPolicy = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 f0d2410001f9..e6106a9e9738 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.Api20231201.IBaseBackupPolicyResource')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy]
${Policy},
[Parameter()]
@@ -114,7 +114,7 @@
$index += 1
}
- $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BaseBackupPolicyResource]::new()
+ $policyObject = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 c2c02e8dbf65..1fcd3da1388b 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.Api20231201.IScheduleBasedBackupCriteria')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.ScheduleBasedBackupCriteria]::new()
+ $criteria = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.Day]::new()
+ $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.Day]::new()
+ $day = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 40bd0114e456..47e800e85bf8 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.Api20231201.ISourceLifeCycle')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.SourceLifeCycle]::new()
+ $lifeCycle = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.TargetCopySetting]::new()
+ $targetCopySetting = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.TargetCopySetting]::new()
$targetCopySetting.DataStoreObjectType = "DataStoreInfoBase"
$targetCopySetting.DataStoreType = $TargetDataStore
$targetCopySetting.CopyAfterObjectType = $CopyOption
diff --git a/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1 b/src/DataProtection/DataProtection.Autorest/custom/Helpers/CommonHelpers.ps1
index c891a282b039..04612b69af8f 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.Api20231201.IDatasource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDatasource]
$DatasourceInfo,
[Parameter(Mandatory=$true)]
@@ -16,7 +16,7 @@ function GetDatasourceSetInfo
process
{
- $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.DatasourceSet]::new()
+ $DataSourceSetInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.Datasource]::new()
+ $DataSourceInfo = [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 261382df0ea3..874d5144a3a1 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.Api20231201
+namespace Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401
{
public partial class BackupInstanceResource
{
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupInstancesExtensionRouting.md b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupInstancesExtensionRouting.md
new file mode 100644
index 000000000000..0676440655ff
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupInstancesExtensionRouting.md
@@ -0,0 +1,7 @@
+### Example 1: Get backup instance extension routing
+```powershell
+$diskARMID = "subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk"
+Get-AzDataProtectionBackupInstancesExtensionRouting -ResourceId $diskARMID
+```
+
+This command gets a list of backup instances associated with a tracked resource. To execute the cmdlet, We pass the datasource ARM ID to the parameter ResourceId.
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md
index 48f4a9fc7489..610dc2092047 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Get-AzDataProtectionBackupVault.md
@@ -51,4 +51,27 @@ $vault.SecureScore
Adequate
```
-First command gets a specific vault by given vault name, then we fetch the secure score of the vault which shows Adequate.
\ No newline at end of file
+First command gets a specific vault by given vault name, then we fetch the secure score of the vault which shows Adequate.
+
+### Example 4: Get encryption settings of backup vault.
+```powershell
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$vault.EncryptionSetting |fl
+$vault.EncryptionSetting.CmkIdentity |fl
+$vault.EncryptionSetting.CmkKeyVaultProperty |fl
+```
+
+```output
+CmkIdentity : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKekIdentity
+CmkInfrastructureEncryption : Enabled
+CmkKeyVaultProperty : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.CmkKeyVaultProperties
+State : Enabled
+
+IdentityId : /subscriptions/191973cd-9c54-41e0-ac19-25dd9a92d5a8/resourcegroups/jeevan-wrk-vms/providers/Microsoft.ManagedIdentity/userAssignedIdentities
+ /userMSIpstest
+IdentityType : UserAssigned
+
+KeyUri : https://jeevantestkeyvaultcmk.vault.azure.net/keys/pstest/3cd5235ad6ac4c11b40a6f35444bcbe1
+```
+
+First command gets a specific vault by given vault name, subsequent three commands fetch the specity properites of encryption settings.
\ 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 6ee39e31d652..cf385bfd1e3c 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.Api20231201.ResourceGuardOperationDetail,
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail}
+ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail}
SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData
Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies
```
diff --git a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupVault.md
index db62797f6606..01dc5f23f523 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupVault.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/New-AzDataProtectionBackupVault.md
@@ -27,3 +27,34 @@ ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type
```
This command creates a new backup vault while setting Immutability state, cross subscription restore state, soft delete settings of the vault at creation time.
+
+### Example 3: Create a Backup Vault with CMK
+```powershell
+$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant
+$userAssignedIdentity = @{
+ "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami" = @{
+ clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ principalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }
+ "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami2" = @{
+ clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ principalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }
+}
+
+$cmkIdentityId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami"
+
+$cmkKeyUri = "https://samplekvazbckp.vault.azure.net/keys/testkey/3cd5235ad6ac4c11b40a6f35444bcbe1"
+
+New-AzDataProtectionBackupVault -SubscriptionId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Location "location" -StorageSetting $storagesetting -IdentityType UserAssigned -UserAssignedIdentity $userAssignedIdentity -CmkEncryptionState Enabled -CmkIdentityType UserAssigned -CmkUserAssignedIdentityId $cmkIdentityId -CmkEncryptionKeyUri $cmkKeyUri -CmkInfrastructureEncryption Enabled
+```
+
+```output
+Name Location IdentityType
+-------- -------- ------------
+vaultName location UserAssigned
+```
+
+This command creates a backup vault with CMK encryption enabled
+
+
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md b/src/DataProtection/DataProtection.Autorest/examples/Set-AzDataProtectionResourceGuardMapping.md
index 9fb673bdeb40..d66720277b9d 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.Api20231201.ResourceGuardOperationDetail,
- Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ResourceGuardOperationDetail}
+ResourceGuardOperationDetail : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail,
+ Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ResourceGuardOperationDetail}
SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api40.SystemData
Type : Microsoft.DataProtection/vaults/backupResourceGuardProxies
```
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Stop-AzDataProtectionBackupInstanceProtection.md b/src/DataProtection/DataProtection.Autorest/examples/Stop-AzDataProtectionBackupInstanceProtection.md
index ec7ec768bc99..f1640bfc2ab9 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Stop-AzDataProtectionBackupInstanceProtection.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Stop-AzDataProtectionBackupInstanceProtection.md
@@ -4,4 +4,3 @@ Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -Subsc
```
The above command can be used to stop protection of a backup instance
-
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Suspend-AzDataProtectionBackupInstanceBackup.md b/src/DataProtection/DataProtection.Autorest/examples/Suspend-AzDataProtectionBackupInstanceBackup.md
index b958a2547ddb..e1f20b9b2966 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Suspend-AzDataProtectionBackupInstanceBackup.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Suspend-AzDataProtectionBackupInstanceBackup.md
@@ -4,4 +4,3 @@ Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -Subscr
```
The above command can be used to stop backups of a backup instance, this will move the backup instance to a suspended state.
-
diff --git a/src/DataProtection/DataProtection.Autorest/examples/Update-AzDataProtectionBackupVault.md b/src/DataProtection/DataProtection.Autorest/examples/Update-AzDataProtectionBackupVault.md
index 2f28799de0cc..c150e2826c2b 100644
--- a/src/DataProtection/DataProtection.Autorest/examples/Update-AzDataProtectionBackupVault.md
+++ b/src/DataProtection/DataProtection.Autorest/examples/Update-AzDataProtectionBackupVault.md
@@ -37,3 +37,33 @@ vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned
```
This command is used to modify Immutability state, cross subscription restore state, soft delete settings of the vault. These parameters are optional and can be used independently.
+
+### Example 4: Update vault CmkIdentityType from UserAssignedManagedIdentity to SystemAssignedManagedIdentity and CmkEncryptionKeyUri
+```powershell
+$cmkKeyUri = "https://samplekvazbckp.vault.azure.net/keys/testkey/3cd5235ad6ac4c11b40a6f35444bcbe1"
+
+Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CmkIdentityType SystemAssigned -CmkEncryptionKeyUri $cmkKeyUri
+```
+
+```output
+Name Location Type IdentityType
+---- -------- ---- ------------
+vaultName southeastasia Microsoft.DataProtection/backupVaults SystemAssigned
+```
+
+This command is used to modify CmkIdentityType and CmkEncryptionKeyUri. These parameters are optional and can be used independently.
+
+### Example 5: Update vault CmkIdentityType from SystemAssignedManagedIdentity to UserAssignedManagedIdentity
+```powershell
+$cmkIdentityId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami"
+
+Update-AzDataProtectionBackupVault -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -CmkIdentityType UserAssigned -CmkUserAssignedIdentityId $cmkIdentityId
+```
+
+```output
+Name Location Type IdentityType
+---- -------- ---- ------------
+vaultName southeastasia Microsoft.DataProtection/backupVaults UserAssigned
+```
+
+This command is used to change CmkIdentityType from SystemAssigned to UserAssgined. CmkIdenityId is a required parameter.
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Backup-AzDataProtectionBackupInstanceAdhoc.ps1
index 3498aa1ec1a7..0f815d167cb0 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.Api20231201.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,13 +56,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc
#>
function Backup-AzDataProtectionBackupInstanceAdhoc {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='BackupExpanded', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1
index b56d5c6eb9a9..69d2ae6fed65 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.Api20231201.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveRetention', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.ISourceLifeCycle[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 84123f900c7c..e23bb761a894 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.Api20231201.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveTag', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IScheduleBasedBackupCriteria[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 5737298e9b25..cacb116fd192 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.Api20231201.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy])]
[CmdletBinding(DefaultParameterSetName='RemoveBackupSchedule', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 cf82aa7a9eb2..655b55a77723 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.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupFindRestorableTimeRangesResponseResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange
#>
function Find-AzDataProtectionRestorableTimeRange {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupFindRestorableTimeRangesResponseResource])]
[CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstance.ps1
index 17fc7782882b..6a0355c4b559 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.Api20231201.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -45,13 +45,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance
#>
function Get-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstancesExtensionRouting.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstancesExtensionRouting.ps1
new file mode 100644
index 000000000000..0efcc10726e5
--- /dev/null
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupInstancesExtensionRouting.ps1
@@ -0,0 +1,166 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets a list of backup instances associated with a tracked resource
+.Description
+Gets a list of backup instances associated with a tracked resource
+.Example
+$diskARMID = "subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk"
+Get-AzDataProtectionBackupInstancesExtensionRouting -ResourceId $diskARMID
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource
+.Link
+https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstancesextensionrouting
+#>
+function Get-AzDataProtectionBackupInstancesExtensionRouting {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
+ [System.String]
+ # ARM path of the resource to be protected using Microsoft.DataProtection
+ ${ResourceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstancesExtensionRouting_List';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupPolicy.ps1
index 79b12862777d..b331bc980b1f 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.Api20231201.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -45,13 +45,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy
#>
function Get-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
index 97db4d879d1a..12e69a960c84 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionBackupVault.ps1
@@ -28,11 +28,16 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa
.Example
$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName hiaga-rg -VaultName hiaga-vault
$vault.SecureScore
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$vault.EncryptionSetting |fl
+$vault.EncryptionSetting.CmkIdentity |fl
+$vault.EncryptionSetting.CmkKeyVaultProperty |fl
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -50,13 +55,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault
#>
function Get-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get')]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionJob.ps1
index 0a0a28fc5aec..f8f0b7b9c158 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.Api20231201.IAzureBackupJobResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupJobResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -47,13 +47,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionjob
#>
function Get-AzDataProtectionJob {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupJobResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 46c58331a314..ae41c762320c 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.Api20231201.IClientDiscoveryValueForSingleApi
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IClientDiscoveryValueForSingleApi
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation
#>
function Get-AzDataProtectionOperation {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 70144861c43b..bb1c57bbd0c9 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.Api20231201.IOperationResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -48,13 +48,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperationstatus
#>
function Get-AzDataProtectionOperationStatus {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionPolicyTemplate.ps1
index 3123fafb9b7c..80506e8a5035 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.Api20231201.IBackupPolicy
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupPolicy
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionpolicytemplate
#>
function Get-AzDataProtectionPolicyTemplate {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 9f5b69be38ef..3fb194161c03 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.Api20231201.IAzureBackupRecoveryPointResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPointResource
.Outputs
System.Management.Automation.PSObject
.Notes
@@ -52,13 +52,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint
#>
function Get-AzDataProtectionRecoveryPoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource], [PSObject])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPointResource], [PSObject])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuard.ps1
index 9dbedd319b5a..286ec1610226 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.Api20231201.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -45,13 +45,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard
#>
function Get-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionResourceGuardMapping.ps1
index 9e8551e90cb4..10eb14d3f320 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.Api20231201.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -44,13 +44,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguardmapping
#>
function Get-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Get-AzDataProtectionSoftDeletedBackupInstance.ps1
index 3c2a3ddeb567..1dc1b247f5f6 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.Api20231201.IDeletedBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDeletedBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -43,13 +43,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionsoftdeletedbackupinstance
#>
function Get-AzDataProtectionSoftDeletedBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDeletedBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1 b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
index ccf34f719d6e..8f3a42b8cbe3 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/Initialize-AzDataProtectionBackupInstance.ps1
@@ -39,7 +39,7 @@ $datasourceId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGro
$backupInstanceClientObject = Initialize-AzDataProtectionBackupInstance -DatasourceType AzureDatabaseForPGFlexServer -DatasourceLocation $vault.Location -PolicyId $pol[0].Id -DatasourceId $datasourceId
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -51,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.Api20231201.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource])]
[CmdletBinding(PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -106,7 +106,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupDatasourceParameters]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupDatasourceParameters]
# Backup configuration for backup.
# Use this parameter to configure protection for AzureKubernetesService,AzureBlob.
# 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 641dbde8dbd6..1fb60fde55be 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.Api20231201.IAzureBackupRestoreRequest
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRestoreRequest
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -96,6 +96,7 @@ BACKUPINSTANCE : Backup Instance object to trigger origi
[IdentityDetail ]: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned.
[UseSystemAssignedIdentity ]: Specifies if the BI is protected by System Identity.
[UserAssignedIdentityArmUrl ]: ARM URL for User Assigned Identity.
+ [ResourceGuardOperationRequest ]: ResourceGuardOperationRequests on which LAC check will be performed
[ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
[Tag ]: Proxy Resource tags.
[(Any) ]: This indicates any property can be added to this object.
@@ -121,7 +122,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.Api20231201.IAzureBackupRestoreRequest])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRestoreRequest])]
[CmdletBinding(DefaultParameterSetName='AlternateLocationFullRecovery', PositionalBinding=$false)]
param(
[Parameter(Mandatory)]
@@ -194,7 +195,7 @@ param(
[Parameter(ParameterSetName='OriginalLocationILR')]
[Parameter(ParameterSetName='OriginalLocationFullRecovery')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.KubernetesClusterRestoreCriteria]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.
@@ -264,7 +265,7 @@ param(
[Parameter(ParameterSetName='OriginalLocationILR', Mandatory)]
[Parameter(ParameterSetName='OriginalLocationFullRecovery', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.BackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.BackupInstanceResource]
# Backup Instance object to trigger original localtion restore.
# To construct, see NOTES section for BACKUPINSTANCE properties and create a hash table.
${BackupInstance},
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupConfigurationClientObject.ps1
index a881fb75211f..e287bc591627 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.Api20231201.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 04126fed0506..f42ad7258844 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupInstance.ps1
@@ -109,6 +109,7 @@ BACKUPINSTANCE : Backup instance request object which w
[IdentityDetail ]: Contains information of the Identity Details for the BI. If it is null, default will be considered as System Assigned.
[UseSystemAssignedIdentity ]: Specifies if the BI is protected by System Identity.
[UserAssignedIdentityArmUrl ]: ARM URL for User Assigned Identity.
+ [ResourceGuardOperationRequest ]: ResourceGuardOperationRequests on which LAC check will be performed
[ValidationType ]: Specifies the type of validation. In case of DeepValidation, all validations from /validateForBackup API will run again.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionbackupinstance
@@ -130,7 +131,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 28a50ec50a26..af51263586ec 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupPolicy.ps1
@@ -116,7 +116,7 @@ Edit-AzDataProtectionPolicyTagClientObject -Policy $defaultPol -Name Monthly -Cr
$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.Api20231201.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -146,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.Api20231201.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource])]
[CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -169,7 +169,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupPolicy]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 526c0d050dcc..dedb94641a38 100644
--- a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1
+++ b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionBackupVault.ps1
@@ -27,6 +27,24 @@ New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName sarath-r
$sub = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant
New-AzDataProtectionBackupVault -SubscriptionId $sub -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Location westus -StorageSetting $storagesetting -CrossSubscriptionRestoreState Enabled -ImmutabilityState Unlocked -SoftDeleteRetentionDurationInDay 100 -SoftDeleteState On
+.Example
+$storagesetting = New-AzDataProtectionBackupVaultStorageSettingObject -DataStoreType VaultStore -Type LocallyRedundant
+$userAssignedIdentity = @{
+ "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami" = @{
+ clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ principalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }
+ "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami2" = @{
+ clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ principalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+ }
+}
+
+$cmkIdentityId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sampleuami"
+
+$cmkKeyUri = "https://samplekvazbckp.vault.azure.net/keys/testkey/3cd5235ad6ac4c11b40a6f35444bcbe1"
+
+New-AzDataProtectionBackupVault -SubscriptionId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -ResourceGroupName "resourceGroupName" -VaultName "vaultName" -Location "location" -StorageSetting $storagesetting -IdentityType UserAssigned -UserAssignedIdentity $userAssignedIdentity -CmkEncryptionState Enabled -CmkIdentityType UserAssigned -CmkUserAssignedIdentityId $cmkIdentityId -CmkEncryptionKeyUri $cmkKeyUri -CmkInfrastructureEncryption Enabled
.Outputs
System.Management.Automation.PSObject
@@ -65,7 +83,7 @@ param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IStorageSetting[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.
@@ -86,7 +104,7 @@ param(
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
[System.String]
- # The identityType which can be either SystemAssigned or None.
+ # The identityType can take values - "SystemAssigned", "UserAssigned", "SystemAssigned,UserAssigned", "None".
${IdentityType},
[Parameter()]
@@ -136,6 +154,46 @@ param(
# Resource tags.
${Tag},
+ [Parameter()]
+ [Alias('UserAssignedIdentity')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.Collections.Hashtable]
+ # Gets or sets the user assigned identities.
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.EncryptionState]
+ # Enable CMK encryption state for a Backup Vault.
+ ${CmkEncryptionState},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.InfrastructureEncryptionState]
+ # Enable infrastructure encryption with CMK on this vault.
+ # Infrastructure encryption must be configured only when creating the vault.
+ ${CmkInfrastructureEncryption},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.IdentityType]
+ # The identity type to be used for CMK encryption - SystemAssigned or UserAssigned Identity.
+ ${CmkIdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # This parameter is required if the identity type is UserAssigned.
+ # Add the user assigned managed identity id to be used which has access permissions to the Key Vault.
+ ${CmkUserAssignedIdentityId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [System.String]
+ # The Key URI of the CMK key to be used for encryption.
+ # To enable auto-rotation of keys, exclude the version component from the Key URI.
+ ${CmkEncryptionKeyUri},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
diff --git a/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1 b/src/DataProtection/DataProtection.Autorest/exports/New-AzDataProtectionPolicyTagCriteriaClientObject.ps1
index b6d2cee719a9..e0ea281b2c30 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.Api20231201.IScheduleBasedBackupCriteria
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IScheduleBasedBackupCriteria
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionpolicytagcriteriaclientobject
#>
function New-AzDataProtectionPolicyTagCriteriaClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IScheduleBasedBackupCriteria])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 2b26a25f556b..3861f4c24227 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.Api20231201.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionresourceguard
#>
function New-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 566645dc74bd..37a0daded0d4 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.Api20231201.KubernetesClusterRestoreCriteriaNamespaceMappings]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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.Api20231201.NamespacedNameResource[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 2f6dab3e4082..edffd0b4066f 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.Api20231201.ISourceLifeCycle
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.ISourceLifeCycle
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/new-azdataprotectionretentionlifecycleclientobject
#>
function New-AzDataProtectionRetentionLifeCycleClientObject {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.ISourceLifeCycle])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.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 cd89b2794086..75436eac7f3f 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.Api20231201.IOperationJobExtendedInfo
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -56,13 +56,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/backup-azdataprotectionbackupinstanceadhoc
#>
function Backup-AzDataProtectionBackupInstanceAdhoc {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationJobExtendedInfo])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo])]
[CmdletBinding(DefaultParameterSetName='BackupExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='BackupExpanded', Mandatory)]
@@ -273,12 +274,12 @@ $pointInTimeRange = Find-AzDataProtectionRestorableTimeRange -BackupInstanceName
$pointInTimeRange.RestorableTimeRange | Format-List
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupFindRestorableTimeRangesResponseResource
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/find-azdataprotectionrestorabletimerange
#>
function Find-AzDataProtectionRestorableTimeRange {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupFindRestorableTimeRangesResponseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupFindRestorableTimeRangesResponseResource])]
[CmdletBinding(DefaultParameterSetName='FindExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -465,6 +466,157 @@ end {
}
}
+<#
+.Synopsis
+Gets a list of backup instances associated with a tracked resource
+.Description
+Gets a list of backup instances associated with a tracked resource
+.Example
+$diskARMID = "subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk"
+Get-AzDataProtectionBackupInstancesExtensionRouting -ResourceId $diskARMID
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource
+.Link
+https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstancesextensionrouting
+#>
+function Get-AzDataProtectionBackupInstancesExtensionRouting {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
+ [System.String]
+ # ARM path of the resource to be protected using Microsoft.DataProtection
+ ${ResourceId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ List = 'Az.DataProtection.private\Get-AzDataProtectionBackupInstancesExtensionRouting_List';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
+ }
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
+
<#
.Synopsis
Gets a backup instance with name in a backup vault
@@ -478,7 +630,7 @@ Get-AzDataProtectionBackupInstance -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -496,13 +648,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupinstance
#>
function Get-AzDataProtectionBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -694,7 +847,7 @@ Get-AzDataProtectionBackupPolicy -SubscriptionId "xxxx-xxx-xxx" -ResourceGroupNa
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -712,13 +865,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackuppolicy
#>
function Get-AzDataProtectionBackupPolicy {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBaseBackupPolicyResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBaseBackupPolicyResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -911,11 +1065,16 @@ Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupNa
.Example
$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName hiaga-rg -VaultName hiaga-vault
$vault.SecureScore
+.Example
+$vault = Get-AzDataProtectionBackupVault -SubscriptionId "xxxx-xxx-xxxx" -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$vault.EncryptionSetting |fl
+$vault.EncryptionSetting.CmkIdentity |fl
+$vault.EncryptionSetting.CmkKeyVaultProperty |fl
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -933,13 +1092,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionbackupvault
#>
function Get-AzDataProtectionBackupVault {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IBackupVaultResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IBackupVaultResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get')]
@@ -1128,7 +1288,7 @@ While((Get-AzDataProtectionOperationStatus -OperationId $operationId -Location $
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1146,13 +1306,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperationstatus
#>
function Get-AzDataProtectionOperationStatus {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IOperationResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1328,12 +1489,12 @@ Returns the list of available operations.
Get-AzDataProtectionOperation
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IClientDiscoveryValueForSingleApi
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionoperation
#>
function Get-AzDataProtectionOperation {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IClientDiscoveryValueForSingleApi])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IClientDiscoveryValueForSingleApi])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter()]
@@ -1481,7 +1642,7 @@ $recoveryPoints = Get-AzDataProtectionRecoveryPoint -SubscriptionId "xxxxxxxx-xx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPointResource
.Outputs
System.Management.Automation.PSObject
.Notes
@@ -1501,13 +1662,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionrecoverypoint
#>
function Get-AzDataProtectionRecoveryPoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IAzureBackupRecoveryPointResource], [PSObject])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IAzureBackupRecoveryPointResource], [PSObject])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1723,7 +1885,7 @@ $mapping | fl
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1741,13 +1903,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguardmapping
#>
function Get-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -1935,7 +2098,7 @@ Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1953,13 +2116,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionresourceguard
#>
function Get-AzDataProtectionResourceGuard {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardResource])]
[CmdletBinding(DefaultParameterSetName='Get1', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -2141,7 +2305,7 @@ Get-AzDataProtectionSoftDeletedBackupInstance -ResourceGroupName $resourceGroupN
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDeletedBackupInstanceResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2159,13 +2323,14 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
https://learn.microsoft.com/powershell/module/az.dataprotection/get-azdataprotectionsoftdeletedbackupinstance
#>
function Get-AzDataProtectionSoftDeletedBackupInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IDeletedBackupInstanceResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IDeletedBackupInstanceResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -2373,6 +2538,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -2417,6 +2583,13 @@ param(
# To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Header')]
+ [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.
+ ${Token},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2602,6 +2775,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -2818,6 +2992,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -3042,6 +3217,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -3254,6 +3430,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -3463,6 +3640,7 @@ INPUTOBJECT : Identity Parameter
[ResourceGroupName ]: The name of the resource group. The name is case insensitive.
[ResourceGuardProxyName ]: name of the resource guard proxy
[ResourceGuardsName ]: The name of ResourceGuard
+ [ResourceId ]: ARM path of the resource to be protected using Microsoft.DataProtection
[SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
[VaultName ]: The name of the backup vault.
.Link
@@ -3671,7 +3849,7 @@ $proxy = Set-AzDataProtectionResourceGuardMapping -ResourceGroupName $resourceGr
$proxy | fl
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -3684,7 +3862,7 @@ RESOURCEGUARDOPERATIONDETAIL : .
https://learn.microsoft.com/powershell/module/az.dataprotection/set-azdataprotectionresourceguardmapping
#>
function Set-AzDataProtectionResourceGuardMapping {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20231201.IResourceGuardProxyBaseResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IResourceGuardProxyBaseResource])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -3855,56 +4033,42 @@ end {
<#
.Synopsis
-This operation will stop protection of a backup instance and data will be held forever
+Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state
.Description
-This operation will stop protection of a backup instance and data will be held forever
+Sync backup instance again in case of failure\r\nThis action will retry last failed operation and will bring backup instance to valid state
.Example
-Stop-AzDataProtectionBackupInstanceProtection -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName
+Sync-AzDataProtectionBackupInstance -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
System.Boolean
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [BackupInstanceName ]: The name of the backup instance.
- [BackupPolicyName ]:
- [Id ]: Resource identity path
- [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
- [Location ]: The location in which uniqueness will be verified.
- [OperationId ]:
- [RecoveryPointId ]:
- [RequestName ]:
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [ResourceGuardProxyName ]: name of the resource guard proxy
- [ResourceGuardsName ]: The name of ResourceGuard
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [VaultName ]: The name of the backup vault.
.Link
-https://learn.microsoft.com/powershell/module/az.dataprotection/stop-azdataprotectionbackupinstanceprotection
+https://learn.microsoft.com/powershell/module/az.dataprotection/sync-azdataprotectionbackupinstance
#>
-function Stop-AzDataProtectionBackupInstanceProtection {
+function Sync-AzDataProtectionBackupInstance {
[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[CmdletBinding(DefaultParameterSetName='SyncExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Parameter(Mandatory)]
+ [Alias('BackupInstanceName')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
[System.String]
# The name of the backup instance.
- ${BackupInstanceName},
+ ${Name},
- [Parameter(ParameterSetName='Stop', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},
- [Parameter(ParameterSetName='Stop')]
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
+ [System.String]
+ # The name of the backup vault.
+ ${VaultName},
+
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
@@ -3912,18 +4076,13 @@ param(
# The value must be an UUID.
${SubscriptionId},
- [Parameter(ParameterSetName='Stop', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
- [System.String]
- # The name of the backup vault.
- ${VaultName},
-
- [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Support.SyncType]
+ # Field indicating sync type e.g.
+ # to sync only in case of failure or in all cases
+ ${SyncType},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -4018,10 +4177,9 @@ begin {
}
$mapping = @{
- Stop = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_Stop';
- StopViaIdentity = 'Az.DataProtection.private\Stop-AzDataProtectionBackupInstanceProtection_StopViaIdentity';
+ SyncExpanded = 'Az.DataProtection.private\Sync-AzDataProtectionBackupInstance_SyncExpanded';
}
- if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ if (('SyncExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
$testPlayback = $false
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
if ($testPlayback) {
@@ -4082,56 +4240,79 @@ end {
<#
.Synopsis
-This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)
+Validate whether adhoc backup will be successful or not
.Description
-This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)
+Validate whether adhoc backup will be successful or not
.Example
-Suspend-AzDataProtectionBackupInstanceBackup -ResourceGroupName "rgName" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx" -VaultName "vaultName" -BackupInstanceName $backupInstance.BackupInstanceName
+$vault = Get-AzDataProtectionBackupVault -ResourceGroupName "resourceGroupName" -VaultName "vaultName"
+$diskBackupPolicy = Get-AzDataProtectionBackupPolicy -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -Name "diskBackupPolicy"
+$diskId = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/rgName/providers/Microsoft.Compute/disks/test-disk"
+$snapshotRG = "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rgName"
+$instance = Initialize-AzDataProtectionBackupInstance -SnapshotResourceGroupId $Snapshotrg -DatasourceType AzureDisk -DatasourceLocation $vault.Location -PolicyId $diskBackupPolicy[0].Id -DatasourceId $diskId
+Test-AzDataProtectionBackupInstanceReadiness -ResourceGroupName "resourceGroupName" -VaultName $vault.Name -BackupInstance $instance[0].Property
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDataProtectionIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20240401.IOperationJobExtendedInfo
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [BackupInstanceName ]: The name of the backup instance.
- [BackupPolicyName ]:
- [Id ]: Resource identity path
- [JobId ]: The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
- [Location ]: The location in which uniqueness will be verified.
- [OperationId ]:
- [RecoveryPointId ]:
- [RequestName ]:
- [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
- [ResourceGuardProxyName ]: name of the resource guard proxy
- [ResourceGuardsName ]: The name of ResourceGuard
- [SubscriptionId ]: The ID of the target subscription. The value must be an UUID.
- [VaultName ]: The name of the backup vault.
-.Link
-https://learn.microsoft.com/powershell/module/az.dataprotection/suspend-azdataprotectionbackupinstancebackup
-#>
-function Suspend-AzDataProtectionBackupInstanceBackup {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Suspend', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Suspend', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Category('Path')]
- [System.String]
- # The name of the backup instance.
- ${BackupInstanceName},
-
- [Parameter(ParameterSetName='Suspend', Mandatory)]
+BACKUPINSTANCE : Backup Instance
+ DataSourceInfo : Gets or sets the data source information.
+ ResourceId : Full ARM ID of the resource. For azure resources, this is ARM ID. For non azure resources, this will be the ID created by backup service via Fabric/Vault.
+ [ObjectType ]: Type of Datasource object, used to initialize the right inherited type
+ [ResourceLocation ]: Location of datasource.
+ [ResourceName ]: Unique identifier of the resource in the context of parent.
+ [ResourceType ]: Resource Type of Datasource.
+ [ResourceUri ]: Uri of the resource.
+ [Type ]: DatasourceType of the resource.
+ ObjectType :
+ PolicyInfo : Gets or sets the policy information.
+ PolicyId :
+ [PolicyParameter ]: Policy parameters for the backup instance
+ [BackupDatasourceParametersList ]: Gets or sets the Backup Data Source Parameters
+ ObjectType : Type of the specific object - used for deserializing
+ [DataStoreParametersList