On this article we’re going to deploy customized script extension for home windows. The customized script extension software can be utilized on our Azure digital machines once we need deployment in Home windows. These scripts may be positioned at our storage account.
At present, we’ve an Azure Digital Machine with the Home windows Server 2016 working system and the Public IP tackle in 126.96.36.199.
Open the PowerShell ISE. We have to enter the Web Info Service set up Script after which save the script file, on this demo our script file identify is “iisscript.ps1”
Now we’re going to create a storage account, so we are going to select the right subscription and the right useful resource group, we are able to present a reputation for our storage account “lankascript”, for the situation of the storage account it have to be in the identical location housing as our digital machine, after which click on “Evaluation + Create”.
After efficiently creating the storage account, open the storage account “lankascript”, after which choose “Containers”
Within the “lankascript” containers click on “+ Container”, enter the identify for the container and click on create.
Now we have to add our Script “iisscript.ps1” file that we’ve already created in Step 1. Click on the browse button, then choose the script file and add it.
After efficiently importing the Script file, go to the Digital Machine, choose “Extension” after which click on “+ Add”.
Now Choose the Customized Script Extension and click on the Create button.
Click on the browse button and choose the “Storage Account”.
Choose the storage account that we’ve uploaded the script file. In our demo, we’ve uploaded the script file into “lankastorage”, so click on the right storage account.
Choose the Script Container
Within the Script Container Choose the “iisscript.ps1” file after which click on “Choose”.
Now the file is initializing the deployment.
Now we are able to confirm that the Customized Script Extension standing is “Provisioning Succeeded”.
Copy the Public IP tackle from the “LankaVM”.
Previous the IP tackle and press enter, we are able to get the Web Info Providers Touchdown Web page.
For those who haven’t obtained the Web Info Providers Touchdown Web page, examine the Community Safety Group, Port 80. On this article we’ve realized easy methods to deploy customized script extension. In case you have any questions be happy to remark beneath the remark field.