Create VM from ARM template

Kaizad Anklesaria 1 Reputation point
2022-04-06T18:43:34.267+00:00

Dear All

I created a ARM template from a resource group and then deleted the resource group as a test. Now when I try to recreate my environment from the ARM template I get a deployment failed error with this message

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"InvalidParameter","message":"Parameter 'osDisk.managedDisk.id' is not allowed."}]}

Thank you

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

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,936 Reputation points
    2022-04-06T19:51:53.917+00:00

    Hello @Kaizad Anklesaria ,

    Thank you for your feedback. We will investigate and update the thread further.

    Please follow the solution suggested in the below link
    https://knowledge-junction.com/2018/12/07/azure-parameter-osdisk-manageddisk-id-is-not-allowed-error-in-arm-template-deployment/

    Note: Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.

    Please "Accept as Answer" and Upvote if any of the above helped to help others in the community looking for remediation for similar issues.