Plan
- Part 1 : Introduction
- Part 2 : Sample CRUD application using Azure tables
- Part 3 : Sample web application using Azure Blobs and Queue
- Part 4 : SQL Azure database
- Part 5 : Deploying your application as PAAS
Introduction
In this chapter, you will learn different method in how you can host your on-premises web application to the public Azure cloud.Using the code
Deployment process :
Before we start migration of our asp.net web application we should verify If our application contains an on-premises SQL Server Database, In this case you should migrate it to the CLOUD. you can follow this tutorial to ensure the migration process : Create SQL Azure DATABASE.after you can change the database connection string of your project to point on new one (SQL Azure Database).
Deploying to Windows Azure Web Sites :
Microsoft Azure makes it simple to publish content with GIT, FTP or your favorite development tool such as Visual Studio, Visual Studio Online and more.In what follow, we will show you two ways for hosting your Asp.net web application :
1) Common steps for two methods :
step 0 : open Visual Studio and create a simple ASP.net application. and build it.step 1 : go to the management portal for Windows Azure (WindowsAzure.com).
step 2 : create a new web site (see below) :
step 3 : click on the web site to manage and configure it :
publishUrl
, userName
and userPWD
values.2) Method 1 : using visual studio publish wizard
3) Method 2 : using FTP
step 6 : copy the FTP Hostname and paste it in windows explorer. In the pop-up window provide the user name and password for deployment :step 7 : folder navigation : Click on Site folder, then click on wwwroot folder.
step 8 : copy the contents of your Asp.net project folder(without obj and properties folders ) above to this folder. This should now look like the below :
No comments:
Post a Comment