QuestionQ101
VerifiedImplement generative AI and agentic solutionsYou are creating a Microsoft Foundry project named Project1 that will contain an agent and use an Azure key vault named KV1. You need to configure a connection from Project1 to KV1. How should you complete the Bicep code?

Select
resource existingKeyVault 'Microsoft.KeyVault/vaults@2024-11-01' existing = { name: 'KV1' scope: resourceGroup() } resource connection 'Microsoft.CognitiveSevices/accounts/connections@2025-04-01-preview' ={ name: '${aiFoundryName}-keyvault' parent: aiFoundry properties: { category: target: existingKeyVault.id authType: isSharedToAll: metadata: { ApiType: 'Azure' ResourceId: existingKeyVault.id location: existingKeyVault.location } } }
Community Discussion