In this recipe, we will look at deploying our application to Azure. We will be using Visual Studio 2017 to deploy the application to an Azure App Service.
Make sure you have an Azure account. If not, you can create a free account at azure.microsoft.com
. Also, make sure you have completed the previous recipe. We will need Visual Studio 2017, with its latest updates. Let's get going.
- Open Visual Studio 2017.
- Now, open the solution from the previous recipe. Click
File
|Open
|Open
Project/Solution
, or press Ctrl + Shift + O, and select theChapter12.Azure.WebAppCore
solution.
- The
Solution Explorer
(Ctrl + Alt + L) should look like this:
- Now, right-click on
Chapter12.Azure.WebAppCore
and selectPublish
. - In the
Pick a publish
target
window, selectApp Service
in the left-hand pane andCreate New
in the right-hand pane:
- Click
Publish
.
- Now, in the
Create App Service
screen, supply a properApp Name
, and select aResource Group
and a...