Deploy Worker Role

In this article we can explore Deploying a Worker Role to Azure.

Deployment

There are multiple ways to Deploy your Web Role to Azure:

· Visual Studio Publish

· Azure Portal Upload

Visual studio

Let us start with Visual Studio deployment.

Open the project in Visual Studio & Choose the Cloud Service > Publish option.

image

You will get the prompt to choose the Azure Subscription.

image

Continue the wizard & choose a unique Name.

image

Continue the Wizard.

image

Click the Publish button in the final page of the wizard.

image

Wait for few minutes for the Deployment to be completed.

image

Once the deployment is over, you can click on the Web app URL from the Deployment window.

image

You can also use Azure Portal to upload Deployment Package.

Summary

In this article we have explored Deploying a Worker Role to Azure.

Create Worker Role

In this article we can explore how to create a Worker Role in Azure.

Worker Role

Worker Role does not use IIS.

Worker Role runs the application Standalone.

Worker Role is intended for background processing.

Visual Studio 2017

Open Visual Studio > New Project > Cloud section.

image

Choose the Worker Role from the next page of the wizard.

image

Click OK button to complete the wizard.

image

Modify the Text as highlighted and Your Worker Role is ready!

image

In the next post we can see how to deploy the worker role.

Summary

In this article we have explored creating a Worker Role.

Deploy Web Role

In this article we can explore Deploying a Web Role to Azure.

Deployment

There are multiple ways to Deploy your Web Role to Azure:

· Visual Studio Publish

· Azure Portal Upload

Visual studio

Let us start with Visual Studio deployment.

Open the project in Visual Studio & Choose the Cloud Service > Publish option.

image

You will get the prompt to choose the Azure Subscription.

image

Continue the wizard & choose a unique Name.

image

Click the Publish button in the final page of the wizard.

image

Wait for few minutes for the Deployment to be completed.

image

Once the deployment is over, you can click on the Web app URL from the Deployment window.

You can see the Web Role home page being launched.

image

Azure Portal Upload

In the Azure Portal, Click on the New > Compute > Cloud Service.

image

In the appearing window, enter the web role name & select the deployment package.

image

Deployment package can be found in the Package folder after running the Package command in Visual Studio.

image

Package file is shown below.

image

You can upload the above package to the Azure Portal and Complete the deployment.

References

https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-how-to-create-deploy-portal

Summary

In this article we have explored Deploying a Web Role to Azure.

Create Web Role

In this article we can explore how to create a Web Role in Visual Studio 2017.

Web Role

Web Role is for hosting your application through IIS.

Web Role is intended for Frontend UI applications.

Visual Studio 2017

Open Visual Studio 2017 and go to New Project > Cloud section.

image

In the next page of the wizard, Choose Web Role.

image

Choose MVC as the ASP.NET application type.

image

Click OK to complete the wizard.

You will get the following code in HTML view.

image

Modify the Text and Your Web Role is ready!

image

In the next part we can see how to deploy the web role.

Summary

In this article we have explored creating a web role.