Forum Discussion

Suhag Desai's avatar
Suhag Desai
Brass Contributor
Sep 18, 2017
Solved

Different method to create azure virtual machine

am new to this forum.

 

want to clarify whether my understanding is correct on creating azure VM through diff method

1) create a VM from azure portal

2) create a VM through Powershell (without using visual studio or JSON)

3) create a json template and deploy json template through power shell

4) create and deploy virtual machine through visual studio console.

 

is this correct ? if yes, what is the recommanded method to create a azure VM ?

 

 

 

 

  • Yes, you can read more details here:

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template

    https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy

     

    Also there many great "quick start" templates on Github:

     https://github.com/Azure/azure-quickstart-templates

4 Replies

  •  

    Yes. My preferred method is Powershell. I have my own scripts with variables i can change when needed. 

    • Suhag Desai's avatar
      Suhag Desai
      Brass Contributor

      thank you.

       

      One question on using VB. if i have jason template ready with me for VM deployment and parameter then i do not need VB to be installed, right ? i can simply edit json file and use it in to powershell command.

       

      is my unerstanding is correct ?

       

       

      • Rimvydas Velykis's avatar
        Rimvydas Velykis
        Brass Contributor

        Yes, you can read more details here:

        https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template

        https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy

         

        Also there many great "quick start" templates on Github:

         https://github.com/Azure/azure-quickstart-templates

Resources