Error while deploying - The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'

Saish Paradkar 25 Reputation points
2025-03-28T13:23:10.8466667+00:00

Hello team. I get the error below when I deploy Azure Sql Managed Instance database to azure:
{0AE46D18-47AD-4FC6-8BF0-1D1DFF1041FC}

I had referred this link - https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/instance-create-quickstart?view=azuresql&tabs=azure-portal
Error code - ResourceDeploymentFailure

Azure SQL Database
{count} votes

Answer accepted by question author
  1. Saraswathi Devadula 13,495 Reputation points Microsoft External Staff Moderator
    2025-04-10T12:59:15.99+00:00

    Hi Saish Paradkar,

    Following our discussion, you are unable to create the Managed Instance in Azure portal with below error message, The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.

    We investigated and got to know that there might be a policy issue which is blocking to create the instance.

     In further investigation, got to know that the resource is missing with the policy.

     {"code":"InvalidTemplateDeployment","message":"The template deployment failed with multiple errors. Please see details for more information.","details":[{"code":"RequestDisallowedByPolicy","target":"rg","message":"Resource 'rg' was disallowed by policy. Reasons: 'Missing TAG with Owner information. Please add a new Tag with Owner information as shown below:\n\nTag Name: Owner \nTag Value: [Email ID of Owner]'. See error details for policy resource IDs.","additionalInfo":[{"type":"PolicyViolation","info":{"evaluationDetails":{"evaluatedExpressions":[{"result":"True","expressionKind":"Field","expression":"tags[Owner]","path":"tags[Owner]","targetValue":"false","operator":"Exists"}],"reason":"Missing TAG with Owner information. Please add a new Tag with Owner information as shown below:\n\nTag Name: Owner \nTag Value: [Email ID of Owner]"},"policyDefinitionId":"/providers/Microsoft.Authorization/policyDefinitions/871b6d14-10aa-478d-b590-94f262ecfa99","policyDefinitionName":"871b6d14-10aa-478d-b590-94f262ecfa99","policyDefinitionDisplayName":"Require a tag on resources","policyDefinitionVersion":"1.0.1","policyDefinitionEffect":"deny","policyAssignmentId":"/providers/Microsoft.Management/managementGroups/PSL_Project_and_Delivery/providers/Microsoft.Authorization/policyAssignments/5b68a7ed2a844c1a8a19d9d1","policyAssignmentName":"5b68a7ed2a844c1a8a19d9d1","policyAssignmentDisplayName":"Require a tag on resources","policyAssignmentScope":"/providers/Microsoft.Management/managementGroups/PSL_Project_and_Delivery","policyAssignmentParameters":{"tagName":"Owner"},"policyExemptionIds":[],"policyEnrollmentIds":[]}}]}]}

    Recommended you to try to delete the policy assignment and to create the SQL managed instance.

    Successfully, managed instance is created.

    Please refer the below document about the SQL MI,
    User's image

    https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/instance-stop-start-how-to?view=azuresql&tabs=azure-powershell-prep%2Cazure-portal#overview

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.