แก้ไข

แชร์ผ่าน


Manage resources for Arc VM on your Azure Stack HCI

Applies to: Azure Stack HCI, version 23H2

This article describes how to manage VM resources such as disks and networks interfaces for an Azure Arc virtual machine (VM) running on your Azure Stack HCI system. You can add or delete data disks and add or delete network interfaces using the Azure portal.

Manage Arc VM resources

Once the Arc VMs are deployed, you may need to manage the VMs. This would require adding or deleting data disks, and adding or deleting network interfaces.

Prerequisites

Before you begin, make sure to complete the following prerequisites:

  • Make sure that you have access to an Azure Stack HCI cluster that is deployed and registered. You should have one or more Arc VMs running on this Azure Stack HCI cluster. For more information, see Create Arc VMs on your Azure Stack HCI.

Add a data disk

After you have created a VM, you may want to add a data disk to it. You can add a data disk via the Azure CLI or the Azure portal.

To add a data disk, you need to first create a disk and then attach the disk to the VM. Follow these steps in Azure CLI of the computer that you are using to connect to your Azure Stack HCI system.

To create a data disk (dynamic) on a specified storage path, run the following command:

az stack-hci-vm disk create --resource-group $resource_group --name $diskName --custom-location $customLocationID --location $location --size-gb 1 --dynamic true --storage-path-id $storagePathid

You can then attach the disk to the VM using the following command:

az stack-hci-vm disk attach --resource-group $resource_group --vm-name $vmName --disks $diskName --yes

Delete a data disk

Follow these steps in Azure portal of your Azure Stack HCI system.

  1. Go to Azure Stack HCI cluster resource and then go to Virtual machines.

  2. From the list of VMs in the right pane, select and go to the VM whose data disk you want to delete.

    Screenshot of delete icon selected for the data disk to delete.

  3. In the confirmation dialog, select Yes to continue.

    Screenshot of confirmation page for the data disk to delete.

  4. Save the changes to delete the specified data disk.

    Screenshot of save selected for the data disk to delete.

  5. You'll see a notification that the disk deletion job has started. Once the disk is deleted, the list refreshes to display the remaining data disks.

Add a network interface

Note

Adding a network interface with static IP after the VM is provisioned is not supported.

Follow these steps in Azure portal of your Azure Stack HCI system.

  1. Go to your Azure Stack HCI cluster resource and then go to Virtual machines.

  2. From the list of VMs in the right pane, select and go to the VM to which you want to add a network interface.

  3. Go to Networking. From the top command bar in the right pane, select + Add network interface.

    Screenshot of + Add network interface option selected in the Networking page for a VM.

  4. In the Add network interface blade, input the following parameters:

    1. Specify a friendly Name for the network interface.
    2. From the dropdown list, select a logical Network to associate with this network interface.
    3. Choose the IPv4 type as DHCP or Static.

    Screenshot of Add network interface with inputs provided for the new network interface for a VM.

  5. Apply the changes to add the specified network interface.

    Screenshot of Apply option selected in the Networking page for a VM.

  6. You'll see a notification that the network interface creation job has started. Once the network interface is created, it is then attached to the Arc VM.

    Screenshot of confirmation page for the new network interface creation in the Networking page for a VM.

  7. The list of network interfaces is updated with the newly added network interface.

    Screenshot of newly refreshed network interface list in the Networking page for a VM.

Delete a network interface

Follow these steps in Azure portal of your Azure Stack HCI system.

  1. Go to your Azure Stack HCI cluster resource and then go to Virtual machines.

  2. From the list of VMs in the right pane, select and go to the VM whose network interface you want to delete.

    Screenshot of VM selected whose network interface you want to delete.

  3. In the confirmation dialog, select Yes to continue.

    Screenshot of deletion confirmation.

  4. Apply the changes to delete the specified network interface. The network interface is dissociated from the Arc VM.

    Screenshot of Apply selected in the Networking page for a VM.

  5. The list of network interfaces is updated with the deleted network interface.

    Screenshot of newly refreshed network interface list for VM.

Next steps