You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
Describe the issue:
Running the VS Code task Start API fails. The API tries to connect to Azure Cosmos DB using Managed Identity, but Cosmos rejects the request with RBAC/Forbidden (403). The error indicates the principal does not have permission to perform Microsoft.DocumentDB/databaseAccounts/readMetadata as follows:
Repro Steps:
Run azd init -t todo-nodejs-mongo.
Run azd up.
Run task: start api.
Environment:
Template: todo-nodejs-mongo.
Azd version: azd version 1.24.0-beta.1-daily.6038122 (commit 69ab5ebc77e88cd93240670a208b04488d7c3c3c).
OS: Windows and Linux.
Branch: Main.
Expected behavior:
The start api task can run successfully.
Describe the issue:

Running the VS Code task
Start APIfails. The API tries to connect to Azure Cosmos DB using Managed Identity, but Cosmos rejects the request with RBAC/Forbidden (403). The error indicates the principal does not have permission to performMicrosoft.DocumentDB/databaseAccounts/readMetadataas follows:Repro Steps:
azd init -t todo-nodejs-mongo.azd up.start api.Environment:
Expected behavior:
The
start apitask can run successfully.Rajesh Kamal (@rajeshkamal5050) for notification.