How to deploy your Web Application to Microsoft Azure using Visual Studio 2017?
- Get link
- Other Apps
Hello everyone, in my earlier blog I have already explained about "Create and Deploy WebApp in Azure App service". That deployment was done using Visual Studio 2015. Now as you all know that Microsoft has released .Net Core 2.0 and Visual Studio 2017. So, I downloaded Visual Studio 2017 Community Edition to deploy my ASP.Net web application to Microsoft Azure. Here deployment steps are slightly different than what we have in Visual Studio 2015.
Get Started with Azure Development
"Developing applications for Azure is a seamless integrated experience in the IDE you know and love.
Visual Studio 2017 includes all you need to get started developing for Azure. Enable the Azure workload in Visual Studio 2017, and you are good to go."
Reference - https://www.visualstudio.com/vs/azure-tools/
So, if you have not yet downloaded Visual Studio 2017, you may download it from this link.
https://www.visualstudio.com/downloads/
If you are an individual developer then you should download Community Edition only, it supports all IDE features which require for an Individual.
I have already downloaded and installed Visual Studio 2017.

Follow below steps to deploy your Web Application to Microsoft Azure using Visual Studio 2017.
Create a new Web Application. Select Cloud from Installed Template and Select ASP.Net Web Application.

Here I am creating an Empty web application and will add on aspx page to test.
You may select as per your requirement.

Add an aspx page to your Project.
Write your code.
Right click on Project name in solution explorer and select Publish to Microsoft Azure

Visual Studio 2017 will open Publishing screen for you.
If this is the first time you are deploying to Microsoft Azure then select Create New, else "Select Existing"

Once logged in successfully, your subscription and other details will load if you have already done a deployment. Else you have to create new

Click on OK and Publishing will start.

Once publishing action is completed successfully you may browse URL. You may see URL in Publishing wizard. Refer earlier screen shot.
You may notice URL has 4 parts below.
AzureSharePointCafe - This is the name I gave while deploying my first Web Application to Azure service. Please refer earlier screen shot.
AzureWebsites - Added by Microsoft Azure
.net - This is the top level domain or TLD

Now there is one another deployment way in Visual Studio 2017.
Now Right click on Azure Project and select Publish. See highlighted area.

It will prompt for your account details. Login to account if an account is not showing. Click Next.

Now give a name and select a region. Click Next.

You can see your setting in below screen. Click Publish.

Once publishing Done.
Click on Deployment in the bottom area of Visual Studio 2017.

Once Deployment is done successfully, It will show the URL and other details. Just browse the URL and you will start smiling after looking at your browser as your page is running on Microsoft Azure.

If this blog is helpful to you, please write your comment below and subscribe to this blog.
Keep following SharePointCafe.Net for upcoming blogs.
So, if you have not yet downloaded Visual Studio 2017, you may download it from this link.
https://www.visualstudio.com/downloads/
If you are an individual developer then you should download Community Edition only, it supports all IDE features which require for an Individual.
I have already downloaded and installed Visual Studio 2017.
How to deploy Web Application to Microsoft Azure using Visual Studio 2017
Here is the welcome screen of Visual Studio 2017.
Follow below steps to deploy your Web Application to Microsoft Azure using Visual Studio 2017.
Create a new Web Application. Select Cloud from Installed Template and Select ASP.Net Web Application.

Here I am creating an Empty web application and will add on aspx page to test.
You may select as per your requirement.

Add an aspx page to your Project.
Write your code.
Right click on Project name in solution explorer and select Publish to Microsoft Azure

Visual Studio 2017 will open Publishing screen for you.
If this is the first time you are deploying to Microsoft Azure then select Create New, else "Select Existing"

Once logged in successfully, your subscription and other details will load if you have already done a deployment. Else you have to create new

Click on OK and Publishing will start.

Once publishing action is completed successfully you may browse URL. You may see URL in Publishing wizard. Refer earlier screen shot.
You may notice URL has 4 parts below.
AzureSharePointCafe - This is the name I gave while deploying my first Web Application to Azure service. Please refer earlier screen shot.
AzureWebsites - Added by Microsoft Azure
.net - This is the top level domain or TLD

Now there is one another deployment way in Visual Studio 2017.
Microsoft Azure Project in Visual Studio 2017.
You may convert your project into Cloud Azure Project. To do this right click on your project Convert → Convert to Azure.Now Right click on Azure Project and select Publish. See highlighted area.

It will prompt for your account details. Login to account if an account is not showing. Click Next.

Now give a name and select a region. Click Next.

You can see your setting in below screen. Click Publish.

Once publishing Done.
Click on Deployment in the bottom area of Visual Studio 2017.

Once Deployment is done successfully, It will show the URL and other details. Just browse the URL and you will start smiling after looking at your browser as your page is running on Microsoft Azure.

If this blog is helpful to you, please write your comment below and subscribe to this blog.
You may read some popular blogs on SharePointCafe.Net
|
Keep following SharePointCafe.Net for upcoming blogs.
- Get link
- Other Apps
Popular
Top 30 ASP.Net Web API Interview Questions and Answers
In this blog, I have collected interview questions and answers of ASP.Net Web API.
CAML Query Tutorial for SharePoint 2013 and 2010 - A Complete tutorial guide
CAML Query is one of the most important topics in SharePoint. CAML Query is the way for querying items from SharePoint objects like List and Library. This blog is helpful in SharePoint 2010 development as well as in SharePoint 2013 development.
Create a static website using Angular 7 - Step by Step tutorial
ASP.Net Core CRUD example using ADO.Net
How to use multiple layout pages in MVC application?
ASP.Net Web API Security
In the previous blog, I wrote about Routing in Web API. I have also explained, How to create a secure Web API? in my earlier blog. If you are new to ASP.Net Web API then please start from the beginning level. What is ASP.Net Web API?
In this blog, let's discuss the Web API security in details.
In this blog, let's discuss the Web API security in details.
What is Web API? When should we use in our projects?
Web API is the Microsoft open source technology for developing REST services based on HTTP protocol. ASP.Net Web API is a framework for building, consuming HTTP based service. The advantage of Web API is that it can be consumed by a wide range of clients like a web browser and mobile applications.
PowerShell Script to export SharePoint List in Excel File - SharePoint Tutorial
In this blog, I will write about "Export SharePoint list items using PowerShell Script".
How to consume RESTful APi from server side code - C#
SharePoint 2013 Server Object Model (SOM) Programming - SharePoint 2013 Tutorial
SharePoint Server Object Model Programming allows you to write code and communicates with SharePoint objects if you are inside the SharePoint context. It provides a set of classes which is executed at the server-side. Server Object Model Programming is the same in SharePoint 2010 and SharePoint 2013.
Tags
Tags
cloud-computing12
sharepoint-201310
dot-net-core9
sql9
interview8
webservice7
angularjs6
entity-framework6
design-pattern5
linq5
sharepoint-programming5
powershell4
socialmedia4
caml3
rest3
workflow3
ajax2
aws2
html2
infopath2
javascript2
json2
oops2
searchservice2
sharepoint-interview2
soa2
timer job2
website2
3tier1
active-directory1
caching1
devops1
fba1
imageupload1
list1
managed-metadata-service1
metadata1
odata1
page-layout1
performance1
run with elevated1
safecontrol1
security1
sharepoint interview questions1
sharepoint security1
sharepoint-architecture1
sharepoint-branding1
sharepoint-migration1
sharepoint-service1
sharepoint-topics1
sharepointlist1
site-definition1
soap1
uls1
validation1
viewstate1
xml1
Show more
Show less
Comments
Post a Comment
Dear Readers, Please post your valuable feedback in the comment section if you like this blog or if you have any suggestions. I would love to hear the same from you. Thanks