Azure - Provision

Card Puncher Data Processing


Code Shipping - Provisioning in Azure

Provisioning happens through VM extension.



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":[""],"commandToExecute":"sh"}'


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