Forum Discussion

sc2317's avatar
sc2317
Copper Contributor
Oct 01, 2021
Solved

Automation for Installation of Software's Post VM Deployment

Hi All,

 

We are doing assessment for migration of on-premise Infra and its services to Azure cloud. We have on-premise self service portal powered by VMware vRealize Automation/Orchestrator to install software's selected by users while requesting VMs. These software's are installed automatically post deployment. 

I am looking for similar solution to automatically install software's post deployment of vms in Azure.

Is there any native solution/service from Azure or other third party application that can be used in Azure.

Any suggestions would be really appreciated.

 

  • Yes the first 2 can be

    1. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine_extension

    and you can use below publisher and type for custom script : 

       publisher = "Microsoft.Compute"
       type = "CustomScriptExtension"


    2. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_dsc_configuration

    3. You can also use Ansible with Terraform but that is something I don't have experience on .

3 Replies

  • Ankit Kotnala's avatar
    Ankit Kotnala
    Copper Contributor

    There are several ways to do it, first two are native Azure solutions

     

    1.  https://docs.microsoft.com/en-us/azure/virtual-machines/windows/run-scripts-in-vm

     

    2.  https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview

     

    3. A thirdparty tool like Ansible, chef or puppet

    • sc2317's avatar
      sc2317
      Copper Contributor

      Hi,

      Thanks for the suggestion. Can these be used with terraform ?

      • Ankit Kotnala's avatar
        Ankit Kotnala
        Copper Contributor

        Yes the first 2 can be

        1. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine_extension

        and you can use below publisher and type for custom script : 

           publisher = "Microsoft.Compute"
           type = "CustomScriptExtension"


        2. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_dsc_configuration

        3. You can also use Ansible with Terraform but that is something I don't have experience on .

Resources