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.

Azure Developer Tools

In this article we can explore about Azure Developer Tools.

Azure Developer Tools

Azure Development can be done in multiple ways:

  • Visual Studio
  • Visual Studio 2017
  • Visual Studio 2015
  • Visual Studio Online
  • Visual Studio Code

NuGet Packages

In Visual Studio we may require additional nuget packages. You can download them from:

https://azure.microsoft.com/en-in/tools/

Command Line Tools

Following command line tools are available to work with Azure:

· Azure PowerShell

· Azure CLI (Command Line Interface)

Other Tools

Azure Development occasionally requires Other Tools as listed below:

· Azure Storage Explorer

· Azure Service Fabric SDK

· SQL Azure Migration Wizard

Visual Studio 2017

Let us take a look on Visual Studio 2017. You can download from:

https://www.visualstudio.com/downloads/

image

image

For the time being I will be using Visual Studio 2017.

References

https://azure.microsoft.com/en-in/tools/

Summary

In this article we have explored about Azure Developer Tools.

Azure Storages

In this article we can explore about Azure Storage.

Azure Storage

Azure Storage is a Microsoft managed Cloud Service.

Azure Storage is highly available, secured, durable, scalable and redundant.

Data Services

Azure Storage now contains 3 Data Services:

· Blob Storage

· File Storage

· Queue Storage

Blob Storage

Blobs are basically Files like excel, pictures etc.

Blobs are stored inside Containers similar to Folders.

Blob Storage provides URLs for Universal access.

File Storage

File Storage is like Network File Share.

File Storage uses SMB (Server Message Block) protocol.

File Storage provides URLs for Universal access.

Queue Storage

Queue Storage is to store messages.

Queues Storage is meant for Asynchronous communications.

image

More Storages

Additional to above storages there are:

· Table Storage for storing structure data

· Disk Storage for storing disks

image

References

https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction

Summary

In this article we have explored about Azure Storage.

Azure Cloud Types

In this article we can explore about Azure Cloud Types.

Cloud Type

Cloud Type determines the type of date, hosting & security aspects.

There are 3 Cloud Types in Azure:

· Public

· Private

· Hybrid

Public Cloud

Public is the default Cloud Type.

Public Cloud is available to General Public.

Public Cloud hosting is owned & managed by Microsoft.

Public Cloud is cheaper.

Public Cloud is less secure for sensitive data.

Private Cloud

Private Cloud offers more security to sensitive data.

Private Cloud is owned & managed by Single company.

Private Cloud is expensive.

Hybrid Cloud

Hybrid Cloud is combination of Public & Private cloud.

Hybrid Cloud offers right mix of cost & security.

image

image

Sensitive Data is a critical decision-making part in Cloud Type determination. For example, a client may have sensitive data like Names, Social Security Identification information, Private Accounting data etc. which they do not wanted another company to manage, not even Microsoft. Also, a company may have legal agreements with their clients that the client data will not be stored outside the country. In these cases, Azure offers Private cloud to the company where they can run the Azure infrastructure in the company owned servers & managed by company team. In this way Scalability, Availability & Flexibility of Azure platform can be reused while the Data Security is also addressed.

References

https://azure.microsoft.com/en-in/overview/what-are-private-public-hybrid-clouds/

Summary

In this article we have explored Azure Cloud Types.

Cloud Service Roles

In this article we can explore about Cloud Service Roles.

Cloud Services

Cloud Services are highly available, scalable, n-tier cloud apps with more control of the OS.

Cloud Service Roles

There are 2 types of Roles in Cloud Services.

· Web Role

· Worker Role

image

Web Role

Web Role is for hosting your application through IIS.

Web Role is intended for Frontend UI applications.

Worker Role

Worker Role does not use IIS.

Worker Role runs the application Standalone.

Worker Role is intended for background processing.

References

https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-choose-me

Summary

In this article we have explored about Cloud Service Roles.

Azure Hosting Models

In this article we can explore about Azure Hosting Models.

Compute Options

Azure provides the following Compute Options.

· App Service

· Cloud Service

· Virtual Machines

image

App Service

App Service is preferred if you want to host Apps like Web Apps, Mobile Apps etc.

App Service provides Scalability.

App Service is best for Single-tier applications.

App Service is cheaper.

Cloud Service

Cloud Service is preferred for n-tier applications.

Cloud Service provides High Availability & Scalability.

Cloud Service provides more control over the OS.

Cloud Service contains Web Roles and Worker Roles

image

Cloud Service allows us to specify the Count of Web Roles and Worker Roles required.

Virtual Machines

Virtual Machines are fully customized Windows or Linux VMs.

Virtual Machines provides complete control.

Virtual Machines are more expensive.

image

Initially Web Role, Worker Role & VM Role were the 3 Roles in Azure. Now VM Role is moved out of Roles and added under Hosting Models.

References

https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-choose-me

Summary

In this article we have explored about Azure Hosting Models.