Skip to main content

Azure Virtual Machines (Day 15 of 31)

List of all posts from this series: http://vunvulearadu.blogspot.ro/2014/11/azure-blog-post-marathon-is-ready-to.html

Short Description 
On Microsoft Azure you have the ability to run, manage and use your own Virtual Machine. In this case you have full control to the OS and different configuration at that level. The hardware virtualization give you the possibility to install and run any kind of OS from Windows to different Linux distributions.


Main Features 
Not only Windows OS
Even if we are talking about a cloud solution from Microsoft, we have the ability to run different Linux distributions like Ubuntu or Suse. On top of this there are also other OS that can be used like Openlogic.
Custom VM Image
You have the ability to create your own Virtual Machine image and upload it. The custom image can contains not only the OS, but also the software that you need for your use case.
Scaling
There is support for scaling from 1 or 2 VM to 500 or event 1000 Virtual Machines.
Per Minute billing
Because money are very important, the billing is per minute and not per hours. In this way you will pay only what you use, nothings more.
Load Balancing
There is an out of the box load balancer in front of Virtual Machine that can be used with success to distribute the load cross multiple virtual machines.
Intensive I/O Storage
With the new storage, based on SSDs, you can have a minimum latency (less than 1 millisecond) with 50.000 IOPS.
Large storage
The current infrastructure give us the possibility to have disks that can have in total 32TB of storage.
Pre-Configured VM Images
When you create a VM, you have the ability to use a pre-configured VM, where SharePoint, Oracle, SQLServer, Visual Studio is already installed.
Pay OS or software license on the fly
There are images with different configuration that allow you to use them without having the license of the software that is installed on them. This is possible because the cost of the software license is included in per minute billing.
Auto Scale
There are different ways to scale up or down automatically. For example you ca configure to scale up based on CPU level or at a specific time. Of course the scaling is not only in one way and you can configure rules that allow you to scale also down.
PowerShell 
Because usually ITPros are responsible for Virtual Machine and the infrastructure, the configuration and management API is not only exposed as REST API, but it is also exposed as PowerShell commands.
Disaster Recovery Plan
All the content of VM is replicated automatically in a second data center from the same geographical region. In this way if something happens with the first data center the content is available on the second one.
Different tiers
There is a wide range of tiers configurations that can be used for Virtual Machines. From the small one to the one that are CPU intensive or memory intensive. Because of this you can start from 768MB of memory and go to 112GB of memory and 32 CPU cores.
Run the same image on Azure or on-premises
The same image can be run on Azure or on-premises. You even have the possibility to migrate an existing VM image from one environment to the other one.  

Limitations 
Custom images configuration 
When you need to create your own custom image with different configuration, you will need to manually create an image where you install all the software that you need.

Applicable Use Cases 
Below you can find 3 use cases when I would use VMs.
Migration to cloud
For existing legacy system, there is the possibility to migrate the existing VM to Azure without having to change the software that runs on them. In this way you can reduce the hosting costs and scale more easily without having to rewrite your systems.
Run custom software
If you have custom software to run, than Azure VMs can be the perfect solution for you. You can run a wide variety of OS and configurations on them.
Optimize Cost
If you need VM only for a limited time period, than this may be a good solution for you. When you don’t need to run VMs, you can keep only the image of them on Azure Storage and use it only when you need it.

Code Sample 
-

Pros and Cons 
Pros

  • Scalable
  • PowerShell support
  • Linux and Oracle support
  • Different hardware configuration based on you needs
  • Auto-Scale

Cons
-

Pricing
When you are calculating  the costs of VM you should take into account:

  • Number of VMs and there configuration
  • Storage size
  • Outbound traffic
  • Licensing cost


Conclusion
Azure VMs are a great solution when you need a place to run and manage your own Virtual Machine.

Comments

Popular posts from this blog

Windows Docker Containers can make WIN32 API calls, use COM and ASP.NET WebForms

After the last post , I received two interesting questions related to Docker and Windows. People were interested if we do Win32 API calls from a Docker container and if there is support for COM. WIN32 Support To test calls to WIN32 API, let’s try to populate SYSTEM_INFO class. [StructLayout(LayoutKind.Sequential)] public struct SYSTEM_INFO { public uint dwOemId; public uint dwPageSize; public uint lpMinimumApplicationAddress; public uint lpMaximumApplicationAddress; public uint dwActiveProcessorMask; public uint dwNumberOfProcessors; public uint dwProcessorType; public uint dwAllocationGranularity; public uint dwProcessorLevel; public uint dwProcessorRevision; } ... [DllImport("kernel32")] static extern void GetSystemInfo(ref SYSTEM_INFO pSI); ... SYSTEM_INFO pSI = new SYSTEM_INFO(

ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded

Today blog post will be started with the following error when running DB tests on the CI machine: threw exception: System.InvalidOperationException: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information. at System.Data.Entity.Infrastructure.DependencyResolution.ProviderServicesFactory.GetInstance(String providerTypeName, String providerInvariantName) This error happened only on the Continuous Integration machine. On the devs machines, everything has fine. The classic problem – on my machine it’s working. The CI has the following configuration: TeamCity .NET 4.51 EF 6.0.2 VS2013 It see

Navigating Cloud Strategy after Azure Central US Region Outage

 Looking back, July 19, 2024, was challenging for customers using Microsoft Azure or Windows machines. Two major outages affected customers using CrowdStrike Falcon or Microsoft Azure computation resources in the Central US. These two outages affected many people and put many businesses on pause for a few hours or even days. The overlap of these two issues was a nightmare for travellers. In addition to blue screens in the airport terminals, they could not get additional information from the airport website, airline personnel, or the support line because they were affected by the outage in the Central US region or the CrowdStrike outage.   But what happened in reality? A faulty CrowdStrike update affected Windows computers globally, from airports and healthcare to small businesses, affecting over 8.5m computers. Even if the Falson Sensor software defect was identified and a fix deployed shortly after, the recovery took longer. In parallel with CrowdStrike, Microsoft provided a too