Deploy applications to the Windows azure platform using Visual Studio

Source: Internet
Author: User
Tags visual studio 2010

 

1. Deploy applications to the Windows azure platform using Visual Studio Author: Lei Zhang's blog Source: blog site Release Date: Reading: 32 original article links
[Favorites]

Microsoft deploys applications to the Windows azure platform in three ways:

1) upload an application on the Windows azure management interface. For more information, see

Windows azure platform (10) deploy a local azure project to a cloud server

2) Deploy the Windows azure application through powerlshell. For details, refer to the Microsoft msdn article:

Using powershell to manage windows azure applications

3) deploy applications to the Windows azure platform through Visual Studio. I will give you a detailed introduction here.

 

1. Create a Windows azure Project

First, create a Windows azure project named vs2010publishtoazure and add a web role.

Select project --> right-click --> Publish

 

2. Use Visual Studio 2010 to create a certificate

The publish windows azure application window will pop up later. In "Choose Your subpartition", select Manage

In the displayed windows azure project management Settings dialog box, click "new"

In the Windows azure project management authentication dialog box, select create

In the create certificate dialog box, enter the name myazure and select OK.

Go back to the Windows azure project management Authentication Dialog Box and make sure that the certificate (certificate) We created previously has been selected.

Then select copy the full path. This function copies the created CER file path to the clipboard of your computer.

Then a window will pop up, And we can click OK directly.

Next, we select the Windows azure portal in Windows azure project management authentication. The system opens the browser and opens the Windows azure management interface. Then we enter the user name and password to log on to the system.

Select "managed service, storage account, and CDN" --> Manage certificate --> Add Certificate

In the "Add new certificate management" window, select the Browse button on the right of the "Certificate file", copy the path of the CER file on the clipboard, and select "OK.

In this way, you can upload the local CER (Certificate file) to the server.

Note the subscription ID in the red area. Copy the value of "subscription ID" to the clipboard.

Then return to Visual Studio, copy the value of "subscription ID" to the third "copy the subscribe ID for your account... ", and give credentials a name, we still name it" myazure"

In the Windows azure project management Settings dialog box, you can see the myazure Certificate in your previous status, and then click "close.

 

3. Release the azure Service

In the publish windows azure application dialog box, select subscribe and click "Next.

On the common settings page

1) hosted service indicates the managed service you want to publish

2) environment indicates that you want to use the development environment (staing environment) and production environment (production environment)

3) build configuration indicates whether you want to use the locally compiled debug or release version.

4) service configuration indicates whether you want to use the local cloud configuration file or the local configuration file.

Select "enable remote desktop for all roles" to configure the Remote Desktop Connection for the azure computing node.

In the pop-up "Remote Desktop configuration", we can configure

1) user name is the user name required to configure Remote Desktop Connection

2) password is the password required to configure Remote Desktop Connection

3) Confirm passsword is the password required to re-enter the Remote Desktop Connection

4) account Exporation data is the expiration time of the Remote Desktop Connection.

After the configuration is complete, select "OK"

If our azure project uses Windows azure storage, you can also select the account we need in settings --> advanced settings, such as the red region.

Then we select "Next"

In the final "summary", select "publish" release.

Visual Studio 2010 will establish a connection and publish a local azure project to the Windows azure cloud platform.

We only need to wait until the release is successful!

 

 

Click to view the original article...

Webmaster statistics

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.