Hi!! everyone, in my case it was a parameters problem, this error:
The resource operation completed with terminal provisioning state 'Failed'
InternalServerError An unexpected error occured while processing the request. Tracking ID: '2c726aee-0026-4dae-9cbb-926f027630d3
is because one or several parameters are no good.
In my case, I tried 2 base configurations that works, use that base configuration to create the postgresql flexible server and after that try to add more parameters.
Flexible server creation with IPs (not vnet and private dns)
{
"location": "westeurope",
"sku": {
"name": "Standard_D4s_v3",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"administratorLoginPassword": "password",
"availabilityZone": "1",
"createMode": "Default",
"version": "12",
"storage": {
"storageSizeGB": 512
}
}
}
Flexible server creation with vnet and private dns, note that this privatedns and vnet has to be previously created:
{
"location": "westeurope",
"sku": {
"name": "Standard_D4s_v3",
"tier": "GeneralPurpose"
},
"properties": {
"administratorLogin": "cloudsa",
"administratorLoginPassword": "password",
"availabilityZone": "1",
"createMode": "Default",
"version": "12",
"storage": {
"storageSizeGB": 512
},
"network": {
"delegatedSubnetResourceId": "/subscriptions/be316fa0-af5d-4667-b0af-c109b2c30765/resourceGroups/z0euw1cacrsg102/providers/Microsoft.Network/virtualNetworks/datahub01cpgfxdevop2-vnet/subnets/privateendpoint-subnet",
"privateDnsZoneArmResourceId": "/subscriptions/be316fa0-af5d-4667-b0af-c109b2c30765/resourceGroups/z0euw1cacrsg102/providers/Microsoft.Network/privateDnsZones/privatelink.postgres.database.azure.com"
}
}
}