Microsoft released Technical Preview 2105 last week and it had a bunch of updates, one of which is related to being able to select the size of your CMG virtual machine in Azure as long as it’s configured to use a virtual machine scale set.
When creating a CMG you get to choose how you want to deploy your cloud services, and there are two options available, shown below.
If you choose Virtual machine scale set you get more options to grow than with the older Cloud service (classic) option and indeed, Virtual machine scale set is the default option.
But what are Virtual machine scale sets ? let’s see what Microsoft says about it.
Azure virtual machine scale sets let you create and manage a group of load balanced VMs. The number of VM instances can automatically increase or decrease in response to demand or a defined schedule. Scale sets provide high availability to your applications, and allow you to centrally manage, configure, and update a large number of VMs. With virtual machine scale sets, you can build large-scale services for areas such as compute, big data, and container workloads.
Back to Technical Preview 2105, with this release you can now choose the virtual machine (VM) size when creating a CMG. The following three options are available:
This control gives you greater flexibility with your CMG deployment. You can adjust the size for test labs or if you support large environments. For example, the smaller Lab size is ideal for testing with a smaller number of clients at less cost. For production deployments, either use the default Standard size or add more capacity with the Large size.
Creating a new CMG
Note: Only one type of CMG is supported per site, as per planning docs here. This is a lab and I will remove the Cloud service (classic) CMG shortly due to the documented known issue with the Cloud service (classic). However, for now they’ll be together, but keep in mind, mixing CMG types is not supported.
For this blog post we’ll look at how the process works when creating a new VMSS CMG. So, here we will create a new CMG for the Lab scenario. Labs will get the B2s scale set. If you are wondering what B2s means, see the following.
In the Technical Preview console, navigate to Cloud Services and choose to Create a Cloud Management Gateway.
Tip: If you’d like help with learning how to create a Cloud Management Gateway please check here.
In my screenshot below I’ve logged in to my tenant using my Azure id, and I’m going with the default option of Virtual machine scale set for the new CMG.
Note: I already have a CMG deployed in this tenant, however it is a Cloud services (classic) type, and there’s a known issue with this release which directly affects this type of CMG.
Click Next and point to the extracted pfx certificate and fill in the appropriate details, notice how the VM size has a dropdown menu, and the default is Lab (B2S). Don’t forget to also add your certificate(s) for the cloud service.
Click through the wizard until completion.
In the MEMCM console you’ll see the new CMG has a status of Provisioning and if you look closely you’ll see the Deployment Model is Virtual machine scale set
- The cmgnoob (cloud service (classic)) CMG is having issues even though listed as ‘Ready’ in the console (this is a known issue in TP2105)
- The virtualmachinescaleset (Virtual machine scale set) CMG is not done yet…
If you configured everything correctly after a couple of minutes you’ll see that the deployment of the new CMG is ProvisioningState/succeeded.
and in the console, it’s reflected as being in a status of Ready.
After doing this a couple of times I removed my Cloud service (classic) CMG and replaced it with the Virtual Machine Scale Set CMG. Here’s the end product.
TIP: If you are creating a new CMG using Virtual Machine Scale Set, make sure to check the region and prepend your cname with that, eg: my VMSS CMG region is in West Europe so the Deployment Name is virtualmachinescaleset.westeurope.cloudapp.azure.com and your cname must reflect that otherwise your connection point will fail.
Overall, it’s great to see the CMG advances taking place with Endpoint Manager, here’s to the next Technical Preview.