Azure

Including Customized Script Extension In Azure Digital Machine

Introduction

 

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 13.82.7.75.

 

 

Step 1

 

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”

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 2

 

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”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 3

 

After efficiently creating the storage account, open the storage account “lankascript”, after which choose “Containers”

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 4

 

Within the “lankascript” containers click on “+ Container”, enter the identify for the container and click on create.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 5

 

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.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 6

 

After efficiently importing the Script file, go to the Digital Machine, choose “Extension” after which click on “+ Add”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 7

 

Now Choose the Customized Script Extension and click on the Create button.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 8

 

Click on the browse button and choose the “Storage Account”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 9

 

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.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 10

 

Choose the Script Container

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 11

 

Within the Script Container Choose the “iisscript.ps1” file after which click on “Choose”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 12

 

Now the file is initializing the deployment.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 13

 

Now we are able to confirm that the Customized Script Extension standing is “Provisioning Succeeded”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 14

 

Copy the Public IP tackle from the “LankaVM”.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Step 15

 

Previous the IP tackle and press enter, we are able to get the Web Info Providers Touchdown Web page.

 

Adding Custom Script Extension In Azure Virtual Machine

 

Abstract

 

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.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button