-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[App Service] Allow creating a service plan as part of web app creation #1369
Comments
@yugangw-msft we should discuss how to implement this.
|
I would vote for #2, which keeps the focus on the web app, and abstracts away the concept of a plan (until the user wants/needs to know about it). I'd imagine that the plan's SKU is the primary option that you'd need to set at the time of web app creation. Ideally, The following would be amazing for creating a new web app in a free tier plan: az appservice web create -n <name> -g <group> -s free The existing Additionally, I wonder whether it would be useful if calling |
@lostintangent |
@yugangw-msft That behavior makes sense. Thanks so much! |
I went hunting for this capability today and was surprised to find #2550, but then saw it was backed out in #2671. Obviously a lot has changed since then, particularly the introduction of My use case for this feature: I write Azure tutorial content for MS Learn. Many tutorials require creating a web app, but only to showcase another Azure feature or service and not as the focus of the tutorial. In these cases, we still still typically have the reader create the web app or other needed resource directly, in a hands-on way (as opposed to fully automating the process in an opaque script), but we try to do it in a way that minimizes potential distraction. Most of the time, that means using the CLI with as few commands/arguments/etc. as possible.
It would be great to be able to create a web app and the needed plan in a one-liner. As @lostintangent said in the original comment, this would mirror the portal experience nicely. Thanks! |
Being able to create a new web app as part of an existing plan makes a ton of sense, but I can't help but feel like it would simplify the getting started experience for users if the
az appservice web create
command would allow you to auto-create the plan for you, instead of needing to explicitly runaz appservice plan create
before hand. This would mirror the experience in the portal a little more closely, and optimize for single app plans.I really like how the
az acs create
command chose to auto-generate a new service principal for you if you don't specify one, and I feel like this is another opportunity to streamline the experience, while still providing sufficient flexibility when/if needed.The text was updated successfully, but these errors were encountered: