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

fix: updated deprecated resource names in azure database provider #1964

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

liquizz
Copy link

@liquizz liquizz commented Dec 16, 2024

Description
This PR addresses the use of deprecated Azure resource names in the Azure database provider. The following updates have been made to align with the current resource naming standards:

Updated azurerm_sql_server to azurerm_mssql_server Updated azurerm_sql_database to azurerm_mssql_database Updated azurerm_sql_firewall_rule to azurerm_mssql_firewall_rule

Motivation
The existing resource names (azurerm_sql_) are deprecated in favor of azurerm_mssql_. This fix ensures compatibility with the latest Terraform provider updates and avoids the usage of deprecated resource names. This fix addresses the following problems:

panic: unknown resource type azurerm_sql_server
panic: unknown resource type azurerm_sql_database
panic: unknown resource type azurerm_sql_firewall_rule

Changes Made
Refactored resource names in createSQLServerResources, createSQLDatabaseResources, and createSQLFirewallRuleResources functions.

Description
This PR addresses the use of deprecated Azure resource names in the Azure database provider. The following updates have been made to align with the current resource naming standards:

Updated azurerm_sql_server to azurerm_mssql_server
Updated azurerm_sql_database to azurerm_mssql_database
Updated azurerm_sql_firewall_rule to azurerm_mssql_firewall_rule

Motivation
The existing resource names (azurerm_sql_) are deprecated in favor of azurerm_mssql_. This fix ensures compatibility with the latest Terraform provider updates and avoids the usage of deprecated resource names. This fix addresses the following problems:

panic: unknown resource type azurerm_sql_server
panic: unknown resource type azurerm_sql_database
panic: unknown resource type azurerm_sql_firewall_rule
Changes Made
Refactored resource names in createSQLServerResources, createSQLDatabaseResources, and createSQLFirewallRuleResources functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant