Azure
This guide covers deploying NIM LLM and VLM on Microsoft Azure, which supports two deployment paths:
- AKS (Azure Kubernetes Service): Self-managed Kubernetes deployment using the NIM LLM and VLM Helm chart. Provides full control over infrastructure, including GPU node pools and persistent storage.
- Microsoft Foundry: Managed deployment using Azure ML Managed Online Endpoints. Simplifies infrastructure management with built-in health checks.
Deploy on Azure Kubernetes Service (AKS)
To deploy NIM LLM and VLM on Azure Kubernetes Service (AKS), create an AKS cluster with GPU nodes and prepare the environment for NIM LLM workloads.
To deploy on AKS, complete the following steps.
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 NIM LLM and VLM with Helm, complete the following 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:
Deploy on Microsoft Foundry
To deploy NIM on Microsoft Foundry, provision the Azure Machine Learning resources and prepare your environment for NIM as a managed online endpoint.
To deploy on Microsoft Foundry, complete the following steps.
Prerequisites
Before you deploy NIM to Microsoft Foundry, complete the following prerequisites:
-
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:
Next Steps
Refer to the following Azure documentation for more information:
- Azure Kubernetes Service (AKS) documentation
- Microsoft Foundry documentation
- Model Profiles and Selection — Choose
nim_model_profilefor your GPU SKU