未加星标

Hosting A Website In Microsoft Azure Using Visual Studio

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Introduction

Creating a Website is one step, but hosting a web site is something different. This article helps you in learning one of the methods to host websites in Visual Studio to Azure. For this purpose, you need a basic subscription in Azure like a dream spark subscription or the free trail.

Creating Web apps in Azure

Login to your Microsoft Azure portal. Now, you have to create a new deployment environment for your website. Hence, you have to create a new web app location. To create a new web app, simply click on the "+" button in the top left corner of the portal. You will then find a bunch of menus. In those, give a unique name for your web app, which will act as a link to access your website. Now, select the resource group, the subscription and click create button. This will now create a new web app in Azure. The screenshots given below will give an idea about it.
Hosting A Website In Microsoft Azure Using Visual Studio
Hosting A Website In Microsoft Azure Using Visual Studio

Downloading the publisher profile

Now, you have created the Web app. Once the app gets completely deployed in the portal, it will be displayed in the dashboard of the portal. Now, click on the web app which you created. When you click in the app, you will get a small menu related to the settings of the application. In this, click on the more option in the top right corner of the page. You will find an option called Download Publisher Profile. Click on the menu and a small file will downloaded. Find the location of the file and it will help you in publishing your website. Look at the screenshot given below for more information.


Hosting A Website In Microsoft Azure Using Visual Studio

Publishing Website from Visual Studio

Let us assume that the small page in the screenshot given below is a website. Let it be the complete website which we want to publish. To publish the site, right click on the project name which you have given to your website in Visual Studio and select the publish option.

Once you click on the publish menu, you will get a small menu. In this menu, click on Import option. You will be asked to select a file. Click on the Browse button and select the small file, which you have downloaded from Azure portal in the beginning. Now, click on the Nextbutton. Now, a small connection testing menu will appear. Don't change anything in the menu. Just click on theValidate button. The connection with Azure port will be checked and if everything is correct, a small green tick will appear. Once the tick mark appears, click on Publish button. The website will now publish. Look at the screenshots for the steps.


Hosting A Website In Microsoft Azure Using Visual Studio
Hosting A Website In Microsoft Azure Using Visual Studio
Hosting A Website In Microsoft Azure Using Visual Studio
Hosting A Website In Microsoft Azure Using Visual Studio
Hosting A Website In Microsoft Azure Using Visual Studio
Completion

As soon as the deployment gets completed, the website gets published in Azure portal. You can click on the link which you gave for your Azure Web app to reach your website in Azure portal. This is how the website can be published in Azure, using Visual Studio. You can use some other different methods to host the Websites. I will share those with you in further articles. Thank you.

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

分页:12
转载请注明
本文标题:Hosting A Website In Microsoft Azure Using Visual Studio
本站链接:http://www.codesec.net/view/523057.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(21)