-
Notifications
You must be signed in to change notification settings - Fork 198
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 -t is not compatible with Aspire templates w/o azure.yaml on the root #4171
Comments
@vhvb1989 If I now delete all files in the root, and then clone the repo using VS, (and not running This is the confirmation I get when running the above commands:
This is now the contents of the azure.yaml (which is now correct):
I then run into problems from my first comment in issue 3037 where I say the issue still exists under https when I run So I just cannot get the Thanks |
@pbusfield , there is an issue with The workaround for you case is:
After that, you can run |
@vhvb1989 ERROR: error executing step command 'deploy --all': getting resource group name: getting default resource groups for environment: test: resource not found: 0 resource groups with prefix or suffix with value: 'test' Do I have to create the Resource Group named 'rg-test' manually? before runningh |
Can you share the generated content from the infra folders? I was under the idea that you wanted to run azd pipeline config. Are you running |
My ultimate goal is the run I actually thought that the whole process included running There are 6 generated tmpl.yaml files in the infra folder inside the AppHost holder. The first one, which causes the error, its content is:
Hope that helps? |
@pbusfield could be that your previous runs weren't successfully deleted properly. How did you delete resources? cc @weikanglim @hemarina Does your azd up report something like this?
Refer to these issues #3771 #3559 which had similar error.
|
I wonder if we should provide user recommendation for template authors to move
@pbusfield Thank you for reporting this issue. My apologies that we're behind on catching up with you on this conversation. If you are still experiencing issues, would you be able to create a new issue with the repro steps? It would make it easier to have a dedicated conversation -- and we'll see to it that you get the help you need. |
@weikanglim Yes I am still experiencing this same issue:
I will start a new thread and give you steps to reproduce and tag you in it. Thanks |
Issue:
running
azd init -t repo-url
clones the repo with an empty azure.yaml file at the root.When:
When a repository has an AppHost project which contains azure.yaml inside the AppHost (instead of the root of the project)
Expected:
azd should detect if there is an app host with azure.yaml and skip creating azure.yaml on the root.
The text was updated successfully, but these errors were encountered: