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

[Issue] Specify azure.yaml for azd up #2736

Open
1 task done
pamelafox opened this issue Sep 12, 2023 · 2 comments
Open
1 task done

[Issue] Specify azure.yaml for azd up #2736

pamelafox opened this issue Sep 12, 2023 · 2 comments

Comments

@pamelafox
Copy link
Member

Discussed internally here:
https://teams.microsoft.com/l/message/19:ug5DKpbpRJbBtgoSQAXdynHgthpALgePNJ8wb5AI8HM1@thread.tacv2/1693328738998?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=c99e8504-1250-4d95-a824-9778e0e626c7&parentMessageId=1693328738998&teamName=Azure%20Developer%20CLI%20(azd)%20Partners&channelName=General&createdTime=1693328738998

I have a branch that makes it possible to deploy an App Service sample with Azure Container Apps, but don't want to necessarily replace the App Aervice option. I was thinking I could enable switching via an azd env set, but that would still leave the problem of azure.yaml specifying appservice. If azd up could point at different azure.yaml files, then I could tell folks to point at azure-aca.yaml, for example.

Considerations:

  • Would the other yaml point at different infra?
  • Could main.bicep know which yaml it was called with? (To avoid an additional azd env set USE_ACA)
@ellismg
Copy link
Member

ellismg commented Sep 13, 2023

I think some generalized --project-file that allows you to change the name of azure.yaml or provide a path (which would stop our start in the CWD and walk up looking for an azure.yaml logic) could be very interesting.

Would the other yaml point at different infra?

This would be supported today, I think, by setting the module property on the infra section of azure.yaml

Could main.bicep know which yaml it was called with? (To avoid an additional azd env set USE_ACA)

Perhaps we could add an env section to azure.yaml, which could set environment variables like this? These are basically "project wide" values where as the ones in the .env file in the environment folder are environment specific.

@pamelafox
Copy link
Member Author

cc @anthonychu

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

3 participants