{
  "slug": "azd-subscription-selection-scopes-subscriptions-by-tenant-ce1eb8ce6f25",
  "title": "azd subscription selection scopes subscriptions by tenant",
  "tools": [
    "azd"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-16T03:36:08.000Z",
  "announced_at": "2026-05-16T03:36:08.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For an account with subscriptions across multiple tenants, choose a tenant in the subscription prompt to scope the list. Set `AZURE_TENANT_ID` to filter subscriptions in prompt and no-prompt modes; a nonmatching value falls back to all subscriptions.",
    "examples": [
      "azd up",
      "AZURE_TENANT_ID=<tenant-id> azd up"
    ],
    "gotchas": [
      "Version: 1.25.1",
      "AZURE_TENANT_ID: Tenant ID used to filter available subscriptions in prompt and no-prompt modes. If none match, all subscriptions are returned.",
      "tenant prompt selection: When multiple tenants are available, choose a tenant to filter subscriptions; “All tenants” leaves the list unfiltered. The picker is skipped for zero or one tenant.",
      "The tenant picker appears for users with access to multiple tenants and is skipped for single-tenant users and service principals.",
      "No-prompt mode skips the tenant picker, but `AZURE_TENANT_ID` filtering still applies.",
      "If the tenant ID is set but no subscriptions match, the filter is a no-op and all subscriptions are shown.",
      "The picker includes an “All tenants” option."
    ]
  },
  "why_it_matters": "Select a subscription for an account with access to multiple Azure tenants.",
  "sources": [
    "https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.25.1",
    "https://github.com/Azure/azure-dev/pull/8083",
    "https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/get-started",
    "https://github.com/Azure/azure-dev/blob/azure-dev-cli_1.25.1/cli/azd/pkg/prompt/tenant_helper.go"
  ],
  "rank": 0.92034,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-8e2be2dd9bb6ee44-3:gate",
    "evidence_hash": "8129d8d106661039bd01a7137f1a768048bf763e12141da14c1ef96b24db3510"
  },
  "review": {
    "draft_hash": "73c616b5873adec9d9dba825307f58c7ad04a934db0017686db36c164419f23f",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.61 (>= 0.6 needed)."
  }
}
