Share via

Unable to deploy Microsoft.DBforPostgreSQL/flexibleServers from terraform on EastUS2 location

Subramanian, Aram 20 Reputation points
2023-11-07T07:11:16.9+00:00

We are trying to deploy PostgresQL server from terraform and the deployment fails after 60 mins. This code was working till yesterday.

Region is set to "eastus2"

resource "azurerm_postgresql_flexible_server" "db_server" {
  name                   = "db-server-2g2vlzpe9cnj"
  resource_group_name = data.azurerm_resource_group.rg.name
  location            = data.azurerm_resource_group.rg.location
  version                = "15"
  administrator_login    = "azureuser"
  administrator_password = random_password.postgres_password.result
  delegated_subnet_id    = azurerm_subnet.psql_subnet.id
  private_dns_zone_id    = azurerm_private_dns_zone.psql_dns_zone.id
  storage_mb             = 32768
  sku_name               = "GP_Standard_D2s_v3"

Error from screen.

╷
│ Error: creating Flexible Server (Subscription: "87bd8fcb-0e02-4d5f-83e6-e045c63dd44c"
│ Resource Group Name: "resource-group-test" │ Flexible Server Name: "db-server-2g2vlzpe9cnj"): polling after Create: Future#WaitForCompletion: context has been cancelled: StatusCode=200 -- Original Error: context deadline exceeded
│ 
│   with azurerm_postgresql_flexible_server.db_server,
│   on main.tf line 1959, in resource "azurerm_postgresql_flexible_server" "db_server":
│ 1959: resource "azurerm_postgresql_flexible_server" "db_server" {
│ 
╵

Even from portal DB creation fails.

Screenshot 2023-11-07 at 12.38.43 PM

Azure Database for PostgreSQL
0 comments No comments

Answer accepted by question author

RahulRandive 10,506 Reputation points
2023-11-07T13:40:45.84+00:00

Hi @Subramanian, Aram

You mentioned deploying the server in the "eastus2" region, but I've noticed that the deployment is failing for "eastus1."

Could you please retry deploying the server in "eastus2".

If you encounter the same issue, attempting to create the server through the portal will help us determine if it's related to Terraform or a platform issue. Additionally, sharing the tracking or correlation ID would be helpful for further investigation.

Thank you!

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.