-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Deprecated sql_server but no note on top #10217
Comments
hi @Dakpan94 Thanks for opening this issue. This resource isn't strictly deprecated - there's two usage models (sku vs vcores) available in the two different resources, which is why these are separate, however (as I understand it) Microsoft are no longer adding new functionality to the older Since this resource isn't strictly deprecated, at this point in time deprecating this resource is likely unnecessary - but I could see an argument for cross-linking between the two resources to better highlight this, something along the lines of:
What do you think? Thanks! |
Hi @tombuildsstuff , This would be a great addition IMHO and could some time for future developers! Kind regards :) |
@tombuildsstuff Here are some thoughts:
Rather than this being an issue of "has not been announced as depreciated", I would look at it from the perspective of there should be a (single) Terraform object that is up to date with deploying / configuring the (single) Azure Resource. The editions (skus) documented in azurerm_sql_database: Are represented via the skus in the new object / API: While I understand Terraform can't rush to deprecate the object today (I'm envisioning the need for all the of the Terraform Imports as a result), I highly recommend that these objects provide warning output that they are old objects, no longer maintained, reference out of date APIs (almost 4 years old in this case -- 2017-03-01-preview) and will be deprecated at an undetermined time down the road. I would also recommend Terraform not split to "two Terraform objects that control the same Azure Resource type" in the future, as this is the primary challenged being faced now, as opposed to awaiting announcement of deprecation from an API version perspective. |
@ruandersMSFT - when we implemented vcore support i believe there wasn't an single API version that supported both at the time, so we needed to have two resources to support both. If that's changed and there is an API that supports both we can add sku support to the new mssql resource (as its using the newer API version) and finally deprecate/remove the old one. |
This functionality has been released in v3.0.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Could you add a 'this resource is deprecated' on top? because people land on the deprecated resource a lot and like me spend hours searching on what the differences are between sql_server and mssql_server
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/sql_server
The text was updated successfully, but these errors were encountered: