-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Support for Azure SQL Database Geo-Zone-Redundant Backup Storage #19542
Comments
That missing option is currently blocking me to provision HyperScale database with geo-redundant storage and zone_redundant = true: And it is not possible to adjust backup storage type after database creation for HyperScale tier.
results with Error: waiting for create/update of Database: (Name "example-hyperscaledb" / Server Name "example-mssqlserver" / Resource Group "example-database-rg"): Code="ProvisioningDisabled" Message="Provisioning of zone redundant Hyperscale database with geo backup redundancy is not supported. Zone redundant Hyperscale databases must use either zone or geo zone backup redundancy." |
This affects resource azurerm_mssql_managed_instance in the same way. |
does anyone have a workaround for this in the meantime? As far as I can tell, I cannot ignore this configuration in lifecycle management, we just can't manage anything about these DBs in Terraform. |
Any changes about this ? |
I found that API 23-02-01-preview supports: Local, Zone, Geo and GeoZone, so may be the provider shloud be updated to this Api version. |
Looking at the code it looks like it already uses API 2023-02-01-preview, and there is a |
I confirmed it. It works now. :) |
this seems to have been fixed by #23721 - as such i am going to close it out! |
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. |
Is there an existing issue for this?
Community Note
Description
If you want to deploy an Azure SQL Database using Terraform, not all backup storage redundancy options are supported.
The options that are supported in the Azure Portal, include:
When you define the code block in Terraform for the
azurerm_mssql_database
resource, there is a property forstorage_account_type
(shown in the screenshot below).However, the only supported types are
geo
,local
, orzone
, per the error shown by Terraform.Geo-Zone
is not a supported account type, although it is an option in the portal.Even though the azurerm_storage_account resource itself has a property for account_replication_type, which has valid options of: LRS, GRS, RAGRS, ZRS, GZRS and RAGZRS, you cannot use
GZRS
as astorage_account_type
in theazurerm_mssql_database
resource either.It would be appreciated if the Azure Terraform Provider could be updated to support all properties and configurations for this Azure service.
Other Details
Terraform version: 0.15.5
AzureRM Provider version: 3.34.0
New or Affected Resource(s)/Data Source(s)
azurerm_mssql_database
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: