This article covers general prerequisites only, such as language runtimes, global tools, and VS Code and extension setup.
It doesn’t cover scenario-specific steps like SDK installation or authentication.
When your environment is ready, continue to the quickstart for those instructions.
It doesn’t cover scenario-specific steps like SDK installation or authentication.
When your environment is ready, continue to the quickstart for those instructions.
Prerequisites
- An Azure account with an active subscription. If you don’t have one, create a free Azure account, which includes a free trial subscription.
- Download, install, and configure Visual Studio Code, or the IDE of your choice. For more information, see Download Visual Studio Code.
- To create and manage Foundry resources, one of the following Azure RBAC roles
- Foundry Project Manager (for managing Foundry projects)
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.
- Owner (for subscription-level permissions). Owner is necessary for additional role assignments required for other scenarios in Foundry. To ensure you are unblocked for all scenarios in Foundry, Owner is the role assignment required.
-
To use project but not create new resources, you need at least:
- Foundry User on the projects you use (least-privilege role for development)
Install your programming language
Install the Azure CLI and sign in
You install the Azure CLI and sign in from your local development environment so that your code can use your user credentials to call Azure services through Foundry. In most cases you can install Azure CLI from your terminal using the following command:az login command and sign-in using the browser:
Install the Azure Developer CLI
The Azure Developer CLI (azd) is an open-source tool that helps you set up and deploy app resources on Azure. It provides simple commands for key stages of development, whether you use a terminal, IDE, or CI/CD pipelines. Install the Azure Developer CLI for your platform. Many of the AI solution templates include a deployment option usingazd.
Install the Microsoft Foundry Toolkit for Visual Studio Code extension
The Foundry Toolkit lets you deploy models, build AI apps, and work with Agents directly from the VS Code interface. Follow the detailed instructions to install and setup the Foundry Toolkit.Install Git
Git is required to clone Foundry SDK samples. If you don’t have Git installed, follow the instructions for your platform and select your operating system.Troubleshooting
| Issue | Resolution |
|---|---|
| Command not found after install | Close and reopen your terminal, or restart VS Code, so PATH changes take effect. |
az login fails with a browser error | Run az login --use-device-code to authenticate using a device code flow instead. |
| Python not found | Use python3 instead of python on macOS/Linux, or install a supported version (3.9 or later). |
| Permission denied during install | On macOS/Linux, avoid sudo pip install. Use a virtual environment instead. |