Use VM images to create Arc virtual machines on Azure Stack HCI (preview)

Applies to: Azure Stack HCI, versions 22H2 and 21H2

This article describes how to create an Arc VM starting with the VM images that you've created on your Azure Stack HCI cluster. You can create Arc VMs using the Azure portal.

Important

This feature is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

About Azure Stack HCI cluster resource

You can use the Azure Stack HCI cluster resource page for the following operations:

  • You can create and manage Arc VM resources such as VM images, disks, network interfaces.
  • You can use this page to view and access Azure Arc Resource Bridge and Custom Location associated with the Azure Stack HCI cluster.
  • You can also use this page to provision and manage Arc VMs.

The procedure to create Arc VMs is described in the next section.

Prerequisites

Before you create an Azure Arc-enabled VM, make sure that the following prerequisites are completed.

Create Arc VMs

Follow these steps in the Azure portal to create an Arc VM on your Azure Stack HCI cluster.

  1. Go to Resources (Preview) > Virtual machines.

  2. From the top command bar, select + Create VM.

    Screenshot of select + Create VM.

  3. In the Create an Azure Arc virtual machine wizard, on the Basics tab, input the following parameters:

    1. Subscription – The subscription is tied to the billing. Choose the subscription that you want to use to deploy this VM.

    2. Resource group – Create new or choose an existing resource group where you'll deploy all the resources associated with your VM.

    3. Virtual machine name – Enter a name for your VM. The name should follow all the naming conventions for Azure virtual machines.

      Important

      VM names should be in lowercase letters and may use hyphens and numbers.

    4. Custom location – Select the custom location for your VM. The custom locations are filtered to only show those locations that are enabled for your Azure Stack HCI.

    5. Image – Select the Marketplace or customer managed image to create the VM image. If you selected a Windows image, provide a username and password for the administrator account. For Linux VMs, provide SSH keys.

    6. Virtual processor count – Specify the number of vCPUs you would like to use to create the VM.

    7. Memory – Specify the memory in GB for the VM you intend to create.

    8. Memory type – Specify the memory type as static or dynamic.

      Screenshot showing how to Create a VM.

    9. Administrator account: Specify the username and the password for the administrator account on the VM.

    10. Enable guest management - Select the checkbox to enable guest management. You can install extensions on VMs where the guest management is enabled.

      Note

      • You can't enable guest management via Azure portal if the Arc VM is already created.
      • Add atleast one network interface through the Networking tab to complete guest management setup.

      Screenshot guest management enabled during Create a VM.

  4. (Optional) Create new or add more disks to the VM by providing a name and size. You can also choose the disk type to be static or dynamic.

  5. (Optional) Create or add network interface (NIC) cards for the VM by providing a name for the network interface. Then select the network and choose static or dynamic IP addresses.

    Note

    If you enabled guest management, you must add at least one network interface.

    Screenshot of network interface added during Create a VM.

  6. (Optional) Add tags to the VM resource if necessary.

  7. Review all the properties, and then select Create. It should take a few minutes to provision the VM.

Next steps