Deploy base artifacts using an ARM template that we'll use throughout the day using the Azure Portal.
- Azure PowerShell Module version 5.xx
- Visual Studio 2017
In an Administrator PowerShell console window, type:
Install-Module -Name AzureRM -RequiredVersion 5.2.0 -Force
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...
Open solution in Visual Studio:
Open Visual Studio 2017 and click on the menu File -> Open -> Project/Solution
Browse to file ..\Step0\Initial Solution\GlobalAzureBootcamp2018.sln
In the Solution Explorer panel, right-click on the solution, then click Restore NuGet Packages
Wait a couple of seconds for the packages restore to complete...
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.
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...
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.