-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe:
When running the command .\scripts\Verify-Role-Assignments.ps1 to verify role assignments, the script first reports that the deployment-info.json file cannot be found (see screenshot).

After specifying the path as prompted, running .\scripts\Assign-Role-To-Current-User.ps1 -DeploymentInfoPath scripts\deployment-info.json results in the error: A value is required for property 'appId' of resource 'ServicePrincipal'.

Upon checking the script, it was found that the fields entraAppSpObjectId and entraAppClientId in the script do not match ENTRA_APP_SP_OBJECT_ID and ENTRA_APP_CLIENT_ID in deployment-info.json.
Repro Steps:
- Run
git clone https://github.com/AzureCosmosDB/MCPToolKit.gitandcd MCPToolKit. - Deploy Infrastructure via Azure Developer CLI (azd up).
- Run
.\scripts\Deploy-Cosmos-MCP-Toolkit.ps1 -ResourceGroup "YOUR-RESOURCE-GROUP" -EntraAppName "My Custom MCP App". - Run
.\scripts\Verify-Role-Assignments.ps1.
Environment:
- OS: Windows
- Azd version: azd version 1.21.3 (commit b01891fc63b1faf9a9633cdc630deab0b4d569c4).
Expected behavior:
.\scripts\Verify-Role-Assignments.ps1 runs successfully.
@sajeetharan and @hemarina for notification.