Respect AZD_DEMO_MODE in extension PromptService subscription prompts#7193
Respect AZD_DEMO_MODE in extension PromptService subscription prompts#7193
AZD_DEMO_MODE in extension PromptService subscription prompts#7193Conversation
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
AZD_DEMO_MODE in extension PromptService subscription prompts
There was a problem hiding this comment.
Pull request overview
Updates the CLI prompt experience for subscription selection to avoid leaking Azure subscription IDs when AZD_DEMO_MODE is enabled, while keeping the actual returned subscription value unchanged for extensions.
Changes:
- Add demo-mode aware formatting helpers for subscription display and auto-select messaging.
- Redact subscription IDs in demo mode for subscription selection UI and default-not-found errors.
- Add tests verifying demo mode redaction in both display formatting and no-prompt paths.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| cli/azd/pkg/prompt/prompt_service.go | Introduces demo-mode helpers and applies them to subscription prompt display, auto-select output, and default-not-found errors. |
| cli/azd/pkg/prompt/prompt_service_test.go | Adds unit tests ensuring subscription IDs are not surfaced via output/errors when demo mode is enabled. |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
- Add Unreleased section to CHANGELOG covering merged PRs from 2026-03-19/20: - feat: AI-assisted error troubleshooting category selection (Azure#7216) - feat: CopilotService gRPC extension framework service (Azure#7172) - fix: lifecycle hooks silently not firing in azd up workflow (Azure#7218) - fix: azd update for Linux/macOS shell script and Homebrew (Azure#7213) - fix: azd update on Windows with backup/restore safety (Azure#7166) - fix: azd up --debug/--no-prompt positional arg error (Azure#7212) - fix: PromptSubscription not respecting AZD_DEMO_MODE (Azure#7193) - fix: preflight role check for B2B/guest users (Azure#7174) - Add AZD_DEMO_MODE note to PromptSubscription in extension-framework.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
…ts (Azure#7193) --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
Fixes #7192
The extension framework prompt path was still surfacing subscription IDs in demo mode, especially through
PromptSubscription. This PR updates the subscription prompt UX to honourAZD_DEMO_MODEwithout changing the actual selected values returned to extensions.Original prompt
AZD_DEMO_MODEenv var #7192📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.