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.
2. Clicking on the Publish button will open the “Publish Azure Application” window. Go to Sign In tab.
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.
- Cloud Service- You need to choose the right Cloud Service to where you would like to deploy the application.
- Environment- Currently, Cloud Service supports “Production” and “Staging” slots. Select the right slot to where you would like to deploy the application.
- Build Configuration- Obviously, you would choose “Release” mode for building the application while publishing the same.
- 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.
5. Now, click on “Next” to navigate to the following step where you need to uncheck the “Send Diagnostic data to Application insights” option.
It doesn’t matter much whether you select or de-select it. It depends on your choice of handling the issues, if any occur.
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.
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”.
Below is the screen capture of the deployed application in Azure along with the Roles that are running.
Hope you enjoyed reading the article. Your feedback is highly appreciated.