azurecloudvirtual-machineazure-virtual-machineazure-vm-role

Why do we need extensions in azure VM?


when we can manually connect to remote desktop and install software we desire, why we need extensions? Custom Script extension and Desired State configuration works same way. They run the same powershell script. why do we need many extension that basically does same thing. Please give me an idea on this.


Solution

  • when we can manually connect to remote desktop and install software we desire, why we need extensions?

    You can connect to remote desktop to install software, but sometimes if you can't connect to it, you can use custom script extension to install it, or change some configuration.

    For example, if you can't RDP to windows VM(RDP service disabled), you can use custom script extension to enable it.

    Custom extension will use wagent to run this script.