Skill 1.3.4

Configure security, including managed identity, private networking, keyless credentials, and role policies

Key Concepts

Keyless credentials use Microsoft Entra ID tokens instead of API keys. Application code uses DefaultAzureCredential, which picks up a developer's sign-in locally and a managed identity in Azure. Local (key) authentication can then be disabled on the Foundry resource. Access is granted with Azure role-based access control (RBAC): Foundry User (formerly Azure AI User) for building and using agents and models in a project, Foundry Project Manager for managing projects, Foundry Account Owner for managing the resource without data actions, Foundry Agent Consumer for callers that only interact with published agents, and Search Index Data Reader or Contributor for Azure AI Search data. Microsoft advises against Cognitive Services roles for Foundry work, apart from Cognitive Services Usages Reader for viewing quota.

Private networking places private endpoints for the Foundry resource, Azure AI Search, Storage and Cosmos DB in a virtual network and disables public network access; agents that call private resources use the network-secured agent setup with a delegated subnet. Managed identities of the Foundry resource and of Azure AI Search are given roles on each other and on storage so that services authenticate without secrets. Customer-managed keys in Azure Key Vault encrypt data at rest when policy requires it.