Skip to content

Commit 9cb1f46

Browse files
vhvb1989Copilot
andcommitted
chore: add Copilot review instruction for extension tenant usage
Adds a path-scoped Copilot instruction for cli/azd/extensions/** that flags use of Subscription.TenantId (resource tenant) instead of Subscription.UserTenantId (user access tenant) for credential creation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 70df4bf commit 9cb1f46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
applyTo:
2+
- cli/azd/extensions/**
3+
---
4+
- When accessing a `Subscription` from `PromptSubscription()`, always use
5+
`Subscription.UserTenantId` (user access tenant) for credential creation,
6+
NOT `Subscription.TenantId` (resource tenant). For multi-tenant/guest users
7+
these differ, and using `TenantId` causes authentication failures.
8+
The `LookupTenant()` API already returns the correct user access tenant.

0 commit comments

Comments
 (0)