Hi,
We are running into an issue with deletion of some resources, specifically an Azure Database for PostgreSQL flexible server and the connected private endpoint.
The database had previously been inaccessible due to CMK inaccesibility (deleted resources in the wrong order). This has been restored, but we still cannot delete the database as it will fail with the message that a private endpoint is connected. We have tried deleting the private endpoint, but it has a provisioning state: "Failed" and fails to delete.
We have tried restoring the provisioning state as instructed in the troubleshooting guide using Get-* and Set-AzPrivateEndpoint. This operation fails however with:
Set-AzPrivateEndpoint: Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'
StatusCode: 200
ReasonPhrase: OK
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.
The activity log for the private endpoint does not provide more details just a state update to "Failed", the activity log for the database shows another failed operation:
Operation name
Update Azure Database for PostgreSQL - Flexible Server Private Endpoint Connection Proxy Create
- Time stamp
Wed Mar 11 2026 11:54:35 GMT+0100 (Central European Standard Time)
- Event initiated by
Azure Traffic Manager and DNS
- Error
codeResourceOperationFailure
- Message
The resource operation completed with terminal provisioning state 'Failed'.
How can we resolve this?