Skip to content

azure.ai.agents - Post-deploy RBAC hook fails with AzureDeveloperCLICredential: please run "azd auth login", No Pre-Flight Auth Check #7514

@therealjohn

Description

@therealjohn

Steps to reproduce:

Run azd deploy
Exact output:
(✓) Done: Deploying service echo-agent-responses-streaming

  • Agent endpoint: https://...

ERROR: failed invoking event handlers for 'postdeploy'
agent identity RBAC setup failed: failed to discover agent identity:
AzureDeveloperCLICredential: please run "azd auth login"

Impact: Deploy reports (✓) Done before the hook runs. Agent is silently broken. Expected: Pre-flight auth check before deploy, and mark RBAC hook failure as a blocking error:
RBAC setup failed. Run: azd auth login && azd deploy

Metadata

Metadata

Assignees

Labels

area/authAuthentication, credentials, identityext-agentsazure.ai.agents extension

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions