Azure - Provision

Card Puncher Data Processing

About

Code Shipping - Provisioning in Azure

Provisioning happens through VM extension.

Example

Linux

Create a VM with WordPress

# Open port 80 to allow web traffic to host.
az vm open-port --port 80 --resource-group myResourceGroup --name myVM

# Start a CustomScript extension to use a simple bash script to update, download and install WordPress and MySQL 
az vm extension set \
    --publisher Microsoft.Azure.Extensions \
    --version 2.0 \
    --name CustomScript \
    --vm-name myVM \
    --resource-group myResourceGroup \
    --settings '{"fileUris":["https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/wordpress-single-vm-ubuntu/install_wordpress.sh"],"commandToExecute":"sh install_wordpress.sh"}'

Windows

Quick Create a virtual machine with the Azure CLI

# Use CustomScript extension to install IIS.
az vm extension set \
  --publisher Microsoft.Compute \
  --version 1.8 \
  --name CustomScriptExtension \
  --vm-name myVM \
  --resource-group myResourceGroup \
  --settings '{"commandToExecute":"powershell.exe Install-WindowsFeature -Name Web-Server"}'





Discover More
Card Puncher Data Processing
Azure - VM Extension

Azure virtual machine extensions are small applications that provide post-deployment configuration. See



Share this page:
Follow us:
Task Runner