Last active
August 9, 2016 13:33
-
-
Save daveyb/d6fa64433077f9d806301b5e527dfbb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Admin Powershell | |
| Set-ExecutionPolicy Unrestricted | |
| #Open Powershell (non-admin, for now) | |
| #Register Chocolatey as OneGet package provider | |
| Get-PackageProvider -Name Chocolatey | |
| #Install Git, node, npm, and vscode | |
| Install-Package git, nodejs, npm, visualstudiocode -force | |
| ** RESTART POWERSHELL ** | |
| #Checkout Example Repo | |
| cd ~\Desktop | |
| mkdir COAzure | |
| cd COAzure | |
| git clone https://github.com/daveyb/ubuntu-docker-aspnet-with-loadbalancer.git | |
| #Open code in VSCode, edit azuredeploy.parameters.json | |
| #Install azurecli | |
| npm install -g azure-cli | |
| #Put azure cli in ARM mode | |
| azure config mode arm | |
| #Login to azure cli | |
| azure login | |
| #Select subscription | |
| azure account set BizSpark # "BizSpark" is the name of my subscription. Insert yours here. You can find all your subscriptions by running `azure account list` | |
| #Create a new resource group | |
| azure group create --name livedemo --location westus | |
| #Kick off the deployment | |
| azure group deployment create --resource-group livedemo --template-file azuredeploy.json | |
| #Grab public IP of LB | |
| azure network public-ip list --resource-group livedemo | |
| #If something goes wrong, remove your resource group and try again | |
| azure group delete livedemo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment