Skip to content
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

Add command to get current environment name #1165

Closed
jongio opened this issue Nov 16, 2022 · 5 comments
Closed

Add command to get current environment name #1165

jongio opened this issue Nov 16, 2022 · 5 comments

Comments

@jongio
Copy link
Member

jongio commented Nov 16, 2022

When scripting it would be helpful to be able to get the current environment name without have to dig into the config.json file.

Something like az account show

@ghost ghost added the needs-triage For new issues label Nov 16, 2022
@ellismg
Copy link
Member

ellismg commented Nov 16, 2022

We already have azd show for use by tooling - maybe we can just add this to that.

@rajeshkamal5050 rajeshkamal5050 added this to the Backlog milestone Dec 5, 2022
@ghost ghost removed the needs-triage For new issues label Jan 23, 2023
@savannahostrowski
Copy link

Is this not handled by azd env list which updates as you set the use select the environment?

@jongio
Copy link
Member Author

jongio commented May 10, 2023

I wanted to get the name programmatically. With az cli I can use --query to get just the name, with azd I have to manually parse the results. Maybe the answer is to support --query and return json.

@savannahostrowski
Copy link

Ah I see - that make sense. Thanks for clarifying.

@savannahostrowski savannahostrowski modified the milestones: Backlog, Germanium May 11, 2023
@savannahostrowski
Copy link

Closing in favour of #1887.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants