-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Restore Azure fileshare across subscription fails with ResourceGroupNotFound #31216
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botRecovery Services Backupaz backupaz backupService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botRecovery Services Backupaz backupaz backupService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is autogenerated. Please review and update as needed.
Describe the bug
When using
az backup restore-azurefileshareto restore a fileshare across subscriptions, the target resource group can not be found.Command Name
az backup restore restore-azurefileshareErrors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Prerequisites:
sasourcein Resource Grouprg-source-storageon subscriptions_sourcesasourcenamedmyfilesharesatargetin Resource Grouprg-target-storageon subscriptions_targetsatargetnamendmy-filesharemy-vaultin resource grouprg-my-vaulton subscriptions_sourcemyfileshareofsasourceinmy-vaultmyfileshareinmy-vaultRestore using az cli:
az loginaz account set --subscription s_targetaz backup restore restore-azurefileshare --resolve-conflict Overwrite --restore-mode AlternateLocation --vault-name my-vault --resource-group rg-my-vault --subscription s_source --target-storage-account satarget --target-resource-group-name rg-target-storage --target-file-share my-fileshare --container-name "StorageContainer;Storage;rg-source-storage;sasource" --item-name backupItem --rp-name 235172362713809 --verboseExpected Behavior
Start restoring files to the target file share
my-filesharein storage accountsatarget.Environment Summary
Additional Context
Using Azure Portal to restore the fileshare across subscriptions works as expected.