Azure-Samples / Azure-Samples/azure-sql-db-session-recommender-v2

Add managed identity to Cognitive Services (OpenAI) in Bicep deployment

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
46
Forks
28
PR merge metrics
No merged PRs in 30d

Description

Description:
Our Bicep infrastructure currently provisions Azure Cognitive Services (OpenAI) via `infra/app/openai.bicep` without a managed identity assigned.
PSRule for Azure baseline `Azure.AI.ManagedIdentity` requires that managed identities are enabled for AI resources when possible.
App Service and Azure Functions are already assigned managed identities, but OpenAI is not.

Acceptance Criteria:
- Add `identity: { type: 'SystemAssigned' }` to the `account` resource in `infra/app/openai.bicep`.
- Template remains deployable and backward compatible.
- No additional secrets are exposed or output.
- (Optional) Output the managed identity principal ID for downstream access control.

References:
- [PSRule for Azure: Azure.AI.ManagedIdentity](https://aka.ms/ps-rule-azdocs)

READY TO BE ASSIGNED TO COPILOT

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.