Azure
This guide covers deploying NIM LLM and VLM on Microsoft Azure, which supports two deployment paths:
AKS Deployment
To deploy NIM LLM and VLM on Azure AKS, follow these steps to create an AKS cluster with GPU nodes and prepare the environment for running NIM LLM and VLM workloads. This section will walk you through prerequisites, cluster creation, and initial setup.
Prerequisites
Install the following tools before proceeding:
If you use preview AKS features, also install the aks-preview extension.
Log in to Azure:
You also need an NGC API key with access to NIM LLM and VLM container images and Helm charts.
Create an AKS Cluster with GPU Nodes
Complete the following steps to create the AKS cluster, add a GPU node pool, and get the cluster credentials.
-
Create a resource group and AKS cluster:
For detailed steps, refer to the AKS quickstart guide.
-
Add a GPU node pool. Skip automatic GPU driver installation so the NVIDIA GPU Operator manages drivers later in this guide.
Azure CLI 2.72.2 or later is required for
--gpu-driver none. On older CLI versions, use--skip-gpu-driver-installinstead (deprecated after August 2025).Choose a GPU-enabled VM size that matches your model requirements. For supported options, refer to GPU workloads in AKS.
-
Get the cluster credentials:
Install the NVIDIA GPU Operator
Install the NVIDIA GPU Operator after the AKS cluster is ready.
-
Add the NVIDIA Helm repository:
-
Update the local Helm repository index:
-
Install the GPU Operator:
For more information, refer to the NVIDIA GPU Operator documentation.
Create Kubernetes Secrets
Create the namespace and secrets that the Helm deployment uses.
-
Set the required environment variables:
-
Create the namespace:
-
Create the NGC image pull secret:
-
Create the NGC API key secret:
Optional: For gated Hugging Face models, create an additional secret.
-
Set the Hugging Face token:
-
Create the secret:
Deploy NIM LLM and VLM with Helm
To deploy NVIDIA NIM for Large Language Models (LLM) and Vision Language Models (VLM) with Helm, follow these steps:
-
Fetch the Helm chart from NGC:
-
Optional: View the default chart values to understand available configuration options:
For help choosing the right model configuration for your
values.yaml, refer to Model Profiles and Selection. -
Deploy using a custom values file:
Verify the Deployment
Complete the following steps to confirm that the service is reachable and serving inference requests.
-
Get the service endpoint:
-
Check the health endpoint (set
NIM_EXTERNAL_IPfrom the service EXTERNAL-IP): -
Send an inference request:
Microsoft Foundry Deployment
To deploy NIM on Microsoft Foundry, follow these steps to provision the necessary Azure Machine Learning resources and prepare your environment for running NIM workloads. This section will walk you through prerequisites, workspace setup, and deployment of NIM as a managed online endpoint.
Prerequisites
Before deploying NIM to Microsoft Foundry, make sure you have the following:
-
The Azure CLI and Azure ML extension:
-
An Azure Machine Learning workspace:
-
An NGC API key for pulling NIM container images and downloading model artifacts.
-
Some Azure regions have limited GPU quota. If you encounter quota errors, refer to Troubleshoot online endpoints: OutOfQuota.
Deploy with the Python SDK
The following steps deploy a NIM container as an Azure ML managed online endpoint.
The nim_model_profile variable determines which model configuration is used. For help choosing the right profile, refer to Model Profiles and Selection.
-
Create the ML client and endpoint:
-
Define the environment and deployment:
-
Route traffic to the deployment:
-
Retrieve the endpoint URL and key:
Verify the Deployment
Send an inference request to the endpoint:
References
Refer to the following Azure documentation for more information: