Azure Virtual Machine
Extension
Introduction
● Extensions are small applications that provide post-deployment VM configuration and automation
tasks
● Managed with Azure CLI, PowerShell, Azure Resource Manager Templates, and the Azure Portal
● Bundled with a new VM deployment or run against any existing system
● Different for Windows and Linux System
Demo
● Install Web server in Windows Base machine
● Install Nginx and set custom index page using Userdata
Install Web server in Windows Base machine
Command to validate the feature install or not using powershell
get-windowsfeature -name web-server
Command to install the feature
install-windowsfeature -name web-server
Install Nginx and set custom index page using
Userdata
Below is the shell script to install php and nginx using userdata in ubuntu
#!/bin/bash
apt-get update
apt-get install -y nginx
echo "This hostname of the web server is $HOSTNAME" > /var/www/html/index.nginx-debian.html
service nginx start
Thank You

3. Azure Virtual Machine Extension by Techserverglobal

  • 1.
  • 2.
    Introduction ● Extensions aresmall applications that provide post-deployment VM configuration and automation tasks ● Managed with Azure CLI, PowerShell, Azure Resource Manager Templates, and the Azure Portal ● Bundled with a new VM deployment or run against any existing system ● Different for Windows and Linux System
  • 3.
    Demo ● Install Webserver in Windows Base machine ● Install Nginx and set custom index page using Userdata
  • 4.
    Install Web serverin Windows Base machine Command to validate the feature install or not using powershell get-windowsfeature -name web-server Command to install the feature install-windowsfeature -name web-server
  • 5.
    Install Nginx andset custom index page using Userdata Below is the shell script to install php and nginx using userdata in ubuntu #!/bin/bash apt-get update apt-get install -y nginx echo "This hostname of the web server is $HOSTNAME" > /var/www/html/index.nginx-debian.html service nginx start
  • 6.