The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.

Evan Van Scooter 45 Reputation points
2023-05-09T13:07:51.9066667+00:00
  • Resource/subscriptions/*****/providers/Microsoft.Sql/managedInstances/smi-inf-sql-dev-east1/securityAlertPolicies/Default
  • Operation nameUpdate managed server threat detection policy
  • Time stampThu May 04 2023 17:26:47 GMT-0400 (Eastern Daylight Time)
  • Error codeResourceDeploymentFailure
  • MessageThe resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.
Azure SQL Database
{count} votes

2 answers

Sort by: Most helpful
  1. Stuart Dobson 16 Reputation points
    2024-05-06T04:22:21.95+00:00

    This error is not much use - I have found you're able to get more details by going to the Deployments tab in Azure, clicking on the failed deployment, Related Events, Expand the Operation, find the one that failed and then, this is the important bit, look at the Json tab. I've found that there is usually more added to the message than is shown further up the chain.

    2 people found this answer helpful.
    0 comments No comments

  2. Alberto Morillo 33,426 Reputation points MVP
    2023-05-09T13:35:22.9066667+00:00

    Please verify an Azure Policy may be preventing the deployment to succeed. Here you will find some built-in policies to start.

    1 person found this answer helpful.