hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.59k stars 4.63k forks source link

Error making Read request on Azure PostgreSQL Configuration backslash_quote #10855

Closed dkirrane closed 3 years ago

dkirrane commented 3 years ago

Community Note

Terraform (and AzureRM Provider) Version

$ terraform -v Terraform v0.13.5

Affected Resource(s)

Terraform Configuration Files

Its a postgres module with

resource "azurerm_resource_group" "example" {
  name     = "api-rg-pro"
  location = "West Europe"
}

resource "azurerm_postgresql_server" "example" {
  name                = "postgresql-server-1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  sku_name = "B_Gen5_2"

  storage_mb                   = 5120
  backup_retention_days        = 7
  geo_redundant_backup_enabled = false
  auto_grow_enabled            = true

  administrator_login          = "psqladminun"
  administrator_login_password = "H@Sh1CoR3!"
  version                      = "9.5"
  ssl_enforcement_enabled      = true
}

resource "azurerm_postgresql_database" "example" {
  name                = "exampledb"
  resource_group_name = azurerm_resource_group.example.name
  server_name         = azurerm_postgresql_server.example.name
  charset             = "UTF8"
  collation           = "English_United States.1252"
}

resource "azurerm_postgresql_configuration" "example" {
  name                = "backslash_quote"
  resource_group_name = azurerm_resource_group.example.name
  server_name         = azurerm_postgresql_server.example.name
  value               = "on"
}

Debug Output

Panic Output

Expected Behaviour

No failure.

Actual Behaviour

Error: Error making Read request on Azure PostgreSQL Configuration backslash_quote: postgresql.ConfigurationsClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="ResourceNotFound" Message="The requested resource does not exist"

Steps to Reproduce

Plan run on Terraform Cloud.

Important Factoids

References

aristosvo commented 3 years ago

I believe this one is fixed here

@WodansSon should we add this to the release notes as well?

katbyte commented 3 years ago

@dkirrane - looks like this has been fixed so i'm going to close it, do reopen an issue if its still a problem!

github-actions[bot] commented 3 years ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.