Skip to content

Instantly share code, notes, and snippets.

@daveyb
Last active August 9, 2016 13:33
Show Gist options
  • Save daveyb/d6fa64433077f9d806301b5e527dfbb0 to your computer and use it in GitHub Desktop.
Save daveyb/d6fa64433077f9d806301b5e527dfbb0 to your computer and use it in GitHub Desktop.

Revisions

  1. daveyb revised this gist Aug 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion COAzure-Bootstrap-Win10
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,7 @@ azure config mode arm
    azure login

    #Select subscription
    azure account set BizSpark
    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
  2. daveyb revised this gist Aug 9, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion COAzure-Bootstrap-Win10
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ azure login
    azure account set BizSpark

    #Create a new resource group
    azure group create --name livedemo --region westus
    azure group create --name livedemo --location westus

    #Kick off the deployment
    azure group deployment create --resource-group livedemo --template-file azuredeploy.json
  3. daveyb created this gist Aug 8, 2016.
    46 changes: 46 additions & 0 deletions COAzure-Bootstrap-Win10
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    #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

    #Create a new resource group
    azure group create --name livedemo --region 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