-
Notifications
You must be signed in to change notification settings - Fork 202
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
azd init
should also create infra
, CICD: .github/workflows
or .azdo/pipelines
folders
#135
Comments
What will we put in these files and why? Why wouldn't a user use |
This will help when azdev-ifying a template. We expect the /infra folder to have the files mentioned above, we should have the placeholder files with the required name, location, parameters and env var replacements. Otherwise the azd-ify expereince will always include a step to copy those files to the infra folder. |
We should consider having a new command for azdev-ify a new or existing project, like
|
passing a switch to
|
|
Let's use this opportunity to discuss scenarios/workflows for azdevifying applications. @puicchan - Do we have a work item to track that? If not could you start one? We can close this issue in favor of an uber azdevify issue. |
azd init
should also create infra
folderazd init
should also create infra
, CICD: .github/workflows
or .azdo/pipelines
folders
@jongio @puicchan @savannahostrowski I'd like to separate this issue out from However, I'd like to use this issue to fix the user journey of Proposal
The "Starter Template" will have the following:
Asset files for "Starter Template" will be stored and shipped in our binary using |
+1 to what Wei is suggesting above. I really like this proposal. We need to get a bit better at guiding new users and having them fall into a pit of success. |
I am fine as long as you think about the scenario when customers have an app (with or without Bicep files) and still can use |
I'd also include .devcontainer files |
@savannahostrowski @ellismg Not in scope for GA. Moving this to Gallium. |
I think this is polish. I'd like to talk about addressing this before GA. |
+1 @savannahostrowski , I'd also add that in addition to polish, this sets up a user for success when starting their own template, devifying their own, or working on a "build-up" process. Seems an easy win pre GA. |
We're going to first add starter assets for bicep and terraform, the proposal has been finalized with @savannahostrowski 's blessing as follows: Changes
The starters are just like other existing ToDo templates, available @ Azure-Samples/azd-bicep-starter and Azure-Samples/azd-terraform-starter respectively. The starters have the following:
We will rename "Empty Template" -> "Minimal" TestingThe templates will be validated via our normal bicep-lint processes, and in template-tests.sh a provision + down is performed to ensure the template can be provisioned. Deploy is skipped since no code is available. |
@weikanglim - Please use |
@jongio Naming is hard. I can see us going either way on it, but I do find that Some data from Microsoft repositories suggests that https://github.com/orgs/microsoft/repositories?q=starter&type=all&language=&sort= |
Late thought here: Do you mean it's better for search engines to do |
I'm not sure that having bicep/terraform ahead of starter in the repo name really optimizes for anything. I'd probably just go with what Jon outlined above for easier grouping etc. |
Add new starter templates for bicep and terraform. The starters have the following: - Valid `azure.yaml` with comments helping the user along. - Valid infrastructure files that sets up `azd` environment tagging + creates an empty resource group. - Starter `GitHub` or `AzDo` workflow template for CI/CD. - `.devcontainer` for a basic setup. The starters are validated by `./template-tests.sh` to guarantee that the `azure.yaml` + `main.(bicep/tf)` is guaranteed to be valid using a `provision`, `deploy`, `down` flow. `bicep-lint` runs to ensure the bicep doesn't violate bicep best practices. `azd init` also now allows showing of display names. The new starter templates take use of this, showing `Starter - Bicep (azd-bicep-starter)` instead of `Azure-Samples/azd-bicep-starter`. A follow-up PR will start expanding the usage. Fixes #135
Right now
azd init
creates .azure, .gitignore, and azure.yaml.It should also create a /infra folder with main.bicep, resources.bicep, and main.parameters.json.
The text was updated successfully, but these errors were encountered: