IIS Server using DSC extension on a Windows VM

Last updated: 05-11-2015

This template creates a Windows VM and sets up an IIS server using the DSC extension. NOTE: The DSC configuration module needs a SAS token to be passed in if you're using Azure Storage. For DSC module link from Github (default in this template), this is not needed.

This Azure Resource Manager (ARM) template was created by a member of the community and not by Microsoft. Each ARM template is licensed to you under a licence agreement by its owner, not Microsoft. Microsoft is not responsible for ARM templates provided and licensed by community members and does not screen for security, compatibility or performance. Community ARM templates are not supported under any Microsoft support programme or service and are made available AS IS without warranty of any kind.

Parameters

Parameter Name Description
newStorageAccountName Storage Account Name
storageAccountType Type of the Storage Account
vmName Name of the VM
vmSize Size of the VM
imageSKU Image SKU
adminUsername Admin username
adminPassword Admin password
modulesUrl URL for the DSC configuration module. NOTE: Can be a Github url(raw) to the zip file
configurationFunction DSC configuration function to call

Use the template

PowerShell

New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/dsc-extension-iis-server-windows-vm/azuredeploy.json
Install and configure Azure PowerShell

Command line

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/dsc-extension-iis-server-windows-vm/azuredeploy.json
Install and Configure the Azure Cross-Platform Command-Line Interface