Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 3.46 KB

README.md

File metadata and controls

78 lines (56 loc) · 3.46 KB

gablogo

Goal

Deploy base artifacts using an ARM template that we'll use throughout the day using the Azure Portal.

Requirements

In an Administrator PowerShell console window, type:

Install-Module -Name AzureRM -RequiredVersion 5.2.0 -Force

Let's code!

Provision environment

Open a PowerShell console and type the following:

Set-Location c:\gab2018\step2\

Login-AzureRmAccount

Enter your credentials

Select the desired subscription using:

Set-AzureRmContext -Subscription 'MySubscriptionName'

Invoke the provisioning by typing:

& .\Invoke-Provisioning.ps1

Presenter: While provisioning is running (~7min), you can show the scripts/templates around...

Provision environment

Open solution in Visual Studio:

Open Visual Studio 2017 and click on the menu File -> Open -> Project/Solution open-solution-menu-in-vs2017

Browse to file ..\Step0\Initial Solution\GlobalAzureBootcamp2018.sln open-solution-dialog

In the Solution Explorer panel, right-click on the solution, then click Restore NuGet Packages restore-nuget-pakages-on-solution

Wait a couple of seconds for the packages restore to complete... nuget-package-restore-finished

One restored, your solution is now ready to be deployed on Azure.

In the Solution Explorer panel, right-click on the web application, then click Publish

In the dialog that appears, ensure Microsoft Azure App Service is selected, then click the Select Existing option and click the Publish button. publish-to-azure-appservice

In the dialog that appears, top right, ensure you are using the right account (if not or not logged yet, Add your account in and select it to continue). Choose the right subscription from the drop-down and in the search box, enter gab2018, this will filter the desired web app if you have many in your subscription. Click the filtered App Service, should have a name with the following pattern gab2018-dev-web-app-* then click the OK button to start the publish process... select-and-publish-to-gab2018-appservice

Wait compilation to complete and publish process to take place. After a while you'll have a browser window that opens to the URL of your web application in Azure. webapp-is-deployed

End

Previous Step Next Step