New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect or misleading documentation for azurerm_sql_failover_group resource #8778
Comments
Hi @rossdotpink , thanks for opening this issue. I think what the document means is that you need to create a secondary database before creating a
|
@yupwei68 Ahhh! 谢谢您. This is mostly a case of my ignorance then 🐱 do you think this should be specified in the documentation? For example:
could become:
|
@yupwei68 Thanks! |
This has been released in version 2.32.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.32.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform (and AzureRM Provider) Version
Affected Resource(s)
azurerm_mssql_database
azurerm_sql_failover_group
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform should create the primary and secondary databases, then create a Failover Group between them.
Actual Behavior
Terraform successfully creates the primary and secondary databases, then the Azure REST API returned a
409 RemoteDatabaseExists - The destination database name already exists on the destination server
error when trying to create the failover group:After having looked the Azure REST API reference, this appears to be the expected behaviour. Thus, I consider the AzureRM Provider documentation to be quite wrong:
The secondary database is defined as a resource and a dependency is added to the failover group. This does not work to create the failover group.
I think what would be needed it:
Steps to Reproduce
Run Terraform similar to the above.
References
azurerm_sql_failover_group documentation
The text was updated successfully, but these errors were encountered: