Sunday, January 31, 2016

windows azure cloud computing - Part 5 : Deploying your application as PAAS

Plan


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 :


 
 
step 4 : navigate to dashboard :


 
 
 
step 5 : download the publish profile, in which you will find  tags of publish Profile for HostAzureApp-Web Deploy and HostAzureApp-FTP. for each one you need to know : publishUrl, userName and userPWD values.



2) Method 1 : using visual studio publish wizard


step 6 : right click on your open web project name, and click on publish button.


step 7 : import your recently downloaded publish profile file.


step 8 : from connection interface : you can verify the  imported credentials and test the connection to your Azure server website. if all goes well, you can click on publish button.


step 9 : Once you are in preview interface, you can start the hosting process by clicking on publish button.



step 10 : Now you can open your given Azure website url on a browser to check if the hosting process is well done.



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 :




Conclusion

I hope that you appreciated my series of tutorial about Microsoft Azure cloud computing, and Thank you for viewing my blog post, and do not hesitate to leave your questions and comments.

No comments:

Post a Comment