Enable Azure Developer CLI demo mode

By default, some Azure Developer CLI commands display Azure subscription IDs in the console output. This behavior is useful during development to monitor deployments and template behavior. However, azd also includes a demo mode to hide Azure subscription IDs for scenarios such as public presentations that use azd commands, screen sharing with other users, or any other situation where you want to keep your subscription IDs hidden.

Enable demo mode

Demo mode behavior is based on the environment variable: AZD_DEMO_MODE. To enable demo mode, run:

Bash
export AZD_DEMO_MODE true

To persist demo mode across reboots, you can also run:

Bash
setx AZD_DEMO_MODE true

Note

After setting the AZD_DEMO_MODE environment variables, you may need to close and reopen your terminal window to reload the variable and apply the changes.