Skip to content
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

azurerm_mysql_* - deprecate Mysql Single Server and its sub resources #25187

Merged
merged 8 commits into from
Mar 15, 2024

Conversation

neil-yechenwei
Copy link
Contributor

@neil-yechenwei neil-yechenwei commented Mar 8, 2024

Service team is reaching us to add this warning for deprecating Mysql Single Server and its sub resources.

@github-actions github-actions bot added size/S and removed size/XS labels Mar 15, 2024
@neil-yechenwei neil-yechenwei changed the title azurerm_mysql_server - deprecate this resource azurerm_mysql_* - deprecate Mysql Single Server Mar 15, 2024
@neil-yechenwei neil-yechenwei changed the title azurerm_mysql_* - deprecate Mysql Single Server azurerm_mysql_* - deprecate Mysql Single Server and its sub resources Mar 15, 2024
@neil-yechenwei neil-yechenwei marked this pull request as ready for review March 15, 2024 07:44
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @neil-yechenwei. I left a suggestion on the phrasing of the deprecation message, could you please apply those changes to the rest of the deprecation messages?

@@ -25,6 +25,9 @@ func resourceMySQLAdministrator() *pluginsdk.Resource {
Read: resourceMySQLAdministratorRead,
Update: resourceMySQLAdministratorCreateUpdate,
Delete: resourceMySQLAdministratorDelete,

DeprecationMessage: "The `azurerm_mysql_active_directory_administrator` resource will be deprecated since Azure Database for MySQL - Single Server and its sub resources are scheduled for retirement (https://go.microsoft.com/fwlink/?linkid=2216041) by September 16, 2024 and they migrate (https://go.microsoft.com/fwlink/?linkid=2202255) to Azure Database for MySQL - Flexible Server and its sub resources now. Please use the `azurerm_mysql_flexible_server_active_directory_administrator` resource instead.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DeprecationMessage: "The `azurerm_mysql_active_directory_administrator` resource will be deprecated since Azure Database for MySQL - Single Server and its sub resources are scheduled for retirement (https://go.microsoft.com/fwlink/?linkid=2216041) by September 16, 2024 and they migrate (https://go.microsoft.com/fwlink/?linkid=2202255) to Azure Database for MySQL - Flexible Server and its sub resources now. Please use the `azurerm_mysql_flexible_server_active_directory_administrator` resource instead.",
DeprecationMessage: "Azure Database for MySQL Single Server and its sub resources are scheduled for retirement by 2024-09-16 and will migrate to using Azure Database for MySQL Flexible Server: https://go.microsoft.com/fwlink/?linkid=2216041. The `azurerm_mysql_active_directory_administrator` resource is deprecated and will be removed in v4.0 of the AzureRM Provider. Please use the `azurerm_mysql_flexible_server_active_directory_administrator` resource instead.",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -24,6 +24,8 @@ func resourceMySQLConfiguration() *pluginsdk.Resource {
Read: resourceMySQLConfigurationRead,
Delete: resourceMySQLConfigurationDelete,

DeprecationMessage: "The `azurerm_mysql_configuration` resource will be deprecated since Azure Database for MySQL - Single Server and its sub resources are scheduled for retirement (https://go.microsoft.com/fwlink/?linkid=2216041) by September 16, 2024 and they migrate (https://go.microsoft.com/fwlink/?linkid=2202255) to Azure Database for MySQL - Flexible Server and its sub resources now. Please use the `azurerm_mysql_flexible_server_configuration` resource instead.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please apply the suggestion made above to all of the deprecation messages in this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to all.

@neil-yechenwei
Copy link
Contributor Author

@stephybun , thanks for the comments. I updated PR. Please take another look. Thanks.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @neil-yechenwei LGTM 👍

@stephybun stephybun merged commit 1863713 into hashicorp:main Mar 15, 2024
35 checks passed
@github-actions github-actions bot added this to the v3.97.0 milestone Mar 15, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants