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
Merge azurerm_sql_database and azurerm_mssql_database #6502
Comments
hi @frugecn ,thanks for opening this issue. We are in process of eliminating our old sql database |
Hey @frugecn, To expand on @yupwei68 - the May i ask what functionality is missing from the new resource? |
What caught my attention was in v2.6.0, connection policy was added to azurerm_sql_server, but I just realized that is the server resource and not the database resource. I thought it was added to the sql_database resource and not the mssql_resource, but since it is sql_server resource, it was a mistake on my part. Sorry. Looking at the documentation between the two: import from like a bacpac Is the new resource supposed to be backward compatible with the old service model? Or will we keep both resources depending on which service model you choose? As long as Azure is offering both service models (which they currently are), we'll need both models. I see smaller databases using the old service model for a while and larger databases using the new model. The extended_auditing_policy is now on the server resource, so that one may not be a big deal, unless you need a different policy than the server level. |
@katbyte -- what about backwards compatibility with the old DTU model? As long as that is still available, we'll need both in the resource. |
@frugecn It's still available in |
Would like to point out the doc needs deprecation notice for Also the h1 for https://www.terraform.io/docs/providers/azurerm/r/sql_server.html makes it a bit misleading : |
A couple of things that I've noticed are not possible in azurerm_mssql_database that are possible in azurerm_sql_database:
|
Hi @keiransteele Thanks, I'm fixing it. |
Currently I'm blocked by Azure/azure-rest-api-specs#10162 |
…ped_databases` in `azuerrm_mssql_server` (#7917) Fix #6502 #7594 === RUN TestAccAzureRMMsSqlDatabase_createRestoreMode === PAUSE TestAccAzureRMMsSqlDatabase_createRestoreMode === CONT TestAccAzureRMMsSqlDatabase_createRestoreMode --- PASS: TestAccAzureRMMsSqlDatabase_createRestoreMode (2016.02s) Sql server listing recoverableDatabases Api has problems, thus it's excluded in the PR: Azure/azure-rest-api-specs#10162
Hi - Thanks for the work on merging the two resources. Could you please confirm that the new resources now covers all the features that were available in azurerm_sql_database & azurerm_sql_server ? We currently have a live environment having a few SQL databases and we would like to move to the new azurerm_mssql_* resources at some point. Do you have any guidance/steps regarding the migration? Would the steps listed in https://www.terraform.io/docs/providers/azurerm/guides/migrating-between-renamed-resources.html apply right? |
Currently in the same boat as @MaximeMarck - have a bunch of production databases that we need to migrate from the old resource type to the new. Any guidance would be appreciated. |
This has been released in version 2.29.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.29.0"
}
# ... other configuration ... |
Hi there, what about azurerm_sql_firewall_rule and azurerm_sql_virtual_network_rule? Do they change at all or will be just renamed? |
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
Description
Can we merge azurerm_sql_database and azurerm_mssql_database so that we get the new features on both resources. The main difference is mssql uses SKU now. We're getting changes to one resource but not the other and getting some drift.
New or Affected Resource(s)
azurerm_sql_database
azurerm_mssql_database
The text was updated successfully, but these errors were encountered: