> ## Content Index
> Fetch the complete content index at: https://www.techielass.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Automatic virtual machine activation
- URL: https://www.techielass.com/automatic-virtual-machine-activation/
- Published: 2021-08-10T07:00:00.000Z
- Updated: 2024-11-26T14:42:27.000Z
- Description: Learn how to automatically activate your virtual machines within your Windows Server Hyper-V host and your Azure Stack HCI cluster
- Author: Sarah Lean
- Tags: Windows Admin Centre, Windows Server, Azure Stack HCI, Azure Local

[Automatic virtual machine activation](https://docs.microsoft.com/en-gb/windows-server/get-started-19/vm-activation-19?WT.mc%5Fid=modinfra-35336-salean&ref=techielass.com) (AVMA) was released in in Windows Server 2012 R2\. It's a great feature that allows you to input your server license keys into the host and then subsequently all your virtual machines inherit that key, meaning you don't have to manage individual server licenses or activations. 

Microsoft recently announced that this feature is now available within your [Azure Stack HCI](https://www.techielass.com/azure-stack-hci-the-best-of-the-cloud-and-on-premises/) hosts. 

### Requirements

You should be running Hyper-V on Windows Server 2019 Datacenter, Windows Server 2016 Datacenter, or Windows Server 2012 R2 or Azure Local (previously named Azure Stack HCI). 

You can use AVMA through PowerShell on a Hyper-V server, but with Azure Local (previously named Azure Stack HCI) you have the option to use it via PowerShell and Windows Admin Centre, as long as you have the [June 2021 cumulative update](https://www.catalog.update.microsoft.com/Search.aspx?q=KB5003643&ref=techielass.com) installed. 

### AVMA with PowerShell

You can enter the key through this simple elevated PowerShell command: 

```PowerShell
slmgr /ipk <AVMA_key>

```

You can find the AVMA keys that you need to enter [here](https://docs.microsoft.com/windows-server/get-started-19/vm-activation-19?WT.mc%5Fid=modinfra-35336-salean&ref=techielass.com#avma-keys). *(Obviously you need to have purchased the right licenses to be able to use these ultimately.* 😉*)*

### AVMA with Windows Admin Centre

With the June 2021 cumulative update you now have the ability to apply the key through [Windows Admin Centre](https://docs.microsoft.com/windows-server/manage/windows-admin-center/overview?WT.mc%5Fid=modinfra-35336-salean&ref=techielass.com) on your Azure Local (previously named Azure Stack HCI) cluster. 

This can be found within the Settings blade of your Windows Admin Centre. 

![Azure Stack HCI Windows Admin Centre key activation](https://storage.ghost.io/c/08/96/08960c71-63a2-449b-91b1-8d4628166dd2/content/images/2021/07/azurestackhci-1-automatic-vm-activation.png)

Azure Stack HCI Windows Admin Centre key activation

### Give a whirl and let me know what you think!