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

Why does azd init only support --subscription and not -s? #2050

Closed
savannahostrowski opened this issue Apr 28, 2023 · 4 comments · Fixed by #2708
Closed

Why does azd init only support --subscription and not -s? #2050

savannahostrowski opened this issue Apr 28, 2023 · 4 comments · Fixed by #2708

Comments

@savannahostrowski
Copy link
Contributor

All the other flags for init support the shorthand flag (e.g. -t, -e) and (e.g. --template, --environment)

For --subscription, we don't seem to support -s. Is this intentional? At a glance, this seems inconsistent.
image

@ellismg
Copy link
Member

ellismg commented Sep 1, 2023

It was not intentional. We added this flag (as well as location) for use by VS when they ran init (so they could prevent prompting from AZD, back when init asked for these values) and so just having --subscription was fine because that is what VS was coded to use. We will add this back for consistency.

@rajeshkamal5050 rajeshkamal5050 assigned v-xuto and unassigned ellismg Sep 6, 2023
@rajeshkamal5050
Copy link

@v-xuto can you create a PR for the above -s flag?

@v-xuto
Copy link
Member

v-xuto commented Sep 6, 2023

@v-xuto can you create a PR for the above -s flag?

Sure. We are currently working on it.

@v-xuto
Copy link
Member

v-xuto commented Sep 6, 2023

@rajeshkamal5050 The PR for this issue is ready, please review.

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

Successfully merging a pull request may close this issue.

4 participants