You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Error issuing create/update request for SQL Database "DB" Blob Auditing Policies(SQL Server "sqlsvr"/ Resource Group "resourcegroup"): sql.ExtendedDatabaseBlobAuditingPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BlobAuditingIsNotSupportedOnGeoDr" Message="Blob auditing can be configured on primary databases only."
2020-03-20T17:31:11.5032312Z
2020-03-20T17:31:11.5032410Z on ....\hosting-modules\data\sql\main.tf line 128, in resource "azurerm_sql_database" "database_secondary":
2020-03-20T17:31:11.5032545Z 128: resource "azurerm_sql_database" "database_secondary" { https://gist.github.com/rohanvirmani/f7d90ba445ce0c6420f4f3796665c8fd
Panic Output
Expected Behavior
Terraform should create/update the SQL databases as normal. This issue happens specifically when using version 2.1 and greater of the AzureRM provider.
Note that we are not defining the extended_auditing_policy block anywhere in our TF code.
Actual Behavior
Steps to Reproduce
Create a new secondary database using terraform using the AzureRM provider (>2.1)
Execute 'terraform apply'
Important Factoids
References
support for the extended_auditing_policy property - added as of AzureRM 2.1.0 #5036
#0000
The text was updated successfully, but these errors were encountered:
The error is output by the sql server itself. It seems the provider implicitly creates the auditing configuration, even if not specified and communicates it to the sql server, which fails.
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 👉 [email protected]. Thanks!
ghost
locked and limited conversation to collaborators
May 26, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Community Note
Terraform (and AzureRM Provider) Version
AzureRM 2.1,2.2. TF core 0.12.23
Affected Resource(s)
azurerm_sql_database
Terraform Configuration Files
Debug Output
Error: Error issuing create/update request for SQL Database "DB" Blob Auditing Policies(SQL Server "sqlsvr"/ Resource Group "resourcegroup"): sql.ExtendedDatabaseBlobAuditingPoliciesClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BlobAuditingIsNotSupportedOnGeoDr" Message="Blob auditing can be configured on primary databases only."
2020-03-20T17:31:11.5032312Z
2020-03-20T17:31:11.5032410Z on ....\hosting-modules\data\sql\main.tf line 128, in resource "azurerm_sql_database" "database_secondary":
2020-03-20T17:31:11.5032545Z 128: resource "azurerm_sql_database" "database_secondary" {
https://gist.github.com/rohanvirmani/f7d90ba445ce0c6420f4f3796665c8fd
Panic Output
Expected Behavior
Terraform should create/update the SQL databases as normal. This issue happens specifically when using version 2.1 and greater of the AzureRM provider.
Note that we are not defining the extended_auditing_policy block anywhere in our TF code.
Actual Behavior
Steps to Reproduce
Create a new secondary database using terraform using the AzureRM provider (>2.1)
Execute 'terraform apply'
Important Factoids
References
support for the
extended_auditing_policy
property - added as of AzureRM 2.1.0#5036
The text was updated successfully, but these errors were encountered: