-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: Add "Demo Mode" which hides subscription IDs #3848
Conversation
When I heard that @bradygaster was spending multiple hours blurring out subscription IDs in his videos, I figured something must be done, so here's a cut at a "demo mode" which hides these IDs. A key problem here is that all the IDs into the portal have a subscription ID in them. I think we have a few options here:
|
When producing content, folks often spend time scrubbing or masking subscription IDs from the output of `azd`. Instead of folks having to spend their time on this, it would be nice if `azd` could do it itself. This change adds support for setting an environment variable, `AZD_DEMO_MODE`, which controls if we will show subscription IDs or not. In cases where we'd previously show a subscription name and ID (like the selection box when we ask a user to pick a subscription, or when a `provision` starts and we print the target subscription and location information) we now just show the name. In cases where we'd show a link to the Portal in messages (e.g. during a deployment when we provide a link into the deployment status) we now just elide the link since the portal links contain the subscription ID as part of the URL. This saves folks creating content a bunch of time and still keeps the UX very close to what customers actually see (where the subscription ID is useful information to have.) Fixes Azure#319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! I think omitting the ID ends up being the most practical option.
What about using the |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash:
pwsh:
WindowsPowerShell install
MSI install
Standalone Binary
MSIDocumentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
I did consider something like this - the reason I didn't pull the trigger is I remember one of the unsupported terminals was the default macOS terminal, and it felt like that was going to be common enough (since that's the default on macs) that it wouldn't end up great in practice. But I do think that would be a good solution when it is supported everywhere and provides us a nice way to side-step the issue. |
OMG!!!!! i can't wait to try it. |
When producing content, folks often spend time scrubbing or masking subscription IDs from the output of
azd
. Instead of folks having to spend their time on this, it would be nice ifazd
could do it itself.This change adds support for setting an environment variable,
AZD_DEMO_MODE
, which controls if we will show subscription IDs or not.In cases where we'd previously show a subscription name and ID (like the selection box when we ask a user to pick a subscription, or when a
provision
starts and we print the target subscription and location information) we now just show the name.In cases where we'd show a link to the Portal in messages (e.g. during a deployment when we provide a link into the deployment status) we now just elide the link since the portal links contain the subscription ID as part of the URL.
This saves folks creating content a bunch of time and still keeps the UX very close to what customers actually see (where the subscription ID is useful information to have.)
Fixes #319