Azure Cloud Service - Deploy Application Using Visual Studio

This article is a part of a series of articles related to one of the Azure Compute options, “Cloud Services”.

 
In our previous articles, we have learned how to create, package, and scale up the size of the required VMs. In this article, we will learn how to deploy the Cloud Service application, using Visual Studio.

1. Navigate to your Cloud Service project, right click on its name, and click on “Publish”, as shown below.

Publish

2. Clicking on the Publish button will open the “Publish Azure Application” window. Go to Sign In tab.

Publish Azure Application

3. In the “Sign In” tab, you would need to log into your Azure Account . Here, select your subscription type and click on “Next”.

4. In the “Settings” tab, select the following. 
  1. Cloud Service- You need to choose the right Cloud Service to where you would like to deploy the application.
  2. Environment- Currently, Cloud Service supports “Production” and “Staging” slots. Select the right slot to where you would like to deploy the application.
  3. Build Configuration- Obviously, you would choose “Release” mode for building the application while publishing the same.
  4. Service Configuration- As we have already learned about different types (Development/Staging/Production) of Service Configuration files, you need to choose the right one before publishing the application.

Settings

5. Now, click on “Next” to navigate to the following step where you need to uncheck the “Send Diagnostic data to Application insights” option.

navigate

It doesn’t matter much whether you select or de-select it. It depends on your choice of handling the issues, if any occur.

6. Now, click “Next” to review all the configuration settings, as shown below.

configuration settings

7. After you have reviewed all the required steps, click on “Publish” button to create the "Cloud Service Package" file. After a few seconds, Visual Studio will build all the Roles and create the Package file with its dependencies. You can review the deployment process and its progress in the “Microsoft Azure Activity Log” as shown below.

Publish

After a few minutes (time depending on the number of Roles and its instances that you have in your Cloud Service), the application will be deployed to your Cloud Service on Azure.

Once everything is complete, you will see the status as “Completed”.

Completed

Below is the screen capture of the deployed application in Azure along with the Roles that are running.

screen

Hope you enjoyed reading the article. Your feedback is highly appreciated.


Similar Articles