Skip to main content
Items marked (preview) in this article are currently in public preview. This preview is provided without a service-level agreement, and we don’t recommend it for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.
The Azure Developer CLI (azd) ai extensions let you build, deploy, evaluate, and operate AI agents on Microsoft Foundry from your terminal. In this article, you install the extensions, verify the installation, and authenticate to Azure.

Prerequisites

  • An Azure subscription. Create one for free.
  • Azure Developer CLI (azd) version 1.25.2 or later. Install azd.
  • Python 3.10 or later, or .NET 8 or later, depending on the agent framework you plan to use.

Azure permissions

You need the following roles on your Azure subscription.
The Foundry RBAC roles were recently renamed. Foundry User, Foundry Owner, Foundry Account Owner, and Foundry Project Manager were previously named Azure AI User, Azure AI Owner, Azure AI Account Owner, and Azure AI Project Manager. You might still see the previous names in some places while the rename rolls out. The role IDs and core permissions are unchanged by the rename.

Understand how the extensions are packaged

The azd ai namespace is composed of multiple independent azd extensions. Each one contributes a top-level command group under azd ai. The microsoft.foundry package is a thin meta-package that doesn’t contribute its own commands. Installing it pulls in every individual extension, which is the recommended starting point. Installing azure.ai.agents on its own also pulls in azure.ai.inspector automatically, because the agent extension depends on it.

Install the full bundle

Install every Foundry extension in one step through the meta-package:
To update later:

Install or upgrade an individual extension

You can also manage each extension on its own:
The individual extensions are independently versioned, so you can pin or upgrade one at a time.

Verify the installation

List installed extensions:
You should see microsoft.foundry plus each individual extension. Each extension also exposes a version subcommand:

Authenticate

Sign in to Azure so the CLI can provision and manage resources on your behalf:
This command opens a browser window for interactive authentication. After you sign in, the CLI caches your credentials locally for subsequent commands.