Proposed Pull Request Change

title description services author ms.service ms.topic ms.date ms.author ms.custom
Deploy VMs on your Azure Stack Edge Pro GPU via the Azure portal Learn how to create and manage VMs on your Azure Stack Edge Pro GPU via the Azure portal. databox alkohli azure-stack-edge how-to 06/12/2025 alkohli ['linux-related-content', 'sfi-image-nochange']
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Deploy VMs on your Azure Stack Edge Pro GPU via the Azure portal description: Learn how to create and manage VMs on your Azure Stack Edge Pro GPU via the Azure portal. services: databox author: alkohli ms.service: azure-stack-edge ms.topic: how-to ms.date: 06/12/2025 ms.author: alkohli ms.custom: - linux-related-content - sfi-image-nochange # Customer intent: As an IT admin, I need to understand how to configure compute on an Azure Stack Edge Pro GPU device so that I can use it to transform data before I send it to Azure. --- # Deploy VMs on your Azure Stack Edge Pro GPU device via the Azure portal [!INCLUDE [applies-to-GPU-and-pro-r-and-mini-r-skus](../../includes/azure-stack-edge-applies-to-gpu-pro-r-mini-r-sku.md)] You can create and manage virtual machines (VMs) on an Azure Stack Edge Pro GPU device by using the Azure portal, templates, and Azure PowerShell cmdlets, and via the Azure CLI or Python scripts. This article describes how to create and manage a VM on your Azure Stack Edge Pro GPU device by using the Azure portal. > [!IMPORTANT] > You'll need to enable multifactor authentication for the user who manages the VMs and images that are deployed on your device from the cloud. The cloud operations fail if the user doesn't have multifactor authentication enabled. For steps to enable multifactor authentication, see [Enable Microsoft Entra multifactor authentication](/training/modules/secure-aad-users-with-mfa/4-exercise-mfa). ## VM deployment workflow The high-level summary of the deployment workflow is as follows: 1. Enable a network interface for compute on your Azure Stack Edge device. This step creates a virtual switch on the specified network interface. 1. Enable cloud management of VMs from the Azure portal. 1. Upload a VHD to an Azure Storage account by using Azure Storage Explorer. 1. Use the uploaded VHD to download the VHD onto the device, and create a VM image from the VHD. 1. Use the resources created in the previous steps: 1. VM image that you created. 1. Virtual switch associated with the network interface on which you enabled compute. 1. Subnet associated with the virtual switch. And create or specify the following resources inline: 1. VM name, choose a supported VM size, sign-in credentials for the VM. 1. Create new data disks or attach existing data disks. 1. Configure static or dynamic IP for the VM. If you're providing a static IP, choose from a free IP in the subnet range of the network interface enabled for compute. Use the preceding resources to create a VM. ## Prerequisites Before you begin to create and manage VMs on your device via the Azure portal, make sure that: 1. You complete the network settings on your Azure Stack Edge Pro GPU device as described in [Step 1: Configure an Azure Stack Edge Pro GPU device](./azure-stack-edge-gpu-connect-resource-manager.md#step-1-configure-azure-stack-edge-device). 1. You enable a network interface for compute. This network interface IP is used to create a virtual switch for the VM deployment. In the local UI of your device, go to **Compute**. Select the network interface that you use to create a virtual switch. > [!IMPORTANT] > You can configure only one port for compute. 1. Enable compute on the network interface. Azure Stack Edge Pro GPU creates and manages a virtual switch corresponding to that network interface. 1. You have access to a Windows or Linux VHD that you use to create the VM image for the VM you intend to create. ## Deploy a VM Follow these steps to create a VM on your Azure Stack Edge Pro GPU device. ### Add a VM image 1. Upload a VHD to an Azure Storage account. Follow the steps in [Use Storage Explorer for upload](azure-stack-edge-gpu-deploy-virtual-machine-templates.md#use-storage-explorer-for-upload). For information about preparing the VHD, see [Prepare a generalized image from a Windows VHD](azure-stack-edge-gpu-prepare-windows-vhd-generalized-image.md). [Troubleshoot VM image uploads](azure-stack-edge-gpu-troubleshoot-virtual-machine-image-upload.md). 1. In the Azure portal, go to the Azure Stack Edge resource for your device. Then go to **Edge services** > **Virtual machines**. ![Screenshot showing the Overview pane of an Azure Stack Edge device, with the Virtual machines option, under Edge Services, highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-1.png) 1. On the **Overview** page, select **Enable** to enable virtual machine cloud management. ![Screenshot of the Overview pane in Virtual Machines view for an Azure Stack Edge device. The Enable button, to enable VM cloud management, is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-2.png) 1. The first step is to add a VM image. You already uploaded a VHD into the storage account in the earlier step. Use this VHD to create a VM image. Select **+ Add image** to download the VHD from the storage account and add it to the device. The download process takes several minutes depending on the size of the VHD and the internet bandwidth available for the download. ![Screenshot of the Overview pane for Virtual Machines, with the Plus Add Image button highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-3.png) 1. On the **Add image** pane, make the following field entries. Then select **Add**. |Field |Description | |---------|---------| |Download from storage blob |Browse to the location of the storage blob in the storage account where you uploaded the VHD. | |Download to | Automatically set to the current device where you're deploying the VM. | |Edge resource group |Select the resource group to add the image to. | |Save image as | The name for the VM image that you're creating from the VHD you uploaded to the storage account. | |OS type |Choose from Windows or Linux as the operating system of the VHD you use to create the VM image. | |VM generation |Choose Gen 1 or Gen 2 as the generation of the image you use to create the VM. For Gen 2 VMs, secure boot is enabled by default. | ![Screenshot showing the Add image page for a virtual machine with the Add button highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-6.png) 1. The VHD is downloaded, and the VM image is created. Image creation takes several minutes to complete. You see a notification for the successful completion of the VM image.<!--There's a fleeting notification that image creation is in progress, but I didn't see any notification that image creation completed successfully.--> ![Screenshot of the Overview for Virtual machines on an Azure Stack Edge device. On the Images pane, a newly created VM is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-8.png) 1. After the VM image is successfully created, it's added to the list of images on the **Images** pane. ![Screenshot that shows the Images pane in Virtual Machines view of an Azure Stack Edge device.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-9.png) The **Deployments** pane updates to indicate the status of the deployment. ![Screenshot showing the Deployments pane in Virtual Machines view of an Azure Stack Edge device. The entry for a deployed VM is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-10.png) The newly added image is also displayed on the **Overview** page. ![Screenshot that shows the Overview pane for Virtual Machines on an Azure Stack Edge device. A newly added VM image is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-image-11.png) ### Add a VM Follow these steps to create a VM after you've created a VM image. 1. On the **Overview** page for **Virtual machines**, select **+ Add virtual machine**. ![Screenshot that shows the Overview pane for virtual machines on an Azure Stack Edge device. The Plus Add Virtual Machine button is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-1.png) 1. On the **Basics** tab, input the following parameters. |Parameter |Description | |---------|---------| |Virtual machine name | Enter a name for the new virtual machine. | |Edge resource group | Create a new resource group for all the resources associated with the VM. | |Image | Select from the VM images available on the device. | |Size | Choose from the [Supported VM sizes](azure-stack-edge-gpu-virtual-machine-sizes.md).<br>For a GPU VM, select a [VM size from NCasT4-v3-series](azure-stack-edge-gpu-virtual-machine-sizes.md#n-series-gpu-optimized). | |Username | Use the default username **azureuser** for the admin to sign in to the VM. | |Authentication type | Choose from an SSH public key or a user-defined password. | |SSH public key | Displayed when you select the **SSH public key** authentication type. Paste in the SSH public key. | |Password | Displayed when you select the **Password** authentication type. Enter a password to sign in to the VM. The password must be at least 12 characters long and meet the defined [complexity requirements](/azure/virtual-machines/windows/faq#what-are-the-password-requirements-when-creating-a-vm-). | |Confirm password | Enter the password again. | ![Screenshot showing the Basics tab in the Add Virtual Machine wizard for Azure Stack Edge. The Basics tab and the Next: Disks button are highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-basics-1.png) Select **Next: Disks**. 1. On the **Disks** tab, attach disks to your VM. 1. You can choose to **Create and attach a new disk** or **Attach an existing disk**. ![Screenshot showing the Disks tab in the Add Virtual Machine wizard for Azure Stack Edge. The Create and attach a new disk option is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-disks-1.png) 1. Select **Create and attach a new disk**. On the **Create new disk** pane, provide a name for the disk and the size in GiB. ![Screenshot showing the "Create a new disk" screen in "Add a virtual machine" for Azure Stack Edge. The OK button is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-disks-2.png) 1. Repeat the preceding process to add more disks. After the disks are created, they show up on the **Disks** tab. Select **Next: Networking**. 1. On the **Networking** tab, configure the network connectivity for your VM. |Parameter |Description | |---------|---------| |Virtual network | From the dropdown list, select the virtual switch created on your Azure Stack Edge device when you enabled compute on the network interface. | |Subnet | This field is automatically populated with the subnet associated with the network interface on which you enabled compute. | |IP address | Provide a static or a dynamic IP for your VM. The static IP should be an available, free IP from the specified subnet range. | ![Screenshot of the Networking tab in "Add a Virtual Machine" for Azure Stack Edge. The Networking tab and the Next:Advanced button are highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-networking-1.png) Select **Next: Advanced**. On the **Advanced** tab, you can select an extension to install during VM deployment, and you can specify a `cloud-init` script to customize your VM. 1. If you want to install an extension on your VM when you create it, choose **Select an extension to install**. Then select the extension on the **Add extension** screen. For detailed steps to install a GPU extension during VM deployment, see [Deploy GPU VMs](azure-stack-edge-gpu-deploy-gpu-virtual-machine.md#create-gpu-vms). ![Illustration of 2 steps to add a GPU extension to the Advanced tab of "Add a virtual machine". Options to select and add an extension are highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-extension-01.png) 1. If you want to use the `cloud-init` utility to customize the new VM on its first boot, on the **Advanced** tab, paste your `cloud-init` script into the **Custom data** box under **Custom data and cloud init**. For more information about using `cloud-init`, see [Cloud-init overview](/azure/virtual-machines/linux/tutorial-automate-vm-deployment#cloud-init-overview). ![Screenshot that shows the Advanced tab of the Create a new virtual machine wizard, with a cloud init script in the Custom data box highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-advanced-tab-with-cloud-init-script.png) Select **Next: Review + Create**. 1. On the **Review + Create** tab, review the specifications for the VM. Then select **Create**. ![Screenshot that shows the Review Plus Create tab of the "Add a Virtual Machine" wizard in Azure Stack Edge. The Review Plus Create tab is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-review-create-1.png) 1. The VM creation starts and can take up to 20 minutes. You can go to **Deployments** to monitor the VM creation. ![Screenshot that shows the Deployments pane in Virtual Machines view of an Azure Stack Edge device. The entry for a deployed VM is highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-deployments-page-1.png) 1. After the VM is successfully created, you'll see your new VM on the **Overview** pane. ![Screenshot that shows the Overview pane for Virtual Machines on an Azure Stack Edge device. A new virtual machine is highlighted in the list.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-overview-page-1.png) 1. Select the newly created VM to go to **Virtual machines**. ![Screenshot showing the Virtual Machines pane of an Azure Stack Edge device. The Virtual Machines label and a virtual machine entry are highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-page-1.png) Select the VM to see the details. ![Screenshot that shows the Details tab on the Overview pane for a virtual machine in Azure Stack Edge. The Overview label and the IP Address in Networking are highlighted.](media/azure-stack-edge-gpu-deploy-virtual-machine-portal/add-virtual-machine-details-1.png) Use the IP address for the network interface to connect to the VM. ## Connect to a VM Depending on whether you created a Linux or Windows VM, the steps to connect can be different. You can't connect to the VMs deployed on your device via the Azure portal. Follow the steps to connect to your Linux or Windows VM. ### Connect to a Linux VM Follow these steps to connect to a Linux VM. [!INCLUDE [azure-stack-edge-gateway-connect-vm](../../includes/azure-stack-edge-gateway-connect-virtual-machine-linux.md)] ### Connect to a Windows VM Follow these steps to connect to a Windows VM. [!INCLUDE [azure-stack-edge-gateway-connect-vm](../../includes/azure-stack-edge-gateway-connect-virtual-machine-windows.md)] ## Next steps - [Deploy a cloud managed VM via a script](https://github.com/Azure-Samples/azure-stack-edge-deploy-vms/blob/master/dotnetSamples/CloudManaged/README.md) - [Deploy a GPU VM](azure-stack-edge-gpu-deploy-gpu-virtual-machine.md) - [Troubleshoot VM deployment](azure-stack-edge-gpu-troubleshoot-virtual-machine-provisioning.md) - [Monitor VM activity on your device](azure-stack-edge-gpu-monitor-virtual-machine-activity.md) - [Monitor CPU and memory on a VM](azure-stack-edge-gpu-monitor-virtual-machine-metrics.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: