Blog Post

ITOps Talk Blog
3 MIN READ

How to use Azure to manage virtual machines on Azure Stack

thomasmaurer's avatar
thomasmaurer
Icon for Microsoft rankMicrosoft
Oct 31, 2019

You cannot only take advantage of Azure IaaS features on Azure Stack during the migration of your workloads, but you can also get some benefits if are running virtual machines on Azure Stack IaaS. If you are running virtual machines on Azure Stack, you will get not just features like Azure Resource Manager and the Azure Stack Marketplace, you also get extensions and integration like Azure Update Management.

 

 

How to integrate Azure Update Management for Azure Stack VMs

 

Today, the Azure Update and Configuration Management extension gives you the following features:

  • Update Management – With the Update Management solution, you can quickly assess the status of available updates on all agent computers and manage the process of installing required updates for these Windows VMs.
  • Change Tracking – Changes to installed software, Windows services, Windows registry, and files on the monitored servers are sent to the Log Analytics service in the cloud for processing. Logic is applied to the received data and the cloud service records the data. By using the information on the Change Tracking dashboard, you can easily see the changes that were made in your server infrastructure.
  • Inventory – The Inventory tracking for an Azure Stack Windows virtual machine provides a browser-based user interface for setting up and configuring inventory collection.

 

If you want to use Azure Update Management and more on VMs on-premise (without Azure Stack) or running at another Cloud Provider, you can do this as well. Have a look at Windows Admin Center, which allows you to directly integrate with Azure Update Management. However, there will be a difference in pricing.

 

Prepare Azure environment for Azure Update Management on Azure Stack

 

To use Azure Update Management with Azure Stack VMs, you will need to have a Log Analytics Workspace and an Azure Automation Account in Azure.

 

Azure Update Management

 

 

 

To enable this for your Azure VM, you can simply go to the VM, select Update Management and configure the VM with your Log Analytics workspace and Automation account. You can do this for Inventory and Change tracking as well.

 

Add the Azure Update and Configuration Management Extension in the Azure Stack Administration portal

 

 

 

To use Azure Update and Configuration Management on your Azure Stack, you will need to add the extension from Azure. This can be done directly in the Azure Stack Administration portal using marketplace syndication.

Enable Azure Update and Configuration Management for a VM on Azure Stack

 

 

Now you can enable Azure Update and Configuration Management on your virtual machines on Azure Stack. All you need is the Log Analytics WorkspaceID as well as a Workspace Key, to connect your on-premies VM to Azure Log Analytics. You can find the Workspace ID and the Primary Key, in the Azure Portal, in your Log Analytics Workspace under Advanced Settings.

 

Login to the Azure Stack Portal, select the VM you want to use Update Management, and click on Extensions. After that click on the Add button.

 

Select the Azure Stack Azure Update and Configuration Management Extension and click on Create.

 

You can enter the Workspace ID and the key, to connect your virtual machines to the Log Analytics workspace.

 

 

If everything worked the VM will show up in the Update management in your automation account in your Update Management Solution. As you also can see both VMs are detected as Azure VMs, so not only can they be managed directly from Azure, the also have the same pricing.

You can also use Azure Resource Manager (ARM) Templates to deploy Update Management on Azure Stack VMs. For more information check out the documentation page.

 

Azure Stack Migration Series

 

You can find the full playlist with the complete Azure Stack Migration video series on YouTube.

 

Updated Oct 28, 2019
Version 1.0