Open caxejc opened 1 year ago
Hi @caxejc, thank you for taking the time to raise this! Could you please try creating a point in time database to another subscription directly through Azure Portal or other tools (e.g. az cli)?
We use Issues in this repository to track feature enhancements and bugs in the Azure Provider. So that we can maintain focus on that, we instead ask that broader questions are raised using one of the Community Resources.
So, is that a limitation of azurerm_mssql_database? It can't interact (copy/pitr/recover/etc) across subscriptions?
As you mentioned I can this in other ways, but I would prefer to do so through the TF resource if possible. I want to make sure this is a resource limitation and not a bad implementation.
Thanks
I get the same error when try to restore in another subscription.
######## create_mode = "Recovery" recover_database_id = "xxxxxx" ########################
Is this a bug or anything missing here ?
Is there an existing issue for this?
Community Note
Terraform Version
1.5.3
AzureRM Provider Version
3.61
Affected Resource(s)/Data Source(s)
azurerm_mssql_database
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Creation of a new database in {subscription} as a point in time restore of another database from {source-subscription}.
Especially with the plan working as intended.
Actual Behaviour
MismatchingSubscriptionWithUrl error.
Steps to Reproduce
I have adjusted names from the actual code
We have multiple subscriptions each with their own service principle and associated workspace/repo in Terraform Cloud. The service principle for the relevant subscription was given reader at the subscription level for the source-subscription and "SqlDb Migration Role" for the source database (I had a previous access error when trying this process).
Important Factoids
We have multiple subscriptions each with their own service principle and associated workspace/repo in Terraform Cloud. The service principle for the relevant subscription was given reader at the subscription level for the source-subscription and "SqlDb Migration Role" for the source database (I had a previous access error when trying this process).
References
No response