Learn how you can create and publish your very first web application to well-known cloud provider, Azure using Visual Studio 2017.
Throughout this tutorial, you should be able to launch a website on Azure's App Service within few couple of minutes.
By Marvin Heng
Twitter: @hmheng
Blog: www.techconnect.io
Breaking the Kubernetes Kill Chain: Host Path Mount
Cloud: Publish First Web Application to Azure Using Visual Studio
1. Publish First Web
Application to
Azure Using Visual
Studio
Marvin Heng
Twitter : @hmheng
Blog : http://hmheng.azurewebsites.net
Github: https://github.com/hmheng
2. Pre-requisite
• Installed Visual Studio 2017 for Windows with C# ASP.NET
Core & Web-related component,
• A Microsoft Azure account.
3. Introduction to Visual Studio 2017
• The First Class fully-featured integrated development
environment (IDE) for Android, iOS, Windows, web, and
cloud development.
• Community free version comes with IntelliSense &
connects to team management tools, such as Microsoft
Team Services or GitHub, that increases developer’s
efficiency & improves the experience.
• Available on Windows & MacOS.
4. Introduction to Visual Studio 2017
Download & Install VS2017
on your PC or Mac if you don’t have one yet.
CLICK TO DOWNLOAD
COMMUNITY VERSIONfor Free
5. Create a Microsoft Azure Account
If you do not have any Azure account,
click to learn how to create one for FREE here today!
6. Publish First Web Application to Azure
1. After you have installed Visual Studio 2017 (VS2017) with
Web Component, launch it.
7. Publish First Web Application to Azure
2. Once launched VS2017, click “Sign In”.
2
8. Publish First Web Application to Azure
3. Enter the email of Azure account & follow the steps given
to sign in with your Azure account.
3
9. Publish First Web Application to Azure
4. Now, you should see your username shown on the right top
corner.
4
10. Publish First Web Application to Azure
5. Select File -> New -> Project….
5
11. Publish First Web Application to Azure
6. Choose ASP.NET Core Web Application
7. Enter your project name (Eg. MyFirstWebApp) & click OK.
6
7
12. Publish First Web Application to Azure
8. Make sure .NET Core & ASP.NET Core 2.0 in selected.
9. Select “Web Application(Model-View-Controller)” & Click OK
8
9
13. Publish First Web Application to Azure
10. After couples of minutes, you should see the screen
below. Click “IIS Express”to test run on your PC.
10
14. Publish First Web Application to Azure
11. You should see your App is running on a localhost address.
11
15. Publish First Web Application to Azure
12. Go back to the VS & stop debugging, click “Solution
Explorer” on the right. You should see list of project files.
12
16. Publish First Web Application to Azure
13. Right click your project’s name.
14. Click “Publish…”
13
14
17. Publish First Web Application to Azure
15. Select Microsoft Azure App Service & Create New
16. Click “Publish”
15
16
18. Publish First Web Application to Azure
17. Leave everything as default & click “Create”. Definitely,
you are free to choose your preferred App Name.
17
19. Publish First Web Application to Azure
18. It takes a while for the deployment preparation.
20. Publish First Web Application to Azure
19. After that, the VS2017 should start publishing.
21. Publish First Web Application to Azure
20. When the publish is completed, you would see the
following message on Output screen & it launches on Browser.
20
22. Publish First Web Application to Azure
21. Now, you should notice, it runs on Azure App Service &
you would have your Web App running on Azure successfully.
21
24. Publish First Web
Application to
Azure Using Visual
Studio
Marvin Heng
Twitter : @hmheng
Blog : http://hmheng.azurewebsites.net
Github: https://github.com/hmheng