Microsoft Azure - Compute Module
In the last chapter, we explained how to create an Azure account. In this chapter you will find a step by step explanation of each component -
Step 1 - First, sign in to your Azure account.
Step 2 - Click on "New " in the lower left corner and drag your cursor over "Calculate ".
You will now see a list of models under Calculate Model, as shown in the following image.
Create a web application
Step 1 - Click on Web App.
Step 2 - Click on Quick Create and enter the URL and choose a service plan from the drop down list as shown in the following image.
When you return to the main screen, the website has just been created. And when you click on the website url, it takes youra to the website.
The following image shows what your website will look like when you click on the URL.
Likewise, you can choose 'From gallery ' when creating a web application instead of "Quick create ". This will allow you to choose the development framework in which you want to build your application.
Windows Azure supports .Net, Java, PHP, Python, Node.js, and Ruby. There are several ways to publish code to Azure server. It can be published using FTP, FTP, Microsoft Web technology Deploy Various source control tools such as GitHub, Dropbox and Codeplex can also b We used to publish the code. It provides a very interactive interface to track previously released changes and unpublished changes.
Create a virtual machine
Step 1 - Click onon 'Virtual Machine ' in the list.
Step 2 - Then click on 'From Gallery '.
Step 3 - Choose the System or program operation you want to run.
Step 4 - Choose the configuration and fill in the details.
The username and password you set here will be required to access the virtual machine each time .
On the next two screens, you can leave the defaults enabled for t The first time.
Step 5 - The virtual machine you just created will be displayed when you click "Virtual Machine" in the left pane as shown in the following image. It may take a few minutes to appear.
Step 6 - Once the machine is created, you can connect to it by clicking son the connection icon displayed at the bottom of the screen. It will save a .rpd file to your machine as shown in the following image. Choose 'save file ' on the screen and it will save in 'downloads ' or in the defined location on your machine.
Step 7 - Open this .rpd file and you can connect to the VM by filling in the credentials in the next screen.
You can also use your own image by capturing the image of an existing virtual machine or virtual hard disk. Virtual machines are beneficial in several ways.
A user can try a new operating system without installing them.
A VM can be deleted when you are done with the operating system.
New versions of an operating system can be tried andtested before user installs them on the machine.
VM provides a very economical and hassle-free way to use a development framework or tool that runs on a specific version of the operating system.
Creating a mobile service
The mobile services compute hosting model is optimized to provide a cloud backend for applications that run on mobile devices. To create a mobile service -
Step 1 - Select Mobile services under Calculate and click on create. A new window w will not be opened as shown in the following image.
Step 2 - Fill in the URL. Select the database, region and backend.
Step 3 - Check the box if you want to configure advanced push parameters. option allows us to configure our mobile service to use a notification hubon existing or specify the name of a new one. If you leave this box unchecked, a new hub will be created in a new namespace with a default name.
Creating a batch service
A batch service is needed when a large scale application is running and high performance parallel computing is required. Developers can create batches to run a task in parallel which eases the workload at no additional cost. Azure only charges for virtual machines used. They can schedule a task, put them in queues, and manage the workload in the cloud. Creating batches is not done volve by setting up a separate VM, cluster, or job schedule.
To create a batch processing service, follow the similar steps to create other services under the calculation model. The following image shows how to quickly create a servicebatch.
Once you have created a batch service, you can see the details by selecting it in the left panel. The following image appears at screen.