Deploy Web Application to Azure

This post will detail deploying a website from Visual Studio 2013 to Azure. To follow this post, you will need Visual Studio 2013 and the Azure SDK for .NET. Deploying web applications is very common in Azure, and this is one of the easiest ways to do it.

To install the Azure SDK for .NET, go to https://azure.microsoft.com/en-us/downloads/ and download the “VS 2013 Install” under .NET. Visual Studio 2013 must also be at least Update 3.

Azure Cloud Service

The first step is create an Azure Cloud Service. To do this, launch Visual Studio as an administrator. Create a new Azure Cloud Service project. This can be found under Installed>Templates>Visual Basic>Cloud. Select “Azure Cloud Service”, give it a Name, and click OK.

1

Next, select the role or roles that your website will require. I am going to add ASP.NET to mine. You can also select a different programming language here. I am going to leave mine with Visual Basic.

2

On the next screen, select “Web Forms” and click OK. After that, Visual Studio creates your project. You will two projects in your solution – the Azure Cloud Service and the web site.

Creating the Website

This post will not go into creating the actual website. I am going to modify the default.aspx page to say “Hello World” for this demo. To do that, I open the default.aspx page in design view and type “Hello World” into the first h1 block.

Deploying to Azure

To deploy the web service, we must first connect Visual Studio to Azure. To do that, expand “Server Explorer”, right-click on “Azure”, and select “Connect to a Microsoft Azure Subscription”. Sign in to your Azure account to link the two together.

Next, right-click on the Azure Cloud Service in your solution. Sign in to your Azure subscription if prompted. On the “Microsoft Azure Publish Settings”, set the environment box to production and build configuration to release.

3

On the Advanced Settings page, select the appropriate storage account. This needs to be set up in advance, and should populate when you sign in to Azure. Click Next, confirm your settings, and click publish.

Allow Visual Studio to publish your site. The hyperlink to your site can be found on the “Completed” page.

Disclaimer

All content provided on this blog is for information purposes only. Windows Management Experts, Inc makes no representation as to accuracy or completeness of any information on this site. Windows Management Experts, Inc will not be liable for any errors or omission in this information nor for the availability of this information. It is highly recommended that you consult one of our technical consultants, should you need any further assistant.

Share:

Facebook
Twitter
LinkedIn

Contact Us

On Key

More Posts

Mastering Azure AD Connect - A Comprehensive Guide by WME
Active Directory

Mastering Azure AD Connect – A Comprehensive Guide

Modern businesses are fast moving toward cloud-based infrastructure. In fact, cloud-based business is not just a trend anymore but a strategic necessity. Microsoft’s Azure Active Directory (Azure AD) has become a frontrunner in this domain. It

Read More »
Security Best Practices in SharePoint
Office 365

Security Best Practices in SharePoint

Microsoft SharePoint is an online collaboration platform that integrates with Microsoft Office. You can use it to store, organize, share, and access information online. SharePoint enables collaboration and content management and ultimately allows your teams to

Read More »
The Ultimate Guide to Microsoft Intune - Article by WME
Active Directory

The Ultimate Guide to Microsoft Intune

The corporate world is evolving fast. And with that, mobile devices are spreading everywhere. As we venture into the year 2024, they have already claimed a substantial 55% share of the total corporate device ecosystem. You

Read More »
Protecting Microsoft 365 from on-Premises Attacks
Cloud Security

How to Protect Microsoft 365 from On-Premises Attacks?

Microsoft 365 is diverse enough to enrich the capabilities of many types of private businesses. It complements users, applications, networks, devices, and whatnot. However, Microsoft 365 cybersecurity is often compromised and there are countless ways that

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.