az postgres flexible-server show \
--name blueprint-app-db-server \
--resource-group blueprint-pulumi-rg
{
"administratorLogin": null,
"administratorLoginPassword": null,
"authConfig": null,
"availabilityZone": null,
"backup": {
"backupRetentionDays": null,
"earliestRestoreDate": null,
"geoRedundantBackup": "Disabled"
},
"cluster": null,
"createMode": null,
"dataEncryption": {
"geoBackupEncryptionKeyStatus": null,
"geoBackupKeyUri": null,
"geoBackupUserAssignedIdentityId": null,
"primaryEncryptionKeyStatus": null,
"primaryKeyUri": null,
"primaryUserAssignedIdentityId": null,
"type": "SystemManaged"
},
"fullyQualifiedDomainName": "blueprint-app-db-server.postgres.database.azure.com",
"highAvailability": null,
"id": "/subscriptions/resourceGroups/blueprint-pulumi-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/blueprint-app-db-server",
"identity": null,
"___location": "UK South",
"maintenanceWindow": null,
"minorVersion": null,
"name": "blueprint-app-db-server",
"network": {
"delegatedSubnetResourceId": null,
"privateDnsZoneArmResourceId": null,
"publicNetworkAccess": "Disabled"
},
"pointInTimeUtc": null,
"privateEndpointConnections": null,
"replica": {
"capacity": null,
"promoteMode": null,
"promoteOption": null,
"replicationState": null,
"role": null
},
"replicaCapacity": null,
"replicationRole": null,
"resourceGroup": "blueprint-pulumi-rg",
"sku": {
"name": "Standard_B1ms",
"tier": "Burstable"
},
"sourceServerResourceId": null,
"state": "Dropping",
"storage": {
"autoGrow": "Disabled",
"iops": null,
"storageSizeGb": 32,
"throughput": null,
"tier": null,
"type": null
},
"systemData": null,
"tags": {
"environment": "production",
"project": "blueprint-app"
},
"type": "Microsoft.DBforPostgreSQL/flexibleServers",
"version": "14"
}
Unable to delete resource group or postgres.
$ az postgres flexible-server delete --resource-group blueprint-pulumi-rg --name blueprint-app-db-server --yes
(ResourceNotFound) The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers' with name 'blueprint-app-db-server' was not found.
Code: ResourceNotFound
Message: The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers' with name 'blueprint-app-db-server' was not found.
(ResourceNotFound) The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers' with name 'blueprint-app-db-server' was not found.
Code: ResourceNotFound
Message: The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers' with name 'blueprint-app-db-server' was not found.