With below terraform template, when I try to create postgres flexible server, getting error as:
Error: waiting for creation of the Postgresql Flexible Server "testaksk8s-del-postgres-del" (Resource Group "testaksk8s-del-postgres"): Code="InternalServerError" Message="An unexpected error occured while processing the request. Tracking ID: '4a1b5b2f-3d37-4fd3-9d36-7572b53e8287'"
│
│ with azurerm_postgresql_flexible_server.example,
│ on 12-postgres.tf line 15, in resource "azurerm_postgresql_flexible_server" "example":
│ 15: resource "azurerm_postgresql_flexible_server" "example" {
The templates link: https://github.com/uday-globuslive/test-postgres-templates
Same issue with azure cli also:
C:\Users\user1>az postgres flexible-server create --admin-password "erwin@2020" --admin-user postgres --backup-retention 7 --high-availability Disabled --location eastus2 --name testaksk8s-del-postgres-del --private-dns-zone /subscriptions/f733ab10-e6a2-406d-9c23-cafe4ec0e71e/resourceGroups/testaksk8s-del-postgres/providers/Microsoft.Network/privateDnsZones/deve.private.postgres.database.azure.com --resource-group "testaksk8s-del-postgres" --sku-name Standard_D2s_v3 --storage-size 128 --subnet "/subscriptions/f733ab10-e6a2-406d-9c23-cafe4ec0e71e/resourceGroups/testaksk8s-del/providers/Microsoft.Network/virtualNetworks/testaksk8s/subnets/testaksk8s-subnet2" --version 13 --zone 1
Checking the existence of the resource group 'testaksk8s-del-postgres'...
Resource group 'testaksk8s-del-postgres' exists ? : True
You have supplied a Subnet ID. Verifying its existence...
Using existing Vnet "testaksk8s" in resource group "testaksk8s-del"
Using existing Subnet "testaksk8s-subnet2" in resource group "testaksk8s-del"
Using the existing private dns zone deve.private.postgres.database.azure.com in resource group "testaksk8s-del-postgres"
Creating PostgreSQL Server 'testaksk8s-del-postgres-del' in group 'testaksk8s-del-postgres'...
Your server 'testaksk8s-del-postgres-del' is using sku 'Standard_D2s_v3' (Paid Tier). Please refer to https://aka.ms/postgres-pricing for pricing details
(InternalServerError) An unexpected error occured while processing the request. Tracking ID: '7c903c34-671c-4570-83b0-639ef964d0b1'
Code: InternalServerError
Message: An unexpected error occured while processing the request. Tracking ID: '7c903c34-671c-4570-83b0-639ef964d0b1'