Forum Discussion

experi18's avatar
experi18
Brass Contributor
Jul 16, 2024
Solved

Infra as Code vs VMSS

Guys, I always wondered... what is the difference between VMSS and create VMs via IAC?

Which one is better?

Does any of one have more advantages than the other?

  • Hi experi18,

     

    absolutely correct, your VMs within the scale set are built automatically etc.

    Nevertheless, in my view it is always sensible to create the infrastructure (resource group, VNet, subnet etc.) including the scale set via IaC.

    The advantages are also for small environments: Sustainability, reproducibility, scalability and standardisation.

    Please also remember that you need a data centre licence for Windows machines 😉

     

    Regards, Matthias

7 Replies

  • Hi experi18,

     

    For me, these are different points: The basic VMs and the Scale Set should be provided via infrastructure as code in order to offer a standardised solution.

     

    Terraform documentation on Azure VM Scale Sets:

    https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/windows_virtual_machine_scale_set.html

     

    Best regards,

    Matthias

    • experi18's avatar
      experi18
      Brass Contributor
      Yeah but, If I create a VMSS it would automatically be created standardised, no?

      Why do create even the VMSS via IAC?
      • Matthias-Braun's avatar
        Matthias-Braun
        Brass Contributor

        Hi experi18,

         

        absolutely correct, your VMs within the scale set are built automatically etc.

        Nevertheless, in my view it is always sensible to create the infrastructure (resource group, VNet, subnet etc.) including the scale set via IaC.

        The advantages are also for small environments: Sustainability, reproducibility, scalability and standardisation.

        Please also remember that you need a data centre licence for Windows machines 😉

         

        Regards, Matthias

    • experi18's avatar
      experi18
      Brass Contributor
      But think with me: If I do create a VMSS, the machines already will be created standardised?

      And easily to increase / delete?

Resources