Skip to content

docs(skill): require Cognitive Services OpenAI User as prereq RBAC role#203

Merged
placerda merged 1 commit into
developfrom
feature/rbac-prereq-openai-user
May 29, 2026
Merged

docs(skill): require Cognitive Services OpenAI User as prereq RBAC role#203
placerda merged 1 commit into
developfrom
feature/rbac-prereq-openai-user

Conversation

@placerda
Copy link
Copy Markdown
Contributor

Foundry azure_ai_evaluator graders impersonate the OIDC principal to call OpenAI; without Cognitive Services OpenAI User on the underlying AI Services account the graders fail with a 401 PermissionDenied on Microsoft.CognitiveServices/accounts/OpenAI/deployments/chat/completions/action and every cloud eval metric returns null. The first PR run in the tutorial used to fail every time — even on a happy-path setup — because the tutorial only asked users to grant Foundry User. Pairs with #201 (which surfaces the buried error message into the report).

Verified end-to-end on placerda/agentops-prompt-quickstart: after granting the role to the GHA OIDC SP, the first PR run goes green from scratch (run 26625808174).

Files

  • src/agentops/templates/skills/agentops-workflow/SKILL.md — pre-dispatch checks now list both Foundry User (Foundry project scope) and Cognitive Services OpenAI User (AI Services account scope), with role ids 53ca6127-db72-4b80-b1b0-d745d6d5456d and 5e0bd9bd-7b93-4f28-af87-19fc36ad61bd plus the matching az role assignment create commands.
  • plugins/agentops/skills/agentops-workflow/SKILL.md — synced from src/ via scripts/sync-skills.ps1.
  • docs/tutorial-prompt-agent-quickstart.md — step 12's Copilot prompt and the workflow-skill walkthrough list both roles.
  • docs/tutorial-end-to-end.md — both workflow-skill prompts list both roles.
  • docs/ci-github-actions.md — prerequisite section spells out the OpenAI graders' failure mode and lists both roles.
  • CHANGELOG.md — new Changed entry under [Unreleased].

Verification

  • pytest tests/792 passed, 3 skipped (46.58s).
  • Manual end-to-end on PO's repo: red runs deleted, role granted, fresh gh workflow run agentops-pr.ymlsuccess, both jobs green.

Notes

This is documentation-only — no behavior change in the toolkit itself. The toolkit-side fix that surfaces the error message when this role IS missing already shipped in #201/#202. Together: skill now prevents the failure mode, toolkit now diagnoses it clearly if it happens.

Foundry `azure_ai_evaluator` graders impersonate the OIDC principal
to call OpenAI; without `Cognitive Services OpenAI User` on the
underlying AI Services account the graders fail with a 401
PermissionDenied and every cloud eval metric returns null. Verified
end-to-end on placerda/agentops-prompt-quickstart: after granting the
role, the first PR run goes green from scratch.

- agentops-workflow SKILL.md: pre-dispatch checks now list both Foundry
  User (Foundry project) AND Cognitive Services OpenAI User (AI
  Services account), with role ids and az role assignment create
  commands for each.
- tutorial-prompt-agent-quickstart.md: step 12's Copilot prompt and the
  workflow-skill walkthrough list both roles.
- tutorial-end-to-end.md: both workflow-skill prompts list both roles.
- docs/ci-github-actions.md: prerequisite section lists both roles with
  the OpenAI graders' failure mode spelled out.
- plugins/agentops/skills/agentops-workflow/SKILL.md: synced from src/.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@placerda placerda merged commit daa4229 into develop May 29, 2026
12 checks passed
@placerda placerda deleted the feature/rbac-prereq-openai-user branch May 29, 2026 08:17
placerda added a commit that referenced this pull request May 29, 2026
…le (#203) (#204)

Foundry `azure_ai_evaluator` graders impersonate the OIDC principal
to call OpenAI; without `Cognitive Services OpenAI User` on the
underlying AI Services account the graders fail with a 401
PermissionDenied and every cloud eval metric returns null. Verified
end-to-end on placerda/agentops-prompt-quickstart: after granting the
role, the first PR run goes green from scratch.

- agentops-workflow SKILL.md: pre-dispatch checks now list both Foundry
  User (Foundry project) AND Cognitive Services OpenAI User (AI
  Services account), with role ids and az role assignment create
  commands for each.
- tutorial-prompt-agent-quickstart.md: step 12's Copilot prompt and the
  workflow-skill walkthrough list both roles.
- tutorial-end-to-end.md: both workflow-skill prompts list both roles.
- docs/ci-github-actions.md: prerequisite section lists both roles with
  the OpenAI graders' failure mode spelled out.
- plugins/agentops/skills/agentops-workflow/SKILL.md: synced from src/.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants