Hello so when I am trying to deploy a custom image using an ARM template I see the below error, I did try to look up for error codesand their meaning on msft documentation. I have a couple resources in the template and it fails on a VM .

Tejaswini Suryaprakash 0 Reputation points
2024-05-10T19:46:00.5566667+00:00

 Please let me know if you have seen this and know how to solve this :

Azure Error: DeploymentFailed Message: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details. Exception Details: Error Code: Conflict Message: {'status': 'Failed', 'error': {'code': 'ResourceDeploymentFailure', 'message': "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.", 'details': [{'code': 'DeploymentFailed', 'message': 'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.', 'details': [{'code': 'Conflict', 'message': '{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "VMMarketplaceInvalidInput",\r\n "target": "0",\r\n "message": "Creating a virtual machine from a non-Marketplace image does not need Plan information. Please remove the Plan information from VM '/subscriptions/e227dd9e-0cf1-49ce-841b-00fb7aa397f4/resourceGroups/paloaltonw-cpt-vm5-outbound-ded12/providers/Microsoft.Compute/virtualMachineScaleSets/paloaltonw-cpt-vm5-outbound-ded12-hub-fw-vmss/virtualMachines/paloaltonw-cpt-vm5-outbound-ded12-hub-fw-vmss_0'."\r\n }\r\n ]\r\n }\r\n}'}]}]}}

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,294 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,581 Reputation points
    2024-05-14T08:17:51.57+00:00

    Hi @Tejaswini Suryaprakash

    Thank you for reaching out to the Microsoft Q&A platform.

    When creating a virtual machine (VM) from a non-Marketplace image, you can omit the Plan information. The Plan details are typically required only for Marketplace images, which may have been associated with licensing or pricing information. If you’re using a custom image, you can proceed without specifying a Plan. Likewise, some market images require a plan block, this is a requirement from the service itself.

    1. Remove Plan Information: Check your ARM template or deployment configuration for any plan information related to the virtual machine that is being created from a non-Marketplace image. If found, remove this plan information as it is not necessary for non-Marketplace images.
         "plan": {
             "name": "centos-8-0",
             "product": "centos-8-0",
             "publisher": "skylarkcloud"
         },
      
    2. Review ARM Template: Ensure that your Azure Resource Manager (ARM) template is correctly formatted and that all required fields are properly filled out. The template should not include plan information for VMs created from non-Marketplace images.
    3. Redeploy: After making the necessary changes, attempt to redeploy your resources. Monitor the deployment to ensure that it is completed successfully.

    If you still encounter any issue, I am here to help you. Just tag me in your comments.

    If I have answered your query, please click "Accept as answer" as a token of appreciation

    0 comments No comments