This project includes an Azure Resource Manager (ARM) template for deploying Virtual Machines which are load balanced and configured using the best practices (Vnet, Subnet, Security Groups etc.) outlined in this blog post. Also included is a custom script extension that is executed on the host Windows Server VM that installs IIS & a demo website.
- You will need an active Azure Subscription (free trial)
- You will need Azure Powershell
This is the Azure Resource Manager template to configure 2 or more Virtual Machines in an availability set that are load balanced.
You can deploy this template by running (in Powershell) ./deploy.ps1 -subscriptionId <id> -resourceGroupName <name> -resourceGroupLocation <location> -deploymentName <name>
This is the powershell script which is executed on the host VM after it is created.
NOTE: You will need Windows Management Framework 5.0 on the target server. If running in Azure you should be fine. If you are testing on a local VM you can download it here.
This Powershell script will install Chocolatey, git, and execute the DSC (Desired State Config) webServerConfig
to install IIS, .NET 4.5 & point to this sample web app.
Simply clone this repo and run in Powershell (in Powershell)
./deploy.ps1 -subscriptionId <id> -resourceGroupName <name> -resourceGroupLocation <location> -deploymentName <name>