diff --git a/src/azure-cli/azure/cli/command_modules/backup/_params.py b/src/azure-cli/azure/cli/command_modules/backup/_params.py index 99c6c480c20..9888be1f575 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/_params.py +++ b/src/azure-cli/azure/cli/command_modules/backup/_params.py @@ -403,6 +403,7 @@ def load_arguments(self, _): c.argument('tenant_id', help='ID of the tenant if the Resource Guard protecting the vault exists in a different tenant.') c.argument('disk_access_option', arg_type=get_enum_type(allowed_disk_access_options), help='Specify the disk access option for target disks.') c.argument('target_disk_access_id', help='Specify the target disk access ID when --disk-access-option is set to EnablePrivateAccessForAllDisks') + c.argument('cvm_os_des_id', options_list=['--cvm-os-des-id', '--cvm-os-disk-encryption-set-id'], help='Specify the Disk Encryption Set ID to use for OS disk encryption during restore of a Confidential VM. This is applicable only for Confidential VMs with managed disks. Please ensure that Disk Encryption Set has access to the Key vault.') with self.argument_context('backup restore restore-azurefileshare') as c: c.argument('resolve_conflict', resolve_conflict_type) diff --git a/src/azure-cli/azure/cli/command_modules/backup/custom.py b/src/azure-cli/azure/cli/command_modules/backup/custom.py index ac085f6951f..78b4cdd67d6 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/custom.py +++ b/src/azure-cli/azure/cli/command_modules/backup/custom.py @@ -27,7 +27,8 @@ BackupResourceVaultConfig, BackupResourceVaultConfigResource, DiskExclusionProperties, ExtendedProperties, \ MoveRPAcrossTiersRequest, RecoveryPointRehydrationInfo, IaasVMRestoreWithRehydrationRequest, IdentityInfo, \ BackupStatusRequest, ListRecoveryPointsRecommendedForMoveRequest, IdentityBasedRestoreDetails, ScheduleRunType, \ - UnlockDeleteRequest, ResourceGuardProxyBase, ResourceGuardProxyBaseResource, TargetDiskNetworkAccessSettings + UnlockDeleteRequest, ResourceGuardProxyBase, ResourceGuardProxyBaseResource, TargetDiskNetworkAccessSettings, \ + SecuredVMDetails from azure.mgmt.recoveryservicesbackup.passivestamp.models import CrrJobRequest, CrossRegionRestoreRequest import azure.cli.command_modules.backup._validators as validators @@ -1405,7 +1406,7 @@ def restore_disks(cmd, client, resource_group_name, vault_name, container_name, mi_user_assigned=None, target_zone=None, restore_mode='AlternateLocation', target_vm_name=None, target_vnet_name=None, target_vnet_resource_group=None, target_subnet_name=None, target_subscription_id=None, storage_account_resource_group=None, restore_to_edge_zone=None, - tenant_id=None, disk_access_option=None, target_disk_access_id=None): + tenant_id=None, disk_access_option=None, target_disk_access_id=None, cvm_os_des_id=None): vault = vaults_cf(cmd.cli_ctx).get(resource_group_name, vault_name) vault_location = vault.location vault_identity = vault.identity @@ -1540,6 +1541,11 @@ def restore_disks(cmd, client, resource_group_name, vault_name, container_name, cust_help.get_resource_guard_operation_request( cmd.cli_ctx, resource_group_name, vault_name, "RecoveryServicesRestore")] + if cvm_os_des_id is not None: + trigger_restore_request.properties.secured_vm_details = SecuredVMDetails( + secured_vmos_disk_encryption_set_id=cvm_os_des_id + ) + # Trigger restore result = client.begin_trigger(vault_name, resource_group_name, fabric_name, container_uri, item_uri, rp_name, trigger_restore_request, cls=cust_help.get_pipeline_response, polling=False).result() diff --git a/src/azure-cli/azure/cli/command_modules/backup/custom_base.py b/src/azure-cli/azure/cli/command_modules/backup/custom_base.py index 659806c5010..f6e3f305c42 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/custom_base.py +++ b/src/azure-cli/azure/cli/command_modules/backup/custom_base.py @@ -420,7 +420,8 @@ def restore_disks(cmd, client, resource_group_name, vault_name, container_name, mi_user_assigned=None, target_zone=None, restore_mode='AlternateLocation', target_vm_name=None, target_vnet_name=None, target_vnet_resource_group=None, target_subnet_name=None, target_subscription_id=None, storage_account_resource_group=None, restore_to_edge_zone=None, - tenant_id=None, disk_access_option=None, target_disk_access_id=None): + tenant_id=None, disk_access_option=None, target_disk_access_id=None, + cvm_os_des_id=None): if rehydration_duration < 10 or rehydration_duration > 30: raise InvalidArgumentValueError('--rehydration-duration must have a value between 10 and 30 (both inclusive).') @@ -438,7 +439,7 @@ def restore_disks(cmd, client, resource_group_name, vault_name, container_name, mi_system_assigned, mi_user_assigned, target_zone, restore_mode, target_vm_name, target_vnet_name, target_vnet_resource_group, target_subnet_name, target_subscription_id, storage_account_resource_group, restore_to_edge_zone, - tenant_id, disk_access_option, target_disk_access_id) + tenant_id, disk_access_option, target_disk_access_id, cvm_os_des_id) def enable_for_azurefileshare(cmd, client, resource_group_name, vault_name, policy_name, storage_account, diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_cvm_os_des_id.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_cvm_os_des_id.yaml new file mode 100644 index 00000000000..e15448bf0ca --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_cvm_os_des_id.yaml @@ -0,0 +1,1268 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup recoverypoint list + Connection: + - keep-alive + ParameterSetName: + - --backup-management-type --workload-type -g -v -c -i --query + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupProtectedItems?api-version=2025-02-01&%24filter=backupManagementType+eq+%27AzureIaasVM%27+and+itemType+eq+%27VM%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","name":"VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"PSCVMRestoreTestingVM","virtualMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","protectionStatus":"Healthy","protectionState":"Protected","healthStatus":"Passed","healthDetails":[{"code":400239,"title":"IaasVmHealthGreenDefault","message":"Backup + pre-check status of this virtual machine is OK.","recommendations":[]}],"lastBackupStatus":"Completed","lastBackupTime":"2025-07-22T16:04:15.4329831Z","protectedItemDataId":"686095811647967","extendedProperties":{},"policyType":"V2","protectedItemType":"Microsoft.Compute/virtualMachines","backupManagementType":"AzureIaasVM","workloadType":"VM","containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupPolicies/EnhancedPolicy","policyName":"EnhancedPolicy","lastRecoveryPoint":"2025-07-22T16:04:21.5479974Z","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1950' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/590bd417-a25c-4f25-8419-b5d643166fd0 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 83313530E98A43478FAA81C492633E4E Ref B: MAA201060514029 Ref C: 2025-07-22T18:39:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup recoverypoint list + Connection: + - keep-alive + ParameterSetName: + - --backup-management-type --workload-type -g -v -c -i --query + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/protectedItems/VM%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/recoveryPoints?api-version=2025-02-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/793261117373493","name":"793261117373493","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-22T16:04:21.5479974Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/792668740094072","name":"792668740094072","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-22T12:08:08.2700629Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/805693973063623","name":"805693973063623","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-22T08:10:20.0727443Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-24T08:10:20.0727443","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/795059349993616","name":"795059349993616","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-21T20:02:40.1181823Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/796126992505475","name":"796126992505475","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-21T16:07:03.1276546Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-23T16:07:03.1276546","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/805076219483643","name":"805076219483643","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-21T12:09:50.8632705Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-23T12:09:50.8632705","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/808854646500410","name":"808854646500410","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-21T08:03:49.4931213Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-23T08:03:49.4931213","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/807063048802228","name":"807063048802228","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-20T20:04:20.4997883Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-22T20:04:20.4997883","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/803580183720343","name":"803580183720343","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-20T16:05:57.036775Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-22T16:05:57.0367750","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/799008005624270","name":"799008005624270","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-20T12:04:34.1049497Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-07-22T12:04:34.1049497","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/804241245670911","name":"804241245670911","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-19T20:07:52.9203573Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Deleted"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-08-18T20:07:52.9203573","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/798307612216674","name":"798307612216674","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-18T20:01:12.9697656Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Deleted"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-08-17T20:01:12.9697656","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/807152782396876","name":"807152782396876","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-17T20:08:07.3561787Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Deleted"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-08-16T20:08:07.3561787","ruleName":"Daily","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/797302446306145","name":"797302446306145","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-17T05:43:12.8032839Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Deleted"},{"type":"HardenedRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","recoveryPointProperties":{"expiryTime":"2025-08-16T05:43:02.0000000","ruleName":"On-Demand","isSoftDeleted":false},"isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '19562' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:24 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/eb00f3db-cbd4-4819-a50e-0e3ac38d48f6 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 54AC808D6414474A819F092C361884FE Ref B: MAA201060514025 Ref C: 2025-07-22T18:39:24Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault?api-version=2025-02-01 + response: + body: + string: '{"location":"eastus2euap","name":"PSTestingVault","etag":"W/\"datetime''2025-07-22T05%3A15%3A09.257347Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None","backupStorageVersion":"V1","securitySettings":{"immutabilitySettings":{"state":"Disabled"},"softDeleteSettings":{"softDeleteRetentionPeriodInDays":14,"softDeleteState":"Enabled","enhancedSecurityState":"Enabled"},"multiUserAuthorization":"Disabled","sourceScanConfiguration":{"state":"Disabled"}},"redundancySettings":{"standardTierStorageRedundancy":"GeoRedundant","crossRegionRestore":"Disabled"},"secureScore":"None","bcdrSecurityLevel":"Poor","publicNetworkAccess":"Enabled","restoreSettings":{"crossSubscriptionRestoreSettings":{"crossSubscriptionRestoreState":"Enabled"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"RS0","tier":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '1043' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 1B8D3F6BA4234FDFA7B4E12DA4F60591 Ref B: MAA201060516049 Ref C: 2025-07-22T18:39:26Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupProtectedItems?api-version=2025-02-01&%24filter=backupManagementType+eq+%27AzureIaasVM%27+and+itemType+eq+%27VM%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","name":"VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"PSCVMRestoreTestingVM","virtualMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","protectionStatus":"Healthy","protectionState":"Protected","healthStatus":"Passed","healthDetails":[{"code":400239,"title":"IaasVmHealthGreenDefault","message":"Backup + pre-check status of this virtual machine is OK.","recommendations":[]}],"lastBackupStatus":"Completed","lastBackupTime":"2025-07-22T16:04:15.4329831Z","protectedItemDataId":"686095811647967","extendedProperties":{},"policyType":"V2","protectedItemType":"Microsoft.Compute/virtualMachines","backupManagementType":"AzureIaasVM","workloadType":"VM","containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupPolicies/EnhancedPolicy","policyName":"EnhancedPolicy","lastRecoveryPoint":"2025-07-22T16:04:21.5479974Z","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1950' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/19d8d9ba-e0ae-4d47-9209-a09877a4769f + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: DF2309CBF2494838BA747F11189C4EC7 Ref B: MAA201060513029 Ref C: 2025-07-22T18:39:28Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupProtectionContainers?api-version=2025-02-01&%24filter=backupManagementType+eq+%27AzureIaasVM%27+and+friendlyName+eq+%27PSCVMRestoreTestingVM%27+and+status+eq+%27Registered%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;pscvmrestoretestingvm","name":"IaasVMContainer;iaasvmcontainerv2;sgholap-rg;pscvmrestoretestingvm","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers","properties":{"virtualMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","virtualMachineVersion":"Compute","resourceGroup":"sgholap-rg","friendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","registrationStatus":"Registered","healthStatus":"Healthy","containerType":"Microsoft.Compute/virtualMachines","protectableObjectType":"Microsoft.Compute/virtualMachines"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '909' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/3075145d-d042-45bb-bd6c-7c06c433a362 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: F2F0AF9CF69646C48FF1B5C88BDD0078 Ref B: MAA201060515025 Ref C: 2025-07-22T18:39:29Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupProtectedItems?api-version=2025-02-01&%24filter=backupManagementType+eq+%27AzureIaasVM%27+and+itemType+eq+%27VM%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","name":"VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"PSCVMRestoreTestingVM","virtualMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","protectionStatus":"Healthy","protectionState":"Protected","healthStatus":"Passed","healthDetails":[{"code":400239,"title":"IaasVmHealthGreenDefault","message":"Backup + pre-check status of this virtual machine is OK.","recommendations":[]}],"lastBackupStatus":"Completed","lastBackupTime":"2025-07-22T16:04:15.4329831Z","protectedItemDataId":"686095811647967","extendedProperties":{},"policyType":"V2","protectedItemType":"Microsoft.Compute/virtualMachines","backupManagementType":"AzureIaasVM","workloadType":"VM","containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupPolicies/EnhancedPolicy","policyName":"EnhancedPolicy","lastRecoveryPoint":"2025-07-22T16:04:21.5479974Z","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1950' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:30 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/e5d6d683-7280-4af6-bd38-5f1099b0a48a + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 8CAADFCE8D4A4413B7A2868ACC902D9B Ref B: MAA201060514017 Ref C: 2025-07-22T18:39:30Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupProtectionContainers?api-version=2025-02-01&%24filter=backupManagementType+eq+%27AzureIaasVM%27+and+friendlyName+eq+%27PSCVMRestoreTestingVM%27+and+status+eq+%27Registered%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;pscvmrestoretestingvm","name":"IaasVMContainer;iaasvmcontainerv2;sgholap-rg;pscvmrestoretestingvm","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers","properties":{"virtualMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM","virtualMachineVersion":"Compute","resourceGroup":"sgholap-rg","friendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","registrationStatus":"Registered","healthStatus":"Healthy","containerType":"Microsoft.Compute/virtualMachines","protectableObjectType":"Microsoft.Compute/virtualMachines"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '909' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/2d606802-0ada-4d80-a473-484ee9677194 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 79556ECE11334366B703EDCB7C96DD29 Ref B: MAA201060516037 Ref C: 2025-07-22T18:39:32Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/protectedItems/VM%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/recoveryPoints/793261117373493?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/recoveryPoints/793261117373493","name":"793261117373493","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"IaasVMRecoveryPoint","recoveryPointType":"AppConsistent","recoveryPointTime":"2025-07-22T16:04:21.5479974Z","recoveryPointAdditionalInfo":"","sourceVMStorageType":"PremiumVMOnPartialPremiumStorage","isSourceVMEncrypted":false,"isInstantIlrSessionActive":false,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"}],"isManagedVirtualMachine":true,"virtualMachineSize":"Standard_DC4ads_v5","originalStorageAccountOption":false,"osType":"Windows","recoveryPointMoveReadinessInfo":{"ArchivedRP":{"isReadyForMove":false,"additionalInfo":"We''re + still determining if this Recovery Point can be moved.. Please check again + after some time."}},"securityType":"ConfidentialVMDiskEncryptedWithCustomerKey","isPrivateAccessEnabledOnAnyDisk":false,"createdWithPolicyType":"V2"}}' + headers: + cache-control: + - no-cache + content-length: + - '1290' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/6f808828-fa01-4a01-a0e8-2fa04c29987c + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 863AF743A4824A82A6A039694EBE2FC2 Ref B: MAA201060513051 Ref C: 2025-07-22T18:39:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupEncryptionConfigs/backupResourceEncryptionConfig?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupEncryptionConfigs/backupResourceEncryptionConfig","name":"backupResourceEncryptionConfig","type":"Microsoft.RecoveryServices/vaults/backupEncryptionConfigs","properties":{"useSystemAssignedIdentity":true,"encryptionAtRestType":"MicrosoftManaged","lastUpdateStatus":"NotEnabled","infrastructureEncryptionState":"Disabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '472' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:34 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/c8ce22da-58b0-4c58-82ba-cbf8cda528f0 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 7E53DF2336BB4A4EAD251BF9BB9102EC Ref B: MAA201060516011 Ref C: 2025-07-22T18:39:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sgholap-rg/providers/Microsoft.ClassicStorage/storageAccounts/sgholapecysa3?api-version=2015-12-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.ClassicStorage/storageAccounts/sgholapecysa3'' + under resource group ''sgholap-rg'' was not found. For more details please + go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '236' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: 1DF97F427E66461A90DE565FBC8FD189 Ref B: MAA201060515025 Ref C: 2025-07-22T18:39:36Z' + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sgholap-rg/providers/Microsoft.Storage/storageAccounts/sgholapecysa3?api-version=2016-01-01 + response: + body: + string: '{"sku":{"name":"Standard_LRS","tier":"Standard"},"kind":"Storage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Storage/storageAccounts/sgholapecysa3","name":"sgholapecysa3","type":"Microsoft.Storage/storageAccounts","location":"eastus2euap","tags":{},"properties":{"encryption":{"services":{"blob":{"enabled":true,"lastEnabledTime":"2025-07-17T03:50:14.0779696Z"}},"keySource":"Microsoft.Storage"},"accessTier":"Hot","provisioningState":"Succeeded","creationTime":"2025-07-17T03:50:13.9685944Z","primaryEndpoints":{"blob":"https://sgholapecysa3.blob.core.windows.net/","queue":"https://sgholapecysa3.queue.core.windows.net/","table":"https://sgholapecysa3.table.core.windows.net/","file":"https://sgholapecysa3.file.core.windows.net/"},"primaryLocation":"eastus2euap","statusOfPrimary":"available"}}' + headers: + cache-control: + - no-cache + content-length: + - '858' + content-type: + - application/json + date: + - Tue, 22 Jul 2025 18:39:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 872E63F6B16C45BDB75A4EEB443B0A26 Ref B: MAA201060514039 Ref C: 2025-07-22T18:39:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/sgholapPSCLITestingrg/providers/Microsoft.Network/virtualNetworks/PSCLItestingvnet?api-version=2019-11-01 + response: + body: + string: '{"name":"PSCLItestingvnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Network/virtualNetworks/PSCLItestingvnet","etag":"W/\"5302a28c-44fc-4f07-80b4-e8182d6df99a\"","type":"Microsoft.Network/virtualNetworks","location":"eastus2euap","tags":{"AutoShutdown":"No","azsecpack":"nonprod","DeleteBy":"01-2031","IsMABUsed":"Yes","Owner":"asmaskar","platformsettings.host_environment.service.platform_optedin_for_rootcerts":"true","Purpose":"Testing"},"properties":{"provisioningState":"Succeeded","resourceGuid":"833d6420-139d-48b1-9626-8cdb4ee33c7f","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Network/virtualNetworks/PSCLItestingvnet/subnets/default","etag":"W/\"5302a28c-44fc-4f07-80b4-e8182d6df99a\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Network/networkSecurityGroups/NRMS-2ibirjc34emjkPSCLItestingvnet"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SGHOLAPPSCLITESTINGRG/providers/Microsoft.Network/networkInterfaces/SGHOLAPPSCLITESTINGRG833/ipConfigurations/IPCONFIG1"}],"delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false}}' + headers: + cache-control: + - no-cache + content-length: + - '1638' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 71e38245-7730-4ac6-a2e6-f799ce85532e + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 25C91882003F40818274124305FE46A1 Ref B: MAA201060513049 Ref C: 2025-07-22T18:39:38Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupResourceGuardProxies?api-version=2025-02-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/f865236b-bfc5-4621-bce4-767eabc518cb + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: D067FF994C53493CA24B056977ECE321 Ref B: MAA201060515051 Ref C: 2025-07-22T18:39:39Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"objectType": "IaasVMRestoreRequest", "recoveryPointId": + "793261117373493", "recoveryType": "AlternateLocation", "sourceResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/virtualMachines/PSCVMRestoreTestingVM", + "targetVirtualMachineId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Compute/virtualMachines/CLITestingVM", + "targetResourceGroupId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg", + "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Storage/storageAccounts/sgholapecysa3", + "virtualNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Network/virtualNetworks/PSCLItestingvnet", + "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholapPSCLITestingrg/providers/Microsoft.Network/virtualNetworks/PSCLItestingvnet/subnets/default", + "region": "eastus2euap", "createNewCloudService": false, "originalStorageAccountOption": + false, "securedVMDetails": {"securedVMOsDiskEncryptionSetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.Compute/diskEncryptionSets/CVMPSRestoreDES"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + Content-Length: + - '1397' + Content-Type: + - application/json + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/protectedItems/VM%3Biaasvmcontainerv2%3Bsgholap-rg%3BPSCVMRestoreTestingVM/recoveryPoints/793261117373493/restore?api-version=2025-02-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/operationsStatus/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01&t=638888063816422287&c=MIIIpTCCBo2gAwIBAgITFgGt09CbEY6uwfhRYAABAa3T0DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE5MTQzMTA4WhcNMjYwMTE1MTQzMTA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKSo9pUfr7R_HY2pKLoWRg2SNzLFYCwYeJIn2ZDkknZADlR8sFUGfuhDi-wOaGpHCLaor9ypgoPoLGySOlUwoLR3dNl3nfM2RFj_mOJp-gf6eYfe7DWlLjsXkjTnrMhGQxMeomLNC5ZfK_0k4DUHFJfyE4KK22OM21jSeSM40g7AxTnuS6UGpp73JfNEwsscuZizg9wwptlViAeNOcaKrkJz3tum6X67_-QhK6Ai6xIfifkumMkcCnvsz5_bjvqd2PwpFQxxOqOXavYKp9Xe0FNLglzLGtye5glrM8PzH7wmXySdjJm-F3p3VGa4P2C1Jk1aEcTnl5nko3izI7AwlF0CAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQU0zUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMygxKS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0FNM1BLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9BTTNQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAzKDEpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQU0zUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMygxKS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0FNM1BLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3J0MB0GA1UdDgQWBBTKNh18W_x7U7iP3s-HL2wMIReIfTAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBRIo61gdWpv7GDzaVXRALEyV_xs5DAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggIBAKRhazde-WvjGpCJ19is0jxrDtW72DjiWEM2pVGSINiQ7PF2swL-DwLTk3zQjEQzo7VZImCuZpjBZByNDxFH7VVYG5_UAKPsKQlwEOhUKh3PZUvTpEQP5uFL3o6B3irqpaU1cXcBucQrevvb3QR0PcJoAyhmopuim6ju8aZj9XmocCrAfk_76Wc6Qc3hnGUuEf6PVHMAtUQpmR5gZ4H7OOgyudhGuOnWLevH65Xb7z9lP7aXTj78pb4_Wn-kpTe88sTRCDvuAVlyeYjKc9Uh3sV5w5dfojnLbAGIrTGfYBYhNfndFTVOVZa2tcOplxi1-1nHO8dTXZoTnAU8cXPO4RYdV8XWOmLofILVQZI9cchwMtLsosbbfRJIXMGFUoxiuzgSMxaMTjJD1GlgGW-VGlD9ikcOGN_lTKRZ5wpdah6x8rugk2IKmlFnTGbFwXf__NklZmfGgm6BHZpq4TPwY_BcR6XDtzgPsJQANRx1d914wl4mC2kLIB0J3JHjxMKe4DJqLGkcr9CQZiiITokpp2JJa9rvpUF8WDT7ylcuM9vIRhxQuPS5Hi4seiZxpWB3x5Zcot_wRqvGSTP9n4AY59W3RXiBjMBWLUA-DIt-O5t_C_QbRWHOfTv6dc10ohOQarxR3uaeRLl8utPwtQHlZ6BrEgdVDrufJVMPkrsohmu1&s=aBP1Z9_dpTEv_XGb6qZ9-qo27JW7xuIYvSv7pj51_98GVQwUzw3r_ZE1jlL77gAWhw-FADVIaVt1EKwDnQ1nnoN0aIhHoVu9vIKEXnUsHMSA9vzlurUkTSAXhOPFrGw40x_VBclRhwu3XKbspzDkSasaXiZklKjAOdITGZZr-1uxyzxnOx3zI2KpddAlx8WnQkDJ2BJcFh5a4kaWa6_Icsk0rVMqgCDIs5blpojnBz-WF8i_aWkeWJ9fUQizoKiD4Vru-KQXB-PHwGZuUPHVvdlile2U2ovsaegB-CmILx1cdWFOq-g9JgkatPmNSUhvmzWpBEpf_hodhLNFcl6fjQ&h=XWey-vKae8kWrXbujK2HlBjjaFoa-ZLrWmJNk23I7w8 + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 22 Jul 2025 18:39:41 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/protectedItems/VM;iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM/operationResults/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01&t=638888063816422287&c=MIIIpTCCBo2gAwIBAgITFgGt09CbEY6uwfhRYAABAa3T0DANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDMwHhcNMjUwNzE5MTQzMTA4WhcNMjYwMTE1MTQzMTA4WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKSo9pUfr7R_HY2pKLoWRg2SNzLFYCwYeJIn2ZDkknZADlR8sFUGfuhDi-wOaGpHCLaor9ypgoPoLGySOlUwoLR3dNl3nfM2RFj_mOJp-gf6eYfe7DWlLjsXkjTnrMhGQxMeomLNC5ZfK_0k4DUHFJfyE4KK22OM21jSeSM40g7AxTnuS6UGpp73JfNEwsscuZizg9wwptlViAeNOcaKrkJz3tum6X67_-QhK6Ai6xIfifkumMkcCnvsz5_bjvqd2PwpFQxxOqOXavYKp9Xe0FNLglzLGtye5glrM8PzH7wmXySdjJm-F3p3VGa4P2C1Jk1aEcTnl5nko3izI7AwlF0CAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQU0zUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMygxKS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0FNM1BLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9BTTNQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAzKDEpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQU0zUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMygxKS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0FNM1BLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3J0MB0GA1UdDgQWBBTKNh18W_x7U7iP3s-HL2wMIReIfTAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDMoMSkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBRIo61gdWpv7GDzaVXRALEyV_xs5DAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggIBAKRhazde-WvjGpCJ19is0jxrDtW72DjiWEM2pVGSINiQ7PF2swL-DwLTk3zQjEQzo7VZImCuZpjBZByNDxFH7VVYG5_UAKPsKQlwEOhUKh3PZUvTpEQP5uFL3o6B3irqpaU1cXcBucQrevvb3QR0PcJoAyhmopuim6ju8aZj9XmocCrAfk_76Wc6Qc3hnGUuEf6PVHMAtUQpmR5gZ4H7OOgyudhGuOnWLevH65Xb7z9lP7aXTj78pb4_Wn-kpTe88sTRCDvuAVlyeYjKc9Uh3sV5w5dfojnLbAGIrTGfYBYhNfndFTVOVZa2tcOplxi1-1nHO8dTXZoTnAU8cXPO4RYdV8XWOmLofILVQZI9cchwMtLsosbbfRJIXMGFUoxiuzgSMxaMTjJD1GlgGW-VGlD9ikcOGN_lTKRZ5wpdah6x8rugk2IKmlFnTGbFwXf__NklZmfGgm6BHZpq4TPwY_BcR6XDtzgPsJQANRx1d914wl4mC2kLIB0J3JHjxMKe4DJqLGkcr9CQZiiITokpp2JJa9rvpUF8WDT7ylcuM9vIRhxQuPS5Hi4seiZxpWB3x5Zcot_wRqvGSTP9n4AY59W3RXiBjMBWLUA-DIt-O5t_C_QbRWHOfTv6dc10ohOQarxR3uaeRLl8utPwtQHlZ6BrEgdVDrufJVMPkrsohmu1&s=jV12lRPOaHg3CwwpZMJGUxcXv2ee3lL2ZCGbupCGJH_OUGUNufYamEDX7HU80X3tsT6nLbUZzr_BA6P8zFL1BEH4wS2_O7hnyPEj4Rn-8LZ94Z6T8lIze1NKo-_FZEVs7zfHmxriZQhUdHbmX0XpV7r8EWsrebeCVk1OJk7dgBsErRFQxjYSAFt400Mt2AASS4xAcZj1kJyy5T1s0dAnAN5RGOWnTfPebFkCYVsWV3yctjaJhUy-5Uq3sLroi_-lG7040EF1fUyumS4m1YcvQ_K-gtWh_HgPi5wWYPvHkRt5aIr3ZZQiniaCe2E9g3zQrMldxjdi5LSK9v-aj4X4qQ&h=AcoM1dTVwSh-ZsEEbZh_8Xll4oqSwGKzjTKKhUl6Q4Y + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/f7079f6b-ad9b-46aa-9b0d-2b186b504f2b + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: ACA14CF7058042C1905B1FC075509987 Ref B: MAA201060515051 Ref C: 2025-07-22T18:39:40Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupOperations/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","status":"Succeeded","startTime":"2025-07-22T18:39:41.4304747Z","endTime":"2025-07-22T18:39:41.4304747Z","properties":{"objectType":"OperationStatusJobExtendedInfo","jobId":"f3bc989a-6639-4f06-a3c0-b472593b1b88"}}' + headers: + cache-control: + - no-cache + content-length: + - '304' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/e16d8d35-f8fc-4200-9a71-787c2a8e36eb + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 9666D7A5C6B3497BB40872A5878599EE Ref B: MAA201060514011 Ref C: 2025-07-22T18:39:42Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-disks + Connection: + - keep-alive + ParameterSetName: + - -g -v -c -i -r -t --storage-account --target-vm-name --target-vnet-name --target-subnet-name + --target-vnet-resource-group --cvm-os-des-id + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT2.6707706S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"InProgress","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"NotStarted","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1415' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/e8c3054c-1ffc-4a33-a87b-b0f216248de3 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 3C4EF98DA76B4213A1CBCEDC3A0D8627 Ref B: MAA201060514019 Ref C: 2025-07-22T18:39:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT4.8494649S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"InProgress","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"NotStarted","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1415' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/020e6b44-6023-4b37-aed0-787396067e3e + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 650FF00C236C4B75ADD9B21D881B0D17 Ref B: MAA201060513031 Ref C: 2025-07-22T18:39:45Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT5.9580267S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"InProgress","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"NotStarted","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1415' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:39:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/f71c7a31-246a-4ff8-adf2-c3f8b7f68543 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: AC3C5D6CC8254881889D083E17CF62CC Ref B: MAA201060516033 Ref C: 2025-07-22T18:39:47Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT37.4534565S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"InProgress","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"NotStarted","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1416' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:40:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/eb835cf4-aec7-4ac2-b55d-4ae5c53130fe + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 9AFCA4DA447A4D3095A4961AC95D144D Ref B: MAA201060516037 Ref C: 2025-07-22T18:40:18Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT1M8.9828617S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"Completed","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"InProgress","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1416' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:40:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/b3ae2d5b-2f8a-41ee-93eb-ab5976fb2e02 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 64B374EB43914F9FB4329697B478E973 Ref B: MAA201060515017 Ref C: 2025-07-22T18:40:49Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT1M40.4013521S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"Completed","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"InProgress","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1417' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:41:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/87a711cf-544c-452b-ad8d-9dcd57b50d97 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 5D8B27DE030F485DB5882A7B5C45F11A Ref B: MAA201060515049 Ref C: 2025-07-22T18:41:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT2M11.926238S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"Completed","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"InProgress","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":1.0,"dynamicErrorMessage":""},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"InProgress","startTime":"2025-07-22T18:39:41.4304747Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1416' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:41:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/0a08d313-73bf-4614-924c-fce86134215e + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 5DF610EE5DC848319B9F29D1BA122187 Ref B: MAA201060513049 Ref C: 2025-07-22T18:41:52Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT2M21.1753531S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"Completed","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"Completed","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":100.0,"estimatedRemainingDuration":"PT0S"},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"Completed","startTime":"2025-07-22T18:39:41.4304747Z","endTime":"2025-07-22T18:42:02.6058278Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1469' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:42:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/40ed84f7-8d18-4bae-a95b-eb2666b748c9 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 1C179BA5B8FE4AB1B8AE35D372BA5262 Ref B: MAA201060515029 Ref C: 2025-07-22T18:42:24Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job show + Connection: + - keep-alive + ParameterSetName: + - -g -v -n + User-Agent: + - AZURECLI/2.75.0 azsdk-python-core/1.35.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88?api-version=2025-02-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sgholap-rg/providers/Microsoft.RecoveryServices/vaults/PSTestingVault/backupJobs/f3bc989a-6639-4f06-a3c0-b472593b1b88","name":"f3bc989a-6639-4f06-a3c0-b472593b1b88","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureIaaSVMJob","actionsInfo":["Cancellable"],"containerName":"iaasvmcontainerv2;sgholap-rg;PSCVMRestoreTestingVM","duration":"PT2M21.1753531S","virtualMachineVersion":"Compute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","duration":"PT0S","status":"Completed","taskType":"Normal"},{"taskId":"Create + the restored virtual machine","duration":"PT0S","status":"Completed","taskType":"Normal"}],"propertyBag":{"Job + Type":"Recover VM to an alternate location","Original VM Name":"PSCVMRestoreTestingVM","Target + VM Name":"CLITestingVM","Target VNet Name":"Group sgholapPSCLITestingrg PSCLItestingvnet","Target + Storage Account Name":"sgholapecysa3","Recovery point time ":"7/22/2025 4:04:21 + PM","Target resource group":"sgholapPSCLITestingrg"},"internalPropertyBag":{"restoreLocationType":"AlternateLocation"},"progressPercentage":100.0,"estimatedRemainingDuration":"PT0S"},"entityFriendlyName":"PSCVMRestoreTestingVM","backupManagementType":"AzureIaasVM","operation":"Restore","status":"Completed","startTime":"2025-07-22T18:39:41.4304747Z","endTime":"2025-07-22T18:42:02.6058278Z","activityId":"31252679-672b-11f0-a661-c89665f28cfb"}}' + headers: + cache-control: + - no-cache + content-length: + - '1469' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 22 Jul 2025 18:42:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=72102622-0586-43fb-93d9-ab5dd29cabcc/eastasia/e6a5f7cc-dcbb-42d8-b2a0-c6beabc8df71 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 543CABE66994425AAFA0EC3959FE4A41 Ref B: MAA201060515051 Ref C: 2025-07-22T18:42:56Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_backup_commands.py b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_backup_commands.py index 2f509f0c33a..6541ca87ad9 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_backup_commands.py +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_backup_commands.py @@ -1535,3 +1535,35 @@ def test_backup_rg_mapping(self, resource_group, vault_name, vm1, policy1, polic # try deleting resource guard mapping self.cmd('backup vault resource-guard-mapping delete -n {vault} -g {rg} -y') + + def test_cvm_os_des_id(self): + self.kwargs.update({ + 'vault': "PSTestingVault", + 'vm': "PSCVMRestoreTestingVM", + 'target_rg': "sgholapPSCLITestingrg", + 'rg': "sgholap-rg", + 'sa': "/subscriptions/5288acd1-ba79-4377-9205-9f220331a44a/resourceGroups/sgholap-rg/providers/Microsoft.Storage/storageAccounts/sgholapecysa3", + 'vm_id': "VM;iaasvmcontainerv2;" + "sgholap-rg" + ";" + "PSCVMRestoreTestingVM", + 'container_id': "IaasVMContainer;iaasvmcontainerv2;" + "sgholap-rg" + ";" + "PSCVMRestoreTestingVM", + 'vnet_name': "PSCLItestingvnet", + 'subnet_name': "default", + 'target_vm_name': "CLITestingVM", + 'cvm_os_des': '/subscriptions/5288acd1-ba79-4377-9205-9f220331a44a/resourceGroups/sgholap-rg/providers/Microsoft.Compute/diskEncryptionSets/CVMPSRestoreDES' + }) + self.kwargs['rp'] = self.cmd('backup recoverypoint list --backup-management-type AzureIaasVM --workload-type VM -g {rg} -v {vault} -c {vm} -i {vm} --query [0].name').get_output_in_json() + + trigger_restore_job5_json = self.cmd('backup restore restore-disks -g {rg} -v {vault} -c {vm} -i {vm} -r {rp} -t {target_rg} --storage-account {sa} --target-vm-name {target_vm_name} --target-vnet-name {vnet_name} --target-subnet-name {subnet_name} --target-vnet-resource-group {target_rg} --cvm-os-des-id {cvm_os_des}', checks=[ + self.check("properties.entityFriendlyName", '{vm}'), + self.check("properties.operation", "Restore"), + self.check("properties.status", "InProgress"), + self.check("resourceGroup", '{rg}') + ]).get_output_in_json() + self.kwargs['job'] = trigger_restore_job5_json['name'] + self.cmd('backup job wait -g {rg} -v {vault} -n {job}') + + self.cmd('backup job show -g {rg} -v {vault} -n {job}', checks=[ + self.check("properties.entityFriendlyName", '{vm}'), + self.check("properties.operation", "Restore"), + self.check("properties.status", "Completed"), + self.check("resourceGroup", '{rg}') + ]) \ No newline at end of file