Template file deployment

John Dorudiani 40 Reputation points
2024-10-24T05:02:47.9633333+00:00

I followed the video and used the two parameter and template files provided, but it only created one of VMs (az104-10-vm0) and didn't deploy az104-10-vm1.

what should I do to have them both deployed at the same time?

This question is related to the following Learning Module

Azure Azure Training
{count} votes

Accepted answer
  1. SiddeshTN 5,345 Reputation points Microsoft External Staff
    2024-10-24T12:21:11.88+00:00

    Hi John Dorudiani,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    Only one virtual machine was created, likely due to a parameter mismatch / an issue with the deployment process
    Here are some troubleshooting steps to resolve this:

    1.Ensure your deployment template includes both virtual machines. Double-check that both VMs are correctly defined in the template and that each VM’s configuration is fully specified.
    2.Make sure that all necessary parameters, like virtual machine names, sizes, and locations, are correctly set for both VMs.
    3.Try redeploying the template using the Azure CLI after ensuring the template and parameter file are set up correctly. This should deploy both virtual machines at the same time.
    4.If the second VM still doesn’t deploy, review the deployment logs in the Azure Portal under the Deployments section of your resource group. The logs might provide clues about why the second VM wasn’t created.
    5.Additionally, check to ensure you haven’t reached any quota limits in the region you’re deploying to, and validate the template to make sure there are no structural / syntax issues.

    If challenges persist, please attach relevant screenshots for further assistance, ensuring all privacy details are concealed before posting.

    Thank you.

    Should you find this information helpful, kindly express your acknowledgment by clicking the "Upvote" and "Accept Answer" buttons on the post.


0 additional answers

Sort by: Most helpful

Your answer

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