StorageAccountInAnotherResourceGroup: The account is in another resource group
Azure found a storage account with the same name in another resource group in the subscription. Deploying the same name to a different resource group doesn't create a separate account.
What to check
- Check which resource group contains the account and confirm whether the deployment should use it.
- Reference the existing account at its actual scope if that's what you need. If you're creating a different account, choose a globally unique name.