From 1684d257423a56817525eed0c2709e791b6f04a3 Mon Sep 17 00:00:00 2001 From: Bharat Purwar Date: Wed, 29 Jul 2026 09:35:40 +0530 Subject: [PATCH] [Backup] Add Azure File Share cross-region restore support Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7a8ea165-11b7-4fc8-9919-ec589073b1fe --- .../command_modules/backup/_client_factory.py | 11 + .../cli/command_modules/backup/_params.py | 1 + .../cli/command_modules/backup/custom_afs.py | 91 +- .../cli/command_modules/backup/custom_base.py | 8 +- .../command_modules/backup/custom_common.py | 2 +- .../cli/command_modules/backup/custom_help.py | 4 +- .../test_afs_cross_region_restore.yaml | 1498 +++++++++++++++++ .../backup/tests/latest/test_afs_commands.py | 76 + 8 files changed, 1666 insertions(+), 25 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_afs_cross_region_restore.yaml diff --git a/src/azure-cli/azure/cli/command_modules/backup/_client_factory.py b/src/azure-cli/azure/cli/command_modules/backup/_client_factory.py index b2cad0e92fd..07d1d4d1b30 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/backup/_client_factory.py @@ -33,6 +33,13 @@ def _backup_passive_client_factory(cli_ctx, **_): return get_mgmt_service_client(cli_ctx, RecoveryServicesBackupPassiveClient) +def _storage_client_factory(cli_ctx, **_): + from azure.cli.core.profiles import ResourceType + from azure.cli.core.commands.client_factory import get_mgmt_service_client + + return get_mgmt_service_client(cli_ctx, ResourceType.MGMT_STORAGE) + + # External Deps Client Factories def resources_cf(cli_ctx, *_): return _resource_client_factory(cli_ctx).resources @@ -42,6 +49,10 @@ def resource_groups_cf(cli_ctx, *_): return _resource_client_factory(cli_ctx).resource_groups +def file_shares_cf(cli_ctx, *_): + return _storage_client_factory(cli_ctx).file_shares + + # Internal Deps Client Factories def vaults_cf(cli_ctx, *_): return _common_client_factory(cli_ctx).vaults 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 dc667d99ffb..4bd7f068f0d 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/_params.py +++ b/src/azure-cli/azure/cli/command_modules/backup/_params.py @@ -435,6 +435,7 @@ def load_arguments(self, _): options_list=['--target-resource-group-name', '--target-rg-name'], help='Resource group of the destination storage account to which the content will be restored, needed if it is different from the vault resource group') c.argument('tenant_id', help='ID of the tenant if the Resource Guard protecting the vault exists in a different tenant.') + c.argument('use_secondary_region', action='store_true', help='Use this flag to restore from a recovery point in secondary region. Supports only Alternate Location Restore.') with self.argument_context('backup restore restore-azurefiles') as c: c.argument('resolve_conflict', resolve_conflict_type) diff --git a/src/azure-cli/azure/cli/command_modules/backup/custom_afs.py b/src/azure-cli/azure/cli/command_modules/backup/custom_afs.py index 2980a9e37a0..f1739b8cf33 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/custom_afs.py +++ b/src/azure-cli/azure/cli/command_modules/backup/custom_afs.py @@ -18,8 +18,13 @@ from azure.cli.core.util import CLIError from azure.cli.command_modules.backup._client_factory import protection_containers_cf, protectable_containers_cf, \ protection_policies_cf, backup_protection_containers_cf, backup_protectable_items_cf, \ - resources_cf, backup_protected_items_cf, protected_items_cf -from azure.cli.core.azclierror import ArgumentUsageError, ValidationError + resources_cf, backup_protected_items_cf, protected_items_cf, \ + recovery_points_crr_cf, recovery_points_passive_cf, aad_properties_cf, cross_region_restore_cf, vaults_cf, \ + file_shares_cf +from azure.cli.core.azclierror import ArgumentUsageError, ValidationError, InvalidArgumentValueError +from azure.core.exceptions import ResourceNotFoundError + +from azure.mgmt.recoveryservicesbackup.passivestamp.models import CrossRegionRestoreRequest from azure.mgmt.recoveryservicesbackup.activestamp import RecoveryServicesBackupClient from azure.cli.core.commands.client_factory import get_mgmt_service_client @@ -226,11 +231,25 @@ def _try_get_protectable_item_for_afs(cli_ctx, vault_name, resource_group_name, def restore_AzureFileShare(cmd, client, resource_group_name, vault_name, rp_name, item, restore_mode, resolve_conflict, restore_request_type, source_file_type=None, source_file_path=None, target_storage_account_name=None, target_file_share_name=None, target_folder=None, - target_resource_group_name=None, tenant_id=None): + target_resource_group_name=None, tenant_id=None, use_secondary_region=None): container_uri = helper.get_protection_container_uri_from_id(item.id) item_uri = helper.get_protected_item_uri_from_id(item.id) + if use_secondary_region: + if restore_request_type != "FullShareRestore": + raise InvalidArgumentValueError( + "Cross Region Restore for Azure Files supports only full file-share restore.") + if restore_mode != "AlternateLocation": + raise InvalidArgumentValueError( + "Cross Region Restore for Azure Files supports only Alternate Location Restore.") + if target_storage_account_name is None: + raise InvalidArgumentValueError( + "Please provide --target-storage-account for Azure Files Cross Region Restore.") + if target_file_share_name is None: + raise InvalidArgumentValueError( + "Please provide --target-file-share for Azure Files Cross Region Restore.") + # sa_name = item.properties.container_name afs_restore_request = AzureFileShareRestoreRequest() @@ -283,12 +302,41 @@ def restore_AzureFileShare(cmd, client, resource_group_name, vault_name, rp_name target_details = TargetAFSRestoreInfo() target_details.name = target_file_share_name target_details.target_resource_id = _get_storage_account_id(cmd.cli_ctx, target_sa_name, target_sa_rg) + if use_secondary_region: + _validate_target_file_share(cmd.cli_ctx, target_sa_rg, target_sa_name, target_file_share_name) afs_restore_request.target_details = target_details afs_restore_request.restore_file_specs = restore_file_specs trigger_restore_request = RestoreRequestResource(properties=afs_restore_request) + # CRR path: route through passive stamp (secondary region endpoint) + if use_secondary_region: + vault = vaults_cf(cmd.cli_ctx).get(resource_group_name, vault_name) + import azure.cli.command_modules.backup.custom as custom_module + azure_region = custom_module.secondary_region_map[vault.location] + + aad_client = aad_properties_cf(cmd.cli_ctx) + filter_string = helper.get_filter_string({'backupManagementType': 'AzureStorage'}) + aad_result = aad_client.get(azure_region, filter_string) + + rp_client = recovery_points_passive_cf(cmd.cli_ctx) + crr_access_token = rp_client.get_access_token( + vault_name, resource_group_name, fabric_name, + container_uri, item_uri, rp_name, aad_result).properties + # For AFS identity-based CRR the response is WorkloadCrrAccessToken. + # extra fields (accessType, isSystemAssignedIdentity, managedIdentityResourceId) + # land in additional_properties — enable sending them so the backend gets them. + crr_access_token.enable_additional_properties_sending() + + crr_client = cross_region_restore_cf(cmd.cli_ctx) + trigger_crr_request = CrossRegionRestoreRequest( + cross_region_restore_access_details=crr_access_token, + restore_request=afs_restore_request) + result = crr_client.begin_trigger(azure_region, trigger_crr_request, + cls=helper.get_pipeline_response, polling=False).result() + return helper.track_backup_crr_job(cmd.cli_ctx, result, azure_region, vault.id) + if helper.has_resource_guard_mapping(cmd.cli_ctx, resource_group_name, vault_name, "RecoveryServicesRestore"): # Cross Tenant scenario if tenant_id is not None: @@ -308,13 +356,6 @@ def restore_AzureFileShare(cmd, client, resource_group_name, vault_name, rp_name def list_recovery_points(cmd, client, resource_group_name, vault_name, item, start_date=None, end_date=None, use_secondary_region=None, is_ready_for_move=None, target_tier=None, tier=None, recommended_for_archive=None): - if use_secondary_region: - raise ArgumentUsageError( - """ - --use-secondary-region flag is not supported for --backup-management-type AzureStorage. - Please either remove the flag or query for any other backup-management-type. - """) - if is_ready_for_move is not None or target_tier is not None: raise ArgumentUsageError("""Invalid argument has been passed. --is-ready-for-move true, --target-tier are not supported for --backup-management-type AzureStorage.""") @@ -326,19 +367,22 @@ def list_recovery_points(cmd, client, resource_group_name, vault_name, item, sta if cmd.name.split()[2] == 'show-log-chain': raise ArgumentUsageError("show-log-chain is supported by AzureWorkload backup management type only.") - # Get container and item URIs + # Get container and item URIs (common to both paths) container_uri = helper.get_protection_container_uri_from_id(item.id) item_uri = helper.get_protected_item_uri_from_id(item.id) - query_end_date, query_start_date = helper.get_query_dates(end_date, start_date) + filter_string = helper.get_filter_string({'startDate': query_start_date, 'endDate': query_end_date}) - filter_string = helper.get_filter_string({ - 'startDate': query_start_date, - 'endDate': query_end_date}) - - # Get recovery points - recovery_points = client.list(vault_name, resource_group_name, fabric_name, container_uri, item_uri, filter_string) - paged_recovery_points = helper.get_list_from_paged_response(recovery_points) + if use_secondary_region: + crr_client = recovery_points_crr_cf(cmd.cli_ctx) + recovery_points = crr_client.list(vault_name, resource_group_name, fabric_name, + container_uri, item_uri, filter_string) + paged_recovery_points = helper.get_list_from_paged_response(recovery_points) + else: + # Get recovery points + recovery_points = client.list(vault_name, resource_group_name, fabric_name, + container_uri, item_uri, filter_string) + paged_recovery_points = helper.get_list_from_paged_response(recovery_points) if tier: filtered_recovery_points = [] @@ -487,6 +531,15 @@ def _get_storage_account_id(cli_ctx, storage_account_name, storage_account_rg): return storage_account.id +def _validate_target_file_share(cli_ctx, resource_group_name, storage_account_name, file_share_name): + try: + file_shares_cf(cli_ctx).get(resource_group_name, storage_account_name, file_share_name) + except ResourceNotFoundError as ex: + raise InvalidArgumentValueError( + "Target file share '{}' was not found in storage account '{}'.".format( + file_share_name, storage_account_name)) from ex + + def _get_source_resource_id_from_item(item): """ Helper function to retrieve source resource ID from a protected item. 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 826aac1944a..5195bf4434c 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 @@ -496,12 +496,13 @@ def enable_for_azurefileshare(cmd, client, resource_group_name, vault_name, poli def restore_azurefileshare(cmd, client, resource_group_name, vault_name, rp_name, container_name, item_name, restore_mode, resolve_conflict, target_storage_account=None, target_file_share=None, - target_folder=None, target_resource_group_name=None, tenant_id=None): + target_folder=None, target_resource_group_name=None, tenant_id=None, + use_secondary_region=None): backup_management_type = "AzureStorage" workload_type = "AzureFileShare" items_client = backup_protected_items_cf(cmd.cli_ctx) item = show_item(cmd, items_client, resource_group_name, vault_name, container_name, item_name, - backup_management_type, workload_type) + backup_management_type, workload_type, use_secondary_region) custom_help.validate_item(item) if isinstance(item, list): @@ -511,7 +512,8 @@ def restore_azurefileshare(cmd, client, resource_group_name, vault_name, rp_name resolve_conflict, "FullShareRestore", target_storage_account_name=target_storage_account, target_file_share_name=target_file_share, target_folder=target_folder, - target_resource_group_name=target_resource_group_name, tenant_id=tenant_id) + target_resource_group_name=target_resource_group_name, tenant_id=tenant_id, + use_secondary_region=use_secondary_region) def restore_azurefiles(cmd, client, resource_group_name, vault_name, rp_name, container_name, item_name, restore_mode, diff --git a/src/azure-cli/azure/cli/command_modules/backup/custom_common.py b/src/azure-cli/azure/cli/command_modules/backup/custom_common.py index 1dff56b231a..7ee05bc6182 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/custom_common.py +++ b/src/azure-cli/azure/cli/command_modules/backup/custom_common.py @@ -39,7 +39,7 @@ 'VaultArchive': 'ArchivedRP', 'Snapshot': 'InstantRP'} -crr_not_supported_bmt = ["azurestorage", "mab"] +crr_not_supported_bmt = ["mab"] default_resource_guard = "VaultProxy" diff --git a/src/azure-cli/azure/cli/command_modules/backup/custom_help.py b/src/azure-cli/azure/cli/command_modules/backup/custom_help.py index 29edc991af9..e664a8f1b2b 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/custom_help.py +++ b/src/azure-cli/azure/cli/command_modules/backup/custom_help.py @@ -364,9 +364,9 @@ def replace_min_value_in_subtask(response): # For a task in progress: replace min_value in start and end times with null. tasks_list = response.properties.extended_info.tasks_list for task in tasks_list: - if task.start_time == datetime.min: + if getattr(task, 'start_time', None) == datetime.min: task.start_time = None - if task.end_time == datetime.min: + if getattr(task, 'end_time', None) == datetime.min: task.end_time = None return response diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_afs_cross_region_restore.yaml b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_afs_cross_region_restore.yaml new file mode 100644 index 00000000000..807be7f042d --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/recordings/test_afs_cross_region_restore.yaml @@ -0,0 +1,1498 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup item list + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v --backup-management-type --workload-type --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupProtectedItems/?api-version=2021-11-15&%24filter=backupManagementType+eq+%27AzureStorage%27+and+itemType+eq+%27AzureFileShare%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","name":"AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs2","fileShareProtocol":"SMB","protectionStatus":"Unhealthy","protectionState":"IRPending","lastBackupStatus":"Failed","lastBackupTime":"2026-07-28T10:00:23.2233197Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","name":"AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs","fileShareProtocol":"SMB","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T10:00:23.3099087Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","name":"AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afsbvtlonghaulcrrafsne","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T07:30:54.5691218Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/AFSCrossRegionRestoreLongHaulSimplePolicyV2","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4782' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23:31 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/6d4eec66-b302-427d-866b-50f2e533a825 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 2A687F626FE04EC99572BDD00083E5D1 Ref B: PNQ241100406040 Ref C: 2026-07-28T12:23:31Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup item show + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -n --backup-management-type --workload-type --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupProtectedItems/?api-version=2021-11-15&%24filter=backupManagementType+eq+%27AzureStorage%27+and+itemType+eq+%27AzureFileShare%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","name":"AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs2","fileShareProtocol":"SMB","protectionStatus":"Unhealthy","protectionState":"IRPending","lastBackupStatus":"Failed","lastBackupTime":"2026-07-28T10:00:23.2233197Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","name":"AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs","fileShareProtocol":"SMB","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T10:00:23.3099087Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","name":"AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afsbvtlonghaulcrrafsne","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T07:30:54.5691218Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/AFSCrossRegionRestoreLongHaulSimplePolicyV2","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4782' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/79e7f49d-4e03-4bbd-91cc-d42ebc5f54e3 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 595C14FF14774EA7A3077A8EDFA9D323 Ref B: PNQ231110906042 Ref C: 2026-07-28T12:23:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup recoverypoint list + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i --backup-management-type --workload-type --use-secondary-region + --query + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupProtectedItems/?api-version=2021-11-15&%24filter=backupManagementType+eq+%27AzureStorage%27+and+itemType+eq+%27AzureFileShare%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","name":"AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs2","fileShareProtocol":"SMB","protectionStatus":"Unhealthy","protectionState":"IRPending","lastBackupStatus":"Failed","lastBackupTime":"2026-07-28T10:00:23.2233197Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","name":"AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs","fileShareProtocol":"SMB","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T10:00:23.3099087Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","name":"AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afsbvtlonghaulcrrafsne","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T07:30:54.5691218Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/AFSCrossRegionRestoreLongHaulSimplePolicyV2","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4782' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/375815a6-7c9e-4c4c-805a-c054b5367d06 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 8D9531D869614BF39D76B33F12D607CC Ref B: PNQ231110909052 Ref C: 2026-07-28T12:23:35Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup recoverypoint list + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i --backup-management-type --workload-type --use-secondary-region + --query + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer%3BStorage%3Bafsbvtlonghaulrgne%3Bafsbvtlonghaulcrrsane/protectedItems/AzureFileShare%3BDCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/?api-version=2021-11-15 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/433411306384346","name":"433411306384346","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-27T10:00:49Z","fileShareSnapshotUri":"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z","recoveryPointSizeInGB":0,"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/428488466484475","name":"428488466484475","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-26T10:00:36Z","fileShareSnapshotUri":"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-26T10:00:36.0000000Z","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-07-31T10:00:36.0000000Z","ruleName":"Daily","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/435741799059392","name":"435741799059392","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-25T10:00:19Z","fileShareSnapshotUri":"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-25T10:00:19.0000000Z","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-07-30T10:00:19.0000000Z","ruleName":"Daily","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/423165305434064","name":"423165305434064","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-24T10:00:02Z","fileShareSnapshotUri":"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-24T10:00:02.0000000Z","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-07-29T10:00:02.0000000Z","ruleName":"Daily","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/430309426647985","name":"430309426647985","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-23T10:00:13Z","fileShareSnapshotUri":"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-23T10:00:13.0000000Z","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-07-28T10:00:13.0000000Z","ruleName":"Daily","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"InstantRP","status":"Valid"},{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/425912190799937","name":"425912190799937","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-22T18:17:22Z","fileShareSnapshotUri":"","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-08-21T18:17:20.0000000Z","ruleName":"On-Demand","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"HardenedRP","status":"Valid"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/432511310189524","name":"432511310189524","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints","properties":{"objectType":"AzureFileShareRecoveryPoint","recoveryPointType":"FileSystemConsistent","crossRegionRestoreState":"Supported","recoveryPointTime":"2026-07-22T11:53:29Z","fileShareSnapshotUri":"","recoveryPointSizeInGB":0,"recoveryPointProperties":{"expiryTime":"2026-08-21T11:53:28.0000000Z","ruleName":"On-Demand","isSoftDeleted":false},"recoveryPointTierDetails":[{"type":"HardenedRP","status":"Valid"}]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '7246' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23:37 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/5ae01d01-ac67-4a70-8f44-30f914e45b7a + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 0553BDD0029E43039C164E1A9637B9B0 Ref B: PNQ241100403062 Ref C: 2026-07-28T12:23:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupProtectedItems/?api-version=2021-11-15&%24filter=backupManagementType+eq+%27AzureStorage%27+and+itemType+eq+%27AzureFileShare%27 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","name":"AzureFileShare;6393B677324052C054ADB7EE7B48C9BE19D7FDA46B8FBD1257B3EF653730E352","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs2","fileShareProtocol":"SMB","protectionStatus":"Unhealthy","protectionState":"IRPending","lastBackupStatus":"Failed","lastBackupTime":"2026-07-28T10:00:23.2233197Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","name":"AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afs1hrtestfs","fileShareProtocol":"SMB","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T10:00:23.3099087Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/vault1hrbackuppolicy","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane/protectedItems/AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","name":"AzureFileShare;D85090FF5E251E2EB0B1A8038E3C0555B6812C3E6CBF1D7A96BD51323CB3BBFC","type":"Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems","properties":{"friendlyName":"afsbvtlonghaulcrrafsne","protectionStatus":"Healthy","protectionState":"Protected","lastBackupStatus":"Completed","lastBackupTime":"2026-07-28T07:30:54.5691218Z","protectedItemType":"AzureFileShareProtectedItem","backupManagementType":"AzureStorage","workloadType":"AzureFileShare","containerName":"StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","sourceResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","policyId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupPolicies/AFSCrossRegionRestoreLongHaulSimplePolicyV2","vaultId":"https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","isArchiveEnabled":false,"softDeleteRetentionPeriod":0}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4782' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/9ba44c17-90cf-4911-8e8b-d9871754f57d + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 42216406E3D54E2AA125BA4CF6CBE886 Ref B: PNQ231110908052 Ref C: 2026-07-28T12:23:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.ClassicStorage/storageAccounts/afsbvtlonghaulcrrsane?api-version=2015-12-01 + response: + body: + string: '{"error":{"code":"InvalidResourceNamespace","message":"The resource + namespace ''Microsoft.ClassicStorage'' is invalid."}}' + headers: + cache-control: + - no-cache + content-length: + - '119' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: B0E426DE0A7E4F56A9F11976A36C3575 Ref B: PNQ241100404060 Ref C: 2026-07-28T12:23:40Z' + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane?api-version=2016-01-01 + response: + body: + string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"FileStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","name":"afsbvtlonghaulcrrsane","type":"Microsoft.Storage/storageAccounts","location":"northeurope","tags":{"Reason":"AFS + BVT | AFS Customer Scenario","ETA":"01-01-2028","DisableLocalAuth":"false","Owner":"rakum","ms-resiliency-classification":"Test + Resource"},"properties":{"encryption":{"services":{"blob":{"enabled":true,"lastEnabledTime":"2024-04-24T01:21:39.1655519Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2024-04-24T01:21:38.8998977Z","primaryEndpoints":{"file":"https://afsbvtlonghaulcrrsane.file.core.windows.net/"},"primaryLocation":"northeurope","statusOfPrimary":"available"}}' + headers: + cache-control: + - no-cache + content-length: + - '858' + content-type: + - application/json + date: + - Tue, 28 Jul 2026 12:23:41 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: 12A899DADA1B4B769402C9F37A09577B Ref B: PNQ241100401034 Ref C: 2026-07-28T12:23:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.ClassicStorage/storageAccounts/afsbvttargetsacrrne?api-version=2015-12-01 + response: + body: + string: '{"error":{"code":"InvalidResourceNamespace","message":"The resource + namespace ''Microsoft.ClassicStorage'' is invalid."}}' + headers: + cache-control: + - no-cache + content-length: + - '119' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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-failure-cause: + - gateway + x-msedge-ref: + - 'Ref A: C8949A75A8CF4B8FB54607AB993AF5FF Ref B: PNQ241100405040 Ref C: 2026-07-28T12:23:42Z' + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvttargetsacrrne?api-version=2016-01-01 + response: + body: + string: '{"sku":{"name":"Premium_LRS","tier":"Premium"},"kind":"FileStorage","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvttargetsacrrne","name":"afsbvttargetsacrrne","type":"Microsoft.Storage/storageAccounts","location":"westeurope","tags":{"Reason":"AFS + BVT | AFS Customer Scenario","ETA":"01-01-2028","DisableLocalAuth":"false","Owner":"rakum","ms-resiliency-classification":"Test + Resource"},"properties":{"encryption":{"services":{"blob":{"enabled":true,"lastEnabledTime":"2024-06-03T14:01:20.5296478Z"}},"keySource":"Microsoft.Storage"},"provisioningState":"Succeeded","creationTime":"2024-06-03T14:01:20.3890239Z","primaryEndpoints":{"file":"https://afsbvttargetsacrrne.file.core.windows.net/"},"primaryLocation":"westeurope","statusOfPrimary":"available"}}' + headers: + cache-control: + - no-cache + content-length: + - '850' + content-type: + - application/json + date: + - Tue, 28 Jul 2026 12:23: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-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 206B0C86EA194902A308E803EF2B32DE Ref B: PNQ241100401062 Ref C: 2026-07-28T12:23:43Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvttargetsacrrne/fileServices/default/shares/afsfilesharetarget1hr?api-version=2025-08-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvttargetsacrrne/fileServices/default/shares/afsfilesharetarget1hr","name":"afsfilesharetarget1hr","type":"Microsoft.Storage/storageAccounts/fileServices/shares","etag":"\"0x8DEEC8D68178B5A\"","properties":{"fileSharePaidBursting":{"paidBurstingEnabled":false},"leaseStatus":"unlocked","leaseState":"available","signedIdentifiers":[],"accessTier":"Premium","lastModifiedTime":"2026-07-28T09:48:41.0000000Z","shareQuota":100,"enabledProtocols":"SMB"}}' + headers: + cache-control: + - no-cache + content-length: + - '590' + content-type: + - application/json + date: + - Tue, 28 Jul 2026 12:23:45 GMT + etag: + - '"0x8DEEC8D68178B5A"' + 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/9b2cbf21-d671-4094-b0fd-d879e7be912a + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 064A5254A2AF4EDCBD2A27BAEB8241A9 Ref B: PNQ231110907031 Ref C: 2026-07-28T12:23:45Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne?api-version=2025-08-01 + response: + body: + string: '{"location":"northeurope","name":"afsbvtcrrlonghaulvaultne","etag":"W/\"datetime''2025-08-14T03%3A08%3A39.7911676Z''\"","tags":{"MAB + Used":"Yes","Purpose":"Testing"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None","backupStorageVersion":"V1","securitySettings":{"softDeleteSettings":{"softDeleteRetentionPeriodInDays":14,"softDeleteState":"Enabled","enhancedSecurityState":"Enabled"},"multiUserAuthorization":"Disabled","sourceScanConfiguration":{"state":"Disabled"}},"redundancySettings":{"standardTierStorageRedundancy":"GeoRedundant","crossRegionRestore":"Enabled"},"secureScore":"Adequate","bcdrSecurityLevel":"Good","publicNetworkAccess":"Enabled","restoreSettings":{"crossSubscriptionRestoreSettings":{"crossSubscriptionRestoreState":"Enabled"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '1064' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 1CFC6A095A424BF897158020C6796134 Ref B: PNQ231110908052 Ref C: 2026-07-28T12:23:46Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupAadProperties?api-version=2021-11-15&%24filter=backupManagementType+eq+%27AzureStorage%27 + response: + body: + string: '{"properties":{"tenantId":"33e01921-4d64-4f8c-a055-5bdaffd5e33d","audience":"https://RecoveryServices/WkloadCoord/aadmgmt/we","servicePrincipalObjectId":"def2d279-9ab9-4c92-b2b7-30f29dcfb281","identityVersion":1.0}}' + headers: + cache-control: + - no-cache + content-length: + - '215' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23:48 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/westindia/513ba2ea-0d33-44c2-b9b7-3698d070e1ec + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 48E80376BE4F4AD2840A04C63967F499 Ref B: PNQ231110908029 Ref C: 2026-07-28T12:23:47Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"tenantId": "33e01921-4d64-4f8c-a055-5bdaffd5e33d", "audience": + "https://RecoveryServices/WkloadCoord/aadmgmt/we", "servicePrincipalObjectId": + "def2d279-9ab9-4c92-b2b7-30f29dcfb281"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + Content-Length: + - '199' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne/backupFabrics/Azure/protectionContainers/StorageContainer%3BStorage%3Bafsbvtlonghaulrgne%3Bafsbvtlonghaulcrrsane/protectedItems/AzureFileShare%3BDCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754/recoveryPoints/433411306384346/accessToken?api-version=2021-11-15 + response: + body: + string: '{"properties":{"protectableObjectUniqueName":"DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754","protectableObjectFriendlyName":"afs1hrtestfs","protectableObjectWorkloadType":"AzureFileShare","protectableObjectProtectionState":"Protected","protectableObjectParentLogicalContainerName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane","containerId":"3265544","policyName":"vault1hrbackuppolicy","policyId":"ec31ea0e-79f3-4b58-9d9b-ac548b2d3098","isSystemAssignedIdentity":false,"objectType":"WorkloadCrrAccessToken","accessTokenString":"eyJhbGciOiJSUzI1NiIsImtpZCI6IkM5RjU1Mzc1RkE1NTQwQjE4NzE0RDI1N0IyRUNFODQwMUI3Q0ExRjkiLCJ4NXQiOiJ5ZlZUZGZwVlFMR0hGTkpYc3V6b1FCdDhvZmsiLCJ0eXAiOiJKV1QifQ.eyJVc2VySWRlbnRpdHlUeXBlIjoiQUFEIiwiQWFkVGVuYW50SWQiOiIzM2UwMTkyMS00ZDY0LTRmOGMtYTA1NS01YmRhZmZkNWUzM2QiLCJBYWRTUE9iamVjdElkIjoiZGVmMmQyNzktOWFiOS00YzkyLWIyYjctMzBmMjlkY2ZiMjgxIiwiUGl0UGVybWlzc2lvbnMiOiJSZWFkIiwiQmFja3VwVmF1bHRJRCI6IjI2MjYyMjMwMTU1MzEzMjg5NjgiLCJDb250YWluZXJJRCI6IjMyNjU1NDQiLCJEYXRhc291cmNlSUQiOiI1MTAxNzM4OTUzNTM1NTAiLCJQaXRJRCI6IjQzMzQxMTMwNjM4NDM0NiIsImlzc2lkIjoiYTE3MWYwZmUtMTA0MC00YjJkLTgzY2QtOTA2MjhlYmJlMDhlIiwiaHR0cDovL3NjaGVtYXMud2luZG93c2Nsb3VkYmFja3VwLmNvbS8yMDEwLzEwL2lkZW50aXR5L2NsYWltcy9yZXNvdXJjZWlkIjoiMjYyNjIyMzAxNTUzMTMyODk2OCIsImh0dHA6Ly9zY2hlbWFzLndpbmRvd3NjbG91ZGJhY2t1cC5jb20vMjAxMC8xMC9pZGVudGl0eS9jbGFpbXMvY29udGFpbmVyaWQiOiIzMjY1NTQ0IiwibmJmIjoxNzg1MjQxNDMwLCJleHAiOjE3ODUzMjc4MzAsImlhdCI6MTc4NTI0MTEzMCwiaXNzIjoiaHR0cDovL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9pc3N1ZXJzL2ExNzFmMGZlLTEwNDAtNGIyZC04M2NkLTkwNjI4ZWJiZTA4ZSIsImF1ZCI6Imh0dHA6Ly9taWNyb3NvZnQuZGF0YXByb3RlY3Rpb24vUHJvdGVjdGlvblNlcnZpY2UifQ.PzMz0yEguHBmFlQNUkNtxLrulqdfZ_W_aysAdwg-M4-31Nyzmd2RzdvAAavq2-Udnqg5Qvkaw5eTbAh4AJ0S2DeC0UtFxtvd01bUvlZUg7sbpg6RVdmVrga-8XuTlOR9He3PXftRTtuAucPdyMlE69-y6D7MXnsm2J0_ezATuj7hKrG5ToUIKgoYNxaq_uVblpQjIZ6TrZWDnfiv6VEpIdIVtS5a-pDll-ua8fF5Dq1933fQ_NgJuTGnbaKNu1RGKX3e3CazB7h0OeEVqcICkphvWdA0qS-u4WQh-__o8PovMNjIdr69Z8pBdHs_GIiAdKZr0lZoUGT2NGxNmqjzdg","subscriptionId":"00000000-0000-0000-0000-000000000000","resourceGroupName":"afsbvtlonghaulrgne","resourceName":"afsbvtcrrlonghaulvaultne","resourceId":"2626223015531328968","protectionContainerId":3265544,"recoveryPointId":"433411306384346","recoveryPointTime":"7/27/2026 + 10:00:49 AM","containerName":"Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","containerType":"StorageContainer","backupManagementType":"AzureStorage","datasourceType":"AzureFileShare","datasourceName":"afs1hrtestfs","datasourceId":"510173895353550","datasourceContainerName":"Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane","coordinatorServiceStampId":"154ee360-f829-4744-bbfb-26ce8d39284a","coordinatorServiceStampUri":"https://pod01-wbcm1.ne.backup.windowsazure.com","protectionServiceStampId":"2ba2652e-9035-4072-bf3a-933845202166","protectionServiceStampUri":"https://pod01-prot1d-int.ne.backup.windowsazure.com","tokenExtendedInformation":"{\"Version\":\"V_2019_09\",\"IsReferential\":false,\"Name\":\"7/27/2026 + 10:00:49 AM\",\"Uri\":\"\",\"Type\":\"Full\",\"State\":\"Frozen\",\"MetadataBlobChecksumAlgorithm\":\"Undefined\",\"PitComponentChecksumAlgorithm\":\"Undefined\",\"GroupId\":\"discrete-0\",\"ParentTime\":\"0001-01-01T00:00:00+00:00\",\"Parents\":[],\"Children\":[],\"JobStartTime\":\"2026-07-27T10:00:49.0066244+00:00\",\"StartTime\":\"0001-01-01T00:00:00+00:00\",\"StartId\":\"\",\"EndTime\":\"2026-07-27T10:00:49+00:00\",\"EndId\":\"\",\"Time\":\"2026-07-27T10:00:49+00:00\",\"CommitTime\":\"2026-07-27T10:00:55.5106386+00:00\",\"HardeningTime\":\"9999-12-31T23:59:59.9999999+00:00\",\"ExpirationTime\":\"9999-12-31T23:59:59.9999999+00:00\",\"LocalTimeOffsetFromUtcInTicks\":null,\"WriterName\":\"AzureFileShare\",\"WriterId\":\"{5931A40F-CDA1-4206-A537-6A7A9B9AB089}\",\"WriterVer\":\"1.0\",\"ObjectName\":\"afs1hrtestfs\",\"SourceSize\":1,\"rpPropertiesForBms\":{\"FileShareSnapshotUri\":\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\",\"FileShareType\":\"AFS\",\"RpConsistencyType\":\"CrashConsistent\",\"DataSourceSizeAtBackupInGB\":\"0\",\"FileShareProtocol\":\"SMB\"},\"rpPropertiesForPitManager\":\"{\\\"RecoveryPointConsistencyType\\\":2,\\\"FileShareSizeinGB\\\":0,\\\"IsHFS\\\":false,\\\"ShareProtocol\\\":\\\"SMB\\\",\\\"SnapshotUri\\\":\\\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\\\",\\\"HFSBackupMetadata\\\":null,\\\"MetadataVersion\\\":1}\",\"Components\":[{\"$type\":\"Microsoft.Internal.CloudBackup.PitManager.AzureSourceStorageFileSharePitComponentInfo, + PitManager\",\"StorageAccountName\":\"afsbvtlonghaulcrrsane\",\"StorageAccountResourceGroupName\":\"afsbvtlonghaulrgne\",\"StorageAccountProviderType\":\"Storage\",\"StorageAccount_Type\":\"Standard\",\"StorageAccountSubscriptionId\":\"00000000-0000-0000-0000-000000000000\",\"Version\":\"V_2019_09\",\"Name\":\"shareSnapshot\",\"Uri\":\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\",\"Id\":\"61d87fe8-df98-42ec-861c-1da8fcdb6029\",\"Type\":\"AzureSourceStorageFileShare\",\"Tier\":\"Tier1\",\"State\":\"Committed\",\"LogicalSize\":1,\"VirtualSize\":-1,\"PhysicalSize\":-1,\"ReplicaId\":\"00000000-0000-0000-0000-000000000000\",\"ReplicaSnapshotId\":\"61d87fe8-df98-42ec-861c-1da8fcdb6029\",\"IsInternal\":false,\"ExternalIdentifier\":null},{\"$type\":\"Microsoft.Internal.CloudBackup.PitManager.AzureVaultStorageBlobPitComponentInfo, + PitManager\",\"Version\":\"V_2019_09\",\"Name\":\"config_replica_tier1_510173895353550_0\",\"Uri\":\"https://vv0nepod01prot1d193.z19.blob.storage.azure.net/a519ede2-1fd1-4da7-93f3-197c8e8b388c/2626223015531328968_3265544_a76e6c9b-6746-4d73-9918-57418bab6724_IaasVMConfigBlob\",\"Id\":\"579f420c-edfb-41ba-8c3c-a87c71989f17\",\"Type\":\"AzureVaultStorageBlob\",\"Tier\":\"Tier1\",\"State\":\"Committed\",\"LogicalSize\":0,\"VirtualSize\":-1,\"PhysicalSize\":-1,\"ReplicaId\":\"00000000-0000-0000-0000-000000000000\",\"ReplicaSnapshotId\":\"579f420c-edfb-41ba-8c3c-a87c71989f17\",\"IsInternal\":false,\"ExternalIdentifier\":null}],\"DatasourceId\":510173895353550,\"DistributedId\":null}","rpOriginalSAOption":false,"rpIsManagedVirtualMachine":false,"bMSActiveRegion":"NorthEurope"}}' + headers: + cache-control: + - no-cache + content-length: + - '6372' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/northeurope/c304f50b-e799-42fb-9079-61349130ffb7 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 90088E04CE804F38B4E183E092BBA774 Ref B: PNQ231110906040 Ref C: 2026-07-28T12:23:49Z' + status: + code: 200 + message: OK +- request: + body: '{"crossRegionRestoreAccessDetails": {"objectType": "WorkloadCrrAccessToken", + "accessTokenString": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkM5RjU1Mzc1RkE1NTQwQjE4NzE0RDI1N0IyRUNFODQwMUI3Q0ExRjkiLCJ4NXQiOiJ5ZlZUZGZwVlFMR0hGTkpYc3V6b1FCdDhvZmsiLCJ0eXAiOiJKV1QifQ.eyJVc2VySWRlbnRpdHlUeXBlIjoiQUFEIiwiQWFkVGVuYW50SWQiOiIzM2UwMTkyMS00ZDY0LTRmOGMtYTA1NS01YmRhZmZkNWUzM2QiLCJBYWRTUE9iamVjdElkIjoiZGVmMmQyNzktOWFiOS00YzkyLWIyYjctMzBmMjlkY2ZiMjgxIiwiUGl0UGVybWlzc2lvbnMiOiJSZWFkIiwiQmFja3VwVmF1bHRJRCI6IjI2MjYyMjMwMTU1MzEzMjg5NjgiLCJDb250YWluZXJJRCI6IjMyNjU1NDQiLCJEYXRhc291cmNlSUQiOiI1MTAxNzM4OTUzNTM1NTAiLCJQaXRJRCI6IjQzMzQxMTMwNjM4NDM0NiIsImlzc2lkIjoiYTE3MWYwZmUtMTA0MC00YjJkLTgzY2QtOTA2MjhlYmJlMDhlIiwiaHR0cDovL3NjaGVtYXMud2luZG93c2Nsb3VkYmFja3VwLmNvbS8yMDEwLzEwL2lkZW50aXR5L2NsYWltcy9yZXNvdXJjZWlkIjoiMjYyNjIyMzAxNTUzMTMyODk2OCIsImh0dHA6Ly9zY2hlbWFzLndpbmRvd3NjbG91ZGJhY2t1cC5jb20vMjAxMC8xMC9pZGVudGl0eS9jbGFpbXMvY29udGFpbmVyaWQiOiIzMjY1NTQ0IiwibmJmIjoxNzg1MjQxNDMwLCJleHAiOjE3ODUzMjc4MzAsImlhdCI6MTc4NTI0MTEzMCwiaXNzIjoiaHR0cDovL21pY3Jvc29mdC5kYXRhcHJvdGVjdGlvbi9pc3N1ZXJzL2ExNzFmMGZlLTEwNDAtNGIyZC04M2NkLTkwNjI4ZWJiZTA4ZSIsImF1ZCI6Imh0dHA6Ly9taWNyb3NvZnQuZGF0YXByb3RlY3Rpb24vUHJvdGVjdGlvblNlcnZpY2UifQ.PzMz0yEguHBmFlQNUkNtxLrulqdfZ_W_aysAdwg-M4-31Nyzmd2RzdvAAavq2-Udnqg5Qvkaw5eTbAh4AJ0S2DeC0UtFxtvd01bUvlZUg7sbpg6RVdmVrga-8XuTlOR9He3PXftRTtuAucPdyMlE69-y6D7MXnsm2J0_ezATuj7hKrG5ToUIKgoYNxaq_uVblpQjIZ6TrZWDnfiv6VEpIdIVtS5a-pDll-ua8fF5Dq1933fQ_NgJuTGnbaKNu1RGKX3e3CazB7h0OeEVqcICkphvWdA0qS-u4WQh-__o8PovMNjIdr69Z8pBdHs_GIiAdKZr0lZoUGT2NGxNmqjzdg", + "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": + "afsbvtlonghaulrgne", "resourceName": "afsbvtcrrlonghaulvaultne", "resourceId": + "2626223015531328968", "protectionContainerId": 3265544, "recoveryPointId": + "433411306384346", "recoveryPointTime": "7/27/2026 10:00:49 AM", "containerName": + "Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane", "containerType": "StorageContainer", + "backupManagementType": "AzureStorage", "datasourceType": "AzureFileShare", + "datasourceName": "afs1hrtestfs", "datasourceId": "510173895353550", "datasourceContainerName": + "Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane", "coordinatorServiceStampId": + "154ee360-f829-4744-bbfb-26ce8d39284a", "coordinatorServiceStampUri": "https://pod01-wbcm1.ne.backup.windowsazure.com", + "protectionServiceStampId": "2ba2652e-9035-4072-bf3a-933845202166", "protectionServiceStampUri": + "https://pod01-prot1d-int.ne.backup.windowsazure.com", "tokenExtendedInformation": + "{\"Version\":\"V_2019_09\",\"IsReferential\":false,\"Name\":\"7/27/2026 10:00:49 + AM\",\"Uri\":\"\",\"Type\":\"Full\",\"State\":\"Frozen\",\"MetadataBlobChecksumAlgorithm\":\"Undefined\",\"PitComponentChecksumAlgorithm\":\"Undefined\",\"GroupId\":\"discrete-0\",\"ParentTime\":\"0001-01-01T00:00:00+00:00\",\"Parents\":[],\"Children\":[],\"JobStartTime\":\"2026-07-27T10:00:49.0066244+00:00\",\"StartTime\":\"0001-01-01T00:00:00+00:00\",\"StartId\":\"\",\"EndTime\":\"2026-07-27T10:00:49+00:00\",\"EndId\":\"\",\"Time\":\"2026-07-27T10:00:49+00:00\",\"CommitTime\":\"2026-07-27T10:00:55.5106386+00:00\",\"HardeningTime\":\"9999-12-31T23:59:59.9999999+00:00\",\"ExpirationTime\":\"9999-12-31T23:59:59.9999999+00:00\",\"LocalTimeOffsetFromUtcInTicks\":null,\"WriterName\":\"AzureFileShare\",\"WriterId\":\"{5931A40F-CDA1-4206-A537-6A7A9B9AB089}\",\"WriterVer\":\"1.0\",\"ObjectName\":\"afs1hrtestfs\",\"SourceSize\":1,\"rpPropertiesForBms\":{\"FileShareSnapshotUri\":\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\",\"FileShareType\":\"AFS\",\"RpConsistencyType\":\"CrashConsistent\",\"DataSourceSizeAtBackupInGB\":\"0\",\"FileShareProtocol\":\"SMB\"},\"rpPropertiesForPitManager\":\"{\\\"RecoveryPointConsistencyType\\\":2,\\\"FileShareSizeinGB\\\":0,\\\"IsHFS\\\":false,\\\"ShareProtocol\\\":\\\"SMB\\\",\\\"SnapshotUri\\\":\\\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\\\",\\\"HFSBackupMetadata\\\":null,\\\"MetadataVersion\\\":1}\",\"Components\":[{\"$type\":\"Microsoft.Internal.CloudBackup.PitManager.AzureSourceStorageFileSharePitComponentInfo, + PitManager\",\"StorageAccountName\":\"afsbvtlonghaulcrrsane\",\"StorageAccountResourceGroupName\":\"afsbvtlonghaulrgne\",\"StorageAccountProviderType\":\"Storage\",\"StorageAccount_Type\":\"Standard\",\"StorageAccountSubscriptionId\":\"00000000-0000-0000-0000-000000000000\",\"Version\":\"V_2019_09\",\"Name\":\"shareSnapshot\",\"Uri\":\"https://afsbvtlonghaulcrrsane.file.core.windows.net/afs1hrtestfs?sharesnapshot=2026-07-27T10:00:49.0000000Z\",\"Id\":\"61d87fe8-df98-42ec-861c-1da8fcdb6029\",\"Type\":\"AzureSourceStorageFileShare\",\"Tier\":\"Tier1\",\"State\":\"Committed\",\"LogicalSize\":1,\"VirtualSize\":-1,\"PhysicalSize\":-1,\"ReplicaId\":\"00000000-0000-0000-0000-000000000000\",\"ReplicaSnapshotId\":\"61d87fe8-df98-42ec-861c-1da8fcdb6029\",\"IsInternal\":false,\"ExternalIdentifier\":null},{\"$type\":\"Microsoft.Internal.CloudBackup.PitManager.AzureVaultStorageBlobPitComponentInfo, + PitManager\",\"Version\":\"V_2019_09\",\"Name\":\"config_replica_tier1_510173895353550_0\",\"Uri\":\"https://vv0nepod01prot1d193.z19.blob.storage.azure.net/a519ede2-1fd1-4da7-93f3-197c8e8b388c/2626223015531328968_3265544_a76e6c9b-6746-4d73-9918-57418bab6724_IaasVMConfigBlob\",\"Id\":\"579f420c-edfb-41ba-8c3c-a87c71989f17\",\"Type\":\"AzureVaultStorageBlob\",\"Tier\":\"Tier1\",\"State\":\"Committed\",\"LogicalSize\":0,\"VirtualSize\":-1,\"PhysicalSize\":-1,\"ReplicaId\":\"00000000-0000-0000-0000-000000000000\",\"ReplicaSnapshotId\":\"579f420c-edfb-41ba-8c3c-a87c71989f17\",\"IsInternal\":false,\"ExternalIdentifier\":null}],\"DatasourceId\":510173895353550,\"DistributedId\":null}", + "rpOriginalSAOption": false, "rpIsManagedVirtualMachine": false, "bMSActiveRegion": + "NorthEurope", "protectableObjectUniqueName": "DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754", + "protectableObjectFriendlyName": "afs1hrtestfs", "protectableObjectWorkloadType": + "AzureFileShare", "protectableObjectProtectionState": "Protected", "protectableObjectParentLogicalContainerName": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane", + "containerId": "3265544", "policyName": "vault1hrbackuppolicy", "policyId": + "ec31ea0e-79f3-4b58-9d9b-ac548b2d3098", "isSystemAssignedIdentity": false}, + "restoreRequest": {"objectType": "AzureFileShareRestoreRequest", "recoveryType": + "AlternateLocation", "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvtlonghaulcrrsane", + "copyOptions": "Overwrite", "restoreRequestType": "FullShareRestore", "targetDetails": + {"name": "afsfilesharetarget1hr", "targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.Storage/storageAccounts/afsbvttargetsacrrne"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + Content-Length: + - '7032' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrossRegionRestore?api-version=2021-11-15 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrOperationsStatus/MjYyNjIyMzAxNTUzMTMyODk2ODswY2I5OGUzNy0xMTM5LTRhM2QtODJhMy1mYTU2MTViZGYzNWQ=?api-version=2021-11-15&t=639208382330410417&c=MIIHlTCCBn2gAwIBAgIRAOEQ2d598G-GKVm5lXYg1qUwDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV1VTMiBDQSAwMTAeFw0yNjA0MTMxMDQyNTFaFw0yNjEwMDgxNjQyNTFaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxL2brdJEPIAIpNtVK59FlS1iYZb0NM7ceulMaH4KbXEZy-7Rb43CvotdE5ASI1iodbKXMoidoNDJhVMGWw9gGg1uKbW-XcNBkcmqgRrTt0khoQukK9qJvPpLMZgYIg2a964tIqbNkcwxoZ7YZ8F_kfzv0cf9qDRxyjdp1Z37TgwT9t9rgvp6b_JiEbNiO-S9qGr1qDP2rPQU0wPjf-BBRUeTISKLSHQwSUS1MVIUtzK4GK0PU3PGGY8-NSaGWbR-YkuXJawy9SCpwGmNvfirwcA7khwpUQOzOWEO1PTIhaOume-N7nlUEnKRgzaYGUnHYb_sq_IfHziMT-Ztz77e4QIDAQABo4IEkjCCBI4wgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUfytjEMBkJaMLBP32c8R7Lp04GKswHwYDVR0jBBgwFoAUrONy-gOyc549lcjvh1uu3Ruh7WgwggGyBgNVHR8EggGpMIIBpTBpoGegZYZjaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3R1czIvY3Jscy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxLzEyL2N1cnJlbnQuY3JsMGugaaBnhmVodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0dXMyL2NybHMvY2NtZXdlc3R1czJwa2kvY2NtZXdlc3R1czJpY2EwMS8xMi9jdXJyZW50LmNybDBaoFigVoZUaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3R1czIvY3Jscy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxLzEyL2N1cnJlbnQuY3JsMG-gbaBrhmlodHRwOi8vY2NtZXdlc3R1czJwa2kud2VzdHVzMi5wa2kuY29yZS53aW5kb3dzLm5ldC9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzL2NjbWV3ZXN0dXMyaWNhMDEvMTIvY3VycmVudC5jcmwwggG3BggrBgEFBQcBAQSCAakwggGlMGwGCCsGAQUFBzAChmBodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdHVzMi9jYWNlcnRzL2NjbWV3ZXN0dXMycGtpL2NjbWV3ZXN0dXMyaWNhMDEvY2VydC5jZXIwbgYIKwYBBQUHMAKGYmh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3R1czIvY2FjZXJ0cy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxL2NlcnQuY2VyMF0GCCsGAQUFBzAChlFodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vd2VzdHVzMi9jYWNlcnRzL2NjbWV3ZXN0dXMycGtpL2NjbWV3ZXN0dXMyaWNhMDEvY2VydC5jZXIwZgYIKwYBBQUHMAKGWmh0dHA6Ly9jY21ld2VzdHVzMnBraS53ZXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZXdlc3R1czJpY2EwMTANBgkqhkiG9w0BAQsFAAOCAQEAWV06K3KXsdSaBb5M-XVu6lrjNuDZPbhkLIXTJro27IaXWKNtzCJJ3J8PGx82oCkivBkVAShOfUKHMgavkd-vZSCMzNj44DSOklpyX64reDE7jImPxh1U2iznMdECpl9_cbxCAu74ZnXL1fo74JKvSu1deGKsL9S-iariq79GYoknsGjaqSXFeqUAAYx2mWd6-skvNDuH2ub7KhSw3xU8jFknROIEb0nykBPSKfv_3k_dD6Y3oAz68DpbfVmqnVu_i08b4kX18VqdaYvjQatahzmIODg0ObN4nP_SLNgJg4lqnxBBbR2fsMk4L-2n2TmdzXyM8ksjIWGXvgP_6g7Csw&s=gd_JJj5qSey8iQtLHKB18DM5vDru1O_jz1zUAuNL_cvC-jfZziu8OOyrZwedmEvEeHZP005sDwckzpaZRBPVKSReyOFQvdA6uFXXsnQdkvNNWVPk7zYuNnugjdbSG-9RkMFdekHoiLbdEAvNrA-0egx2Pp9dgSPprc9ux7ynogzUn1s8BchqB5xe_eRBe1J66qKlBpeMMYb41GdYCYCxHGwJH-lEVFlRRZYXzAvCUj6ZmonMrUltvgatlm5t2GoKp4Tvl2DiCydCFIX9GmjmaLcFI7JY2oW5IkgsoqsZ6gvHhZtDrer34VrOOENlFHfHJJHkTpXu-bW4etCPxaPUoA&h=42y9mKp-ItsRehPpVKeHC7PFr7JyRCFh4xtzb3ZjnSE + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 28 Jul 2026 12:23:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrOperationResults/MjYyNjIyMzAxNTUzMTMyODk2ODswY2I5OGUzNy0xMTM5LTRhM2QtODJhMy1mYTU2MTViZGYzNWQ=?api-version=2021-11-15&t=639208382330566439&c=MIIHlTCCBn2gAwIBAgIRAOEQ2d598G-GKVm5lXYg1qUwDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAxMrQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgV1VTMiBDQSAwMTAeFw0yNjA0MTMxMDQyNTFaFw0yNjEwMDgxNjQyNTFaMEAxPjA8BgNVBAMTNWFzeW5jb3BlcmF0aW9uc2lnbmluZ2NlcnRpZmljYXRlLm1hbmFnZW1lbnQuYXp1cmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxL2brdJEPIAIpNtVK59FlS1iYZb0NM7ceulMaH4KbXEZy-7Rb43CvotdE5ASI1iodbKXMoidoNDJhVMGWw9gGg1uKbW-XcNBkcmqgRrTt0khoQukK9qJvPpLMZgYIg2a964tIqbNkcwxoZ7YZ8F_kfzv0cf9qDRxyjdp1Z37TgwT9t9rgvp6b_JiEbNiO-S9qGr1qDP2rPQU0wPjf-BBRUeTISKLSHQwSUS1MVIUtzK4GK0PU3PGGY8-NSaGWbR-YkuXJawy9SCpwGmNvfirwcA7khwpUQOzOWEO1PTIhaOume-N7nlUEnKRgzaYGUnHYb_sq_IfHziMT-Ztz77e4QIDAQABo4IEkjCCBI4wgZ0GA1UdIASBlTCBkjAMBgorBgEEAYI3ewEBMGYGCisGAQQBgjd7AgIwWDBWBggrBgEFBQcCAjBKHkgAMwAzAGUAMAAxADkAMgAxAC0ANABkADYANAAtADQAZgA4AGMALQBhADAANQA1AC0ANQBiAGQAYQBmAGYAZAA1AGUAMwAzAGQwDAYKKwYBBAGCN3sDAjAMBgorBgEEAYI3ewQCMAwGA1UdEwEB_wQCMAAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA4GA1UdDwEB_wQEAwIFoDAdBgNVHQ4EFgQUfytjEMBkJaMLBP32c8R7Lp04GKswHwYDVR0jBBgwFoAUrONy-gOyc549lcjvh1uu3Ruh7WgwggGyBgNVHR8EggGpMIIBpTBpoGegZYZjaHR0cDovL3ByaW1hcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3R1czIvY3Jscy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxLzEyL2N1cnJlbnQuY3JsMGugaaBnhmVodHRwOi8vc2Vjb25kYXJ5LWNkbi5wa2kuY29yZS53aW5kb3dzLm5ldC93ZXN0dXMyL2NybHMvY2NtZXdlc3R1czJwa2kvY2NtZXdlc3R1czJpY2EwMS8xMi9jdXJyZW50LmNybDBaoFigVoZUaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3dlc3R1czIvY3Jscy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxLzEyL2N1cnJlbnQuY3JsMG-gbaBrhmlodHRwOi8vY2NtZXdlc3R1czJwa2kud2VzdHVzMi5wa2kuY29yZS53aW5kb3dzLm5ldC9jZXJ0aWZpY2F0ZUF1dGhvcml0aWVzL2NjbWV3ZXN0dXMyaWNhMDEvMTIvY3VycmVudC5jcmwwggG3BggrBgEFBQcBAQSCAakwggGlMGwGCCsGAQUFBzAChmBodHRwOi8vcHJpbWFyeS1jZG4ucGtpLmNvcmUud2luZG93cy5uZXQvd2VzdHVzMi9jYWNlcnRzL2NjbWV3ZXN0dXMycGtpL2NjbWV3ZXN0dXMyaWNhMDEvY2VydC5jZXIwbgYIKwYBBQUHMAKGYmh0dHA6Ly9zZWNvbmRhcnktY2RuLnBraS5jb3JlLndpbmRvd3MubmV0L3dlc3R1czIvY2FjZXJ0cy9jY21ld2VzdHVzMnBraS9jY21ld2VzdHVzMmljYTAxL2NlcnQuY2VyMF0GCCsGAQUFBzAChlFodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vd2VzdHVzMi9jYWNlcnRzL2NjbWV3ZXN0dXMycGtpL2NjbWV3ZXN0dXMyaWNhMDEvY2VydC5jZXIwZgYIKwYBBQUHMAKGWmh0dHA6Ly9jY21ld2VzdHVzMnBraS53ZXN0dXMyLnBraS5jb3JlLndpbmRvd3MubmV0L2NlcnRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZXdlc3R1czJpY2EwMTANBgkqhkiG9w0BAQsFAAOCAQEAWV06K3KXsdSaBb5M-XVu6lrjNuDZPbhkLIXTJro27IaXWKNtzCJJ3J8PGx82oCkivBkVAShOfUKHMgavkd-vZSCMzNj44DSOklpyX64reDE7jImPxh1U2iznMdECpl9_cbxCAu74ZnXL1fo74JKvSu1deGKsL9S-iariq79GYoknsGjaqSXFeqUAAYx2mWd6-skvNDuH2ub7KhSw3xU8jFknROIEb0nykBPSKfv_3k_dD6Y3oAz68DpbfVmqnVu_i08b4kX18VqdaYvjQatahzmIODg0ObN4nP_SLNgJg4lqnxBBbR2fsMk4L-2n2TmdzXyM8ksjIWGXvgP_6g7Csw&s=ih1tGFRHDogOykcUxyyiJ8r0UzB996VVYQcf7HYw_5NskqBSWTi2MxzDUFU0eSqxVd9xQDUv8o_vtMnPkeqy9IhBqSnTtqGV36CbEGXiySQky6EAu-ethLDIAo9lm-nUEhjxOjjNM6ZqRntzGM8yoDqi4E6FCS3wRRUKoVLny0sfQEfz9dKbnwF2zg8Ym4VOG00-PGhp5PMuu9qtL6mQR7IuTpho0t9zvayIJenGqrm1Hrmz_V1jiu_1bOr66tC9HvyQTfHqNq7PotQvuJxOLltfs3fKZzGcUtMJpYMi9DdIpbOnLHqvWLf68h6mrDeKQAEOClnubDlo92M8kX6B9w&h=Ld5alwufV6klMSKyzVPSWNNRFC6eNl4-KO2KrmzgC9U + 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/westindia/f2ab27c6-b1df-483a-a53e-08343606b72c + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 1784558F857141849E79CCF110E4907F Ref B: PNQ231110907040 Ref C: 2026-07-28T12:23:51Z' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrOperationsStatus/MjYyNjIyMzAxNTUzMTMyODk2ODswY2I5OGUzNy0xMTM5LTRhM2QtODJhMy1mYTU2MTViZGYzNWQ%3D?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrOperationsStatus/MjYyNjIyMzAxNTUzMTMyODk2ODswY2I5OGUzNy0xMTM5LTRhM2QtODJhMy1mYTU2MTViZGYzNWQ=","name":"MjYyNjIyMzAxNTUzMTMyODk2ODswY2I5OGUzNy0xMTM5LTRhM2QtODJhMy1mYTU2MTViZGYzNWQ=","status":"Succeeded","startTime":"2026-07-28T12:23:52.1848319Z","endTime":"2026-07-28T12:23:53Z","properties":{"objectType":"OperationStatusJobExtendedInfo","jobId":"f526cba3-7248-433d-9e75-f36e8fb4b01a"}}' + headers: + cache-control: + - no-cache + content-length: + - '512' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:23:55 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/southindia/39311ad1-a8e7-4b1b-9795-dede8d08965d + x-ms-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: 2734F03C723F44C8B12001D6999E8E84 Ref B: PNQ241100403029 Ref C: 2026-07-28T12:23:54Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup restore restore-azurefileshare + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -c -i -r --restore-mode --resolve-conflict --target-storage-account + --target-file-share --target-resource-group-name --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT13.9514628S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Target + File Share Name":"afsfilesharetarget1hr","Target Storage Account Name":"afsbvttargetsacrrne","Job + Type":"Recover to an alternate file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:24:07 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/westindia/8d434a41-99e6-4305-97ac-4f4dcc25b91b + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 98BDE721F765440DA812331334A7E970 Ref B: PNQ231110908029 Ref C: 2026-07-28T12:24:06Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne?api-version=2025-08-01 + response: + body: + string: '{"location":"northeurope","name":"afsbvtcrrlonghaulvaultne","etag":"W/\"datetime''2025-08-14T03%3A08%3A39.7911676Z''\"","tags":{"MAB + Used":"Yes","Purpose":"Testing"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None","backupStorageVersion":"V1","securitySettings":{"softDeleteSettings":{"softDeleteRetentionPeriodInDays":14,"softDeleteState":"Enabled","enhancedSecurityState":"Enabled"},"multiUserAuthorization":"Disabled","sourceScanConfiguration":{"state":"Disabled"}},"redundancySettings":{"standardTierStorageRedundancy":"GeoRedundant","crossRegionRestore":"Enabled"},"secureScore":"Adequate","bcdrSecurityLevel":"Good","publicNetworkAccess":"Enabled","restoreSettings":{"crossSubscriptionRestoreSettings":{"crossSubscriptionRestoreState":"Enabled"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '1064' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:24:08 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: 22C7F6F6B04747BEB38788E572B10BF1 Ref B: PNQ231110906036 Ref C: 2026-07-28T12:24:08Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT16.5302246S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Target + File Share Name":"afsfilesharetarget1hr","Target Storage Account Name":"afsbvttargetsacrrne","Job + Type":"Recover to an alternate file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:24:09 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/westindia/819dd6ae-0114-449a-936c-a48055ddce82 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 634426224604443D849F8916A793CE1F Ref B: PNQ241100403060 Ref C: 2026-07-28T12:24:09Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT17.7144993S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Target + File Share Name":"afsfilesharetarget1hr","Target Storage Account Name":"afsbvttargetsacrrne","Job + Type":"Recover to an alternate file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:24:11 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/southindia/2e2fbc14-bc70-4381-b2e1-e0583b165745 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 7FCF1307F1C4459EB558AFE798B86433 Ref B: PNQ241100403062 Ref C: 2026-07-28T12:24:10Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT49.7055429S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Target + File Share Name":"afsfilesharetarget1hr","Target Storage Account Name":"afsbvttargetsacrrne","Job + Type":"Recover to an alternate file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:24: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/centralindia/61843c23-e54d-435c-b367-ac50758daf40 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: E349CEBCFFFD4A9B84EE778BDFC6EDE0 Ref B: PNQ241100404042 Ref C: 2026-07-28T12:24:42Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT1M21.3195244S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"InProgress"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1477' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:25:14 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/centralindia/d8efc83d-6953-41fd-96ba-4dd53d20bc7e + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 6B89B91641874035ABF0DD519AE43731 Ref B: PNQ231110906052 Ref C: 2026-07-28T12:25:14Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT1M53.5170733S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"InProgress"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1477' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:25: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/southindia/897fe276-6413-4d96-86c4-f7a111db1bbf + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 943204E80D5B4E87B7DAEC0D51221854 Ref B: PNQ241100405042 Ref C: 2026-07-28T12:25:46Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT2M25.3292505S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"InProgress"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1477' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:26: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/centralindia/28c497c5-f989-4790-857e-32e9512a151a + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 2888F34707F14B2893BF65F52AFA846E Ref B: PNQ241100404040 Ref C: 2026-07-28T12:26:17Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT2M57.2721806S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"InProgress"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"InProgress","startTime":"2026-07-28T12:23:53.463132Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1477' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:26: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/centralindia/b520df4f-6d41-4bee-ad60-ffd61f2f8179 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: 101C841DC4394970AEE65C973DFFE45F Ref B: PNQ241100404042 Ref C: 2026-07-28T12:26:49Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job wait + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT3M22.4705426S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"Completed"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"Completed","startTime":"2026-07-28T12:23:53.463132Z","endTime":"2026-07-28T12:27:15.9336746Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1516' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:27: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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/centralindia/0dcccfbf-15a6-4b62-9346-091eb9f02b74 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: C31978786149458A995E9624448D43A2 Ref B: PNQ241100406023 Ref C: 2026-07-28T12:27:21Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job show + Connection: + - keep-alive + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.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/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne?api-version=2025-08-01 + response: + body: + string: '{"location":"northeurope","name":"afsbvtcrrlonghaulvaultne","etag":"W/\"datetime''2025-08-14T03%3A08%3A39.7911676Z''\"","tags":{"MAB + Used":"Yes","Purpose":"Testing"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None","backupStorageVersion":"V1","securitySettings":{"softDeleteSettings":{"softDeleteRetentionPeriodInDays":14,"softDeleteState":"Enabled","enhancedSecurityState":"Enabled"},"multiUserAuthorization":"Disabled","sourceScanConfiguration":{"state":"Disabled"}},"redundancySettings":{"standardTierStorageRedundancy":"GeoRedundant","crossRegionRestore":"Enabled"},"secureScore":"Adequate","bcdrSecurityLevel":"Good","publicNetworkAccess":"Enabled","restoreSettings":{"crossSubscriptionRestoreSettings":{"crossSubscriptionRestoreState":"Enabled"}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '1064' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:27: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-ratelimit-remaining-subscription-global-reads: + - '16499' + x-msedge-ref: + - 'Ref A: F4FE32AD1750403795D4B42D92D641B9 Ref B: PNQ231110909042 Ref C: 2026-07-28T12:27:57Z' + status: + code: 200 + message: OK +- request: + body: '{"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/afsbvtlonghaulrgne/providers/Microsoft.RecoveryServices/vaults/afsbvtcrrlonghaulvaultne", + "jobName": "f526cba3-7248-433d-9e75-f36e8fb4b01a"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - backup job show + Connection: + - keep-alive + Content-Length: + - '223' + Content-Type: + - application/json + ParameterSetName: + - --subscription -g -v -n --use-secondary-region + User-Agent: + - AZURECLI/2.88.0 azsdk-python-core/1.39.0 Python/3.12.10 (Windows-11-10.0.26100-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupCrrJob?api-version=2021-11-15 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices/locations/westeurope/backupJobs/f526cba3-7248-433d-9e75-f36e8fb4b01a","name":"f526cba3-7248-433d-9e75-f36e8fb4b01a","type":"Microsoft.RecoveryServices/vaults/backupJobs","properties":{"jobType":"AzureStorageJob","actionsInfo":["Cancellable"],"duration":"PT3M22.4705426S","storageAccountName":"afsbvtlonghaulcrrsane","storageAccountVersion":"ClassicCompute","extendedInfo":{"tasksList":[{"taskId":"Transfer + data from vault","taskType":"Normal","status":"Completed"}],"propertyBag":{"Source + File Share Name":"afs1hrtestfs","Source Storage Account Name":"afsbvtlonghaulcrrsane","Recovery + Point Time in UTC":"7/27/2026 10:00:55 AM","Target File Share Name":"afsfilesharetarget1hr","Target + Storage Account Name":"afsbvttargetsacrrne","Job Type":"Recover to an alternate + file share","RestoreDestination":"afsbvttargetsacrrne/afsfilesharetarget1hr/","Data + Transferred (in MB)":"0","Number Of Restored Files":"0","Number Of Skipped + Files":"0","Number Of Failed Files":"0","Subscription Id of the vault":"00000000-0000-0000-0000-000000000000","Resource + Group Name of the vault":"afsbvtlonghaulrgne","Vault name":"afsbvtcrrlonghaulvaultne"}},"isUserTriggered":false,"entityFriendlyName":"afs1hrtestfs","backupManagementType":"AzureStorage","operation":"CrossRegionRestore","status":"Completed","startTime":"2026-07-28T12:23:53.463132Z","endTime":"2026-07-28T12:27:15.9336746Z","activityId":"2819d92c-8a7f-11f1-9f66-78862e3d64af"}}' + headers: + cache-control: + - no-cache + content-length: + - '1516' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 28 Jul 2026 12:27:59 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=d5f45f9e-867c-4805-9aba-55121e6bdbb8/southindia/be45898f-fc29-4cdd-a5c6-4bd37c2bc722 + x-ms-ratelimit-remaining-subscription-global-writes: + - '11999' + x-ms-ratelimit-remaining-subscription-writes: + - '799' + x-msedge-ref: + - 'Ref A: B6433E2402C94AAB9AFE6329A5C6E0FD Ref B: PNQ231110907040 Ref C: 2026-07-28T12:27:58Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_afs_commands.py b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_afs_commands.py index 97a71df2ede..149fe6556f8 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_afs_commands.py +++ b/src/azure-cli/azure/cli/command_modules/backup/tests/latest/test_afs_commands.py @@ -186,6 +186,82 @@ def test_afs_backup_item(self, resource_group, vault_name, storage_account, afs_ # self.cmd('backup container unregister -g {rg} -v {vault} -c {container} --yes --backup-management-type AzureStorage') # time.sleep(100) + @AllowLargeResponse() + @record_only() + def test_afs_cross_region_restore(self): + self.kwargs.update({ + 'sub': ('14d16a2a-56f6-4c75-b091-084df9640297' + if self.is_live else self.get_subscription_id()), + 'rg': 'afsbvtlonghaulrgne', + 'vault': 'afsbvtcrrlonghaulvaultne', + 'container': 'StorageContainer;Storage;afsbvtlonghaulrgne;afsbvtlonghaulcrrsane', + 'item': 'AzureFileShare;DCAEC29D689395B269170A2156B6771285091236BA6D65E2A8FAD70B90587754', + 'friendly_item': 'afs1hrtestfs', + 'target_sa': 'afsbvttargetsacrrne', + 'target_share': 'afsfilesharetarget1hr' + }) + + self.cmd( + 'backup item list --subscription {sub} -g {rg} -v {vault} ' + '--backup-management-type AzureStorage --workload-type AzureFileShare ' + '--use-secondary-region', + checks=[ + self.check("length([?name == '{item}'])", 1), + self.check( + "[?name == '{item}'] | [0].properties.friendlyName", + '{friendly_item}' + ) + ] + ) + + self.cmd( + 'backup item show --subscription {sub} -g {rg} -v {vault} ' + '-c {container} -n {item} --backup-management-type AzureStorage ' + '--workload-type AzureFileShare --use-secondary-region', + checks=[ + self.check('name', '{item}'), + self.check('properties.friendlyName', '{friendly_item}'), + self.check('properties.backupManagementType', 'AzureStorage') + ] + ) + + self.kwargs['rp'] = self.cmd( + 'backup recoverypoint list --subscription {sub} -g {rg} -v {vault} ' + '-c {container} -i {item} --backup-management-type AzureStorage ' + '--workload-type AzureFileShare --use-secondary-region --query [0].name' + ).get_output_in_json() + + restore_job = self.cmd( + 'backup restore restore-azurefileshare --subscription {sub} -g {rg} -v {vault} ' + '-c {container} -i {item} -r {rp} --restore-mode AlternateLocation ' + '--resolve-conflict Overwrite --target-storage-account {target_sa} ' + '--target-file-share {target_share} --target-resource-group-name {rg} ' + '--use-secondary-region', + checks=[ + self.check('properties.operation', 'CrossRegionRestore'), + self.check('properties.status', 'InProgress') + ] + ).get_output_in_json() + self.kwargs['job'] = restore_job['name'] + + self.cmd( + 'backup job wait --subscription {sub} -g {rg} -v {vault} ' + '-n {job} --use-secondary-region' + ) + + self.cmd( + 'backup job show --subscription {sub} -g {rg} -v {vault} ' + '-n {job} --use-secondary-region', + checks=[ + self.check('properties.operation', 'CrossRegionRestore'), + self.check('properties.status', 'Completed'), + self.check( + 'properties.extendedInfo.tasksList[0].status', + 'Completed' + ) + ] + ) + #@record_only() @live_only() @AllowLargeResponse()