Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Scale and Manage Virtual Machines

DZone's Guide to

Scale and Manage Virtual Machines

Learn how to scale virtual machines on the Azure cloud, including various techniques for interacting with PAAS and IAAS on Microsoft's cloud.

· Cloud Zone
Free Resource

Learn how our document data model can map directly to how you program your app, and native database features like secondary indexes, geospatial and text search give you full access to your data. Brought to you in partnership with MongoDB.

Virtual machines can be scaled and managed using scale sets. Scale sets are essentially a way for you to manage a set of VMs as a single unit. Before scale sets, when you wanted to have a bunch of virtual machines, you would spin them up manually or through some script or something, and then you would have to manage them yourself. But now, scale sets have made it very easy to manage hundreds of virtual machines at a time. You can also visit the Microsoft Azure website to learn more about Virtual Machine Scale Sets and How to Create a Windows Virtual Machine Scale Set using Azure PowerShell.

Part 1: What Are Virtual Machine Scale Sets?

Virtual Machine Scale Sets are a way to deploy and manage a set of identical Virtual Machines. So with Azure infrastructure service if you want fifty virtual machines you normally have to think about networking, storage, extensions, underlying infrastructure and how you configure these virtual machines — virtual machine scale sets give you a way to create many virtual machines and then just configure the properties and manage them as a set.

Scale sets also integrate with Azure Autoscale — this means you can dynamically grow and shrink the pool of virtual machines. Scale sets also integrate with Azure Load Balancer.

Another way to look at scale sets is an Azure Compute resource as part of Azure Resource Manager. Scale sets are scalable computer layer for hyperscale apps — what that means is that if you have a large-scale application with multiple components that uses Microsoft services and has different areas that you can configure, you can use scale sets to be a generalized computer layer. In a similar way scale sets can be used as an infrastructure for Platform as a Service (PaaS).

1 what-are-virtual-machine-scale-sets

Part 2: Building a Scale Set

Go to Azure Quickstart templates on GitHub and select any template. This is a great place to find examples of how to use Virtual Machine Scale Sets.

2-1 Azure-quickstart-templates-GitHub

Click on Deploy to Azure. This will take you to Azure Portal.

2-2 Deployment-of-VM-scale-set

1. You will see Custom Deployment Section. Click on Edit Parameters.

2. Fill out the parameters as per your needs.

3. Click on OK.

4. Create a new Resource group.

5. Type the name for your Resource group.

6. Click on Create.

2-3-scale-set-custom-deployment

7. This is the template deployment. Within that, three separate VMs are going to be made as a set.

2-4-scale-set-deployment-in-progress

8. After deployment, you can see that our resource group is listed on the Azure Portal.

2-5-Resource-Group Microsoft Azure

Conclusion

Scale Sets make very easy to scale virtual machines. They make it very easy to manage and make changes, too. Scale sets are very useful when you want a larger compute unit then just a single VM so what batch will do is it will spin up scale sets of the VMs so that they can think about hundreds of VMs at a time instead of thinking about one VM at a time.

Discover when your data grows or your application performance demands increase, MongoDB Atlas allows you to scale out your deployment with an automated sharding process that ensures zero application downtime. Brought to you in partnership with MongoDB.

Topics:
cloud ,vm ,paas ,iaas ,scaling

Published at DZone with permission of Mohamed Radwan, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}