Introduction
In this article we are going to deploy custom script extension for windows. The custom script extension tool can be used on our Azure virtual machines when we want deployment in Windows. These scripts can be located at our storage account.
Currently, we have an Azure Virtual Machine with the Windows Server 2016 operating system and the Public IP address in 13.82.7.75.

Step 1
Open the PowerShell ISE. We need to enter the Internet Information Service installation Script and then save the script file, in this demo our script file name is “iisscript.ps1”

Step 2
Now we are going to create a storage account, so we will choose the correct subscription and the correct resource group, we can provide a name for our storage account “lankascript”, for the location of the storage account it must be in the same location housing as our virtual machine, and then click “Review + Create”.

Step 3
After successfully creating the storage account, open the storage account “lankascript”, and then select “Containers”

Step 4
In the “lankascript” containers click “+ Container”, enter the name for the container and click create.

Step 5
Now we need to upload our Script “iisscript.ps1” file that we have already created in Step 1. Click the browse button, then select the script file and upload it.

Step 6
After successfully uploading the Script file, go to the Virtual Machine, select “Extension” and then click “+ Add”.











Hadshana KamalanathanPosted Sep 28, 2021, 4:22 AM
Excellent Article.