-
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
Description
This is autogenerated. Please review and update as needed.
Describe the bug
When using az backup restore-azurefileshare to restore a fileshare across subscriptions, the target resource group can not be found.
Command Name
az backup restore restore-azurefileshare
Errors:
(ResourceGroupNotFound) Resource group 'rg-target-storage' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'rg-target-storage' could not be found.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
Prerequisites:
- Create Storage Account
sasourcein Resource Grouprg-source-storageon subscriptions_source - Create Azure FileShare in
sasourcenamedmyfileshare - Create Storage Account
satargetin Resource Grouprg-target-storageon subscriptions_target - Create Azure FileShare in
satargetnamendmy-fileshare - Create Recovery Vault
my-vaultin resource grouprg-my-vaulton subscriptions_source - Create & assign backup policy on
myfileshareofsasourceinmy-vault - Create a backup of
myfileshareinmy-vault
Restore 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 --verbose
Expected Behavior
Start restoring files to the target file share my-fileshare in storage account satarget.
Environment Summary
Linux-5.15.167.4-microsoft-standard-WSL2-x86_64-with-glibc2.35, Ubuntu 22.04.5 LTS
Python 3.12.8
Installer: DEB
azure-cli 2.71.0
Extensions:
application-insights 1.2.3
azure-devops 1.0.1
k8s-configuration 2.2.0
k8s-extension 1.6.4
maintenance 1.4.0
ml 2.36.1
monitor-control-service 1.2.0
resource-mover 1.0.0b2
ssh 2.0.6
storage-preview 1.0.0b5
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Additional Context
Using Azure Portal to restore the fileshare across subscriptions works as expected.
Reactions are currently unavailable
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