Replies: 1 comment 5 replies
-
Did you try setting AZURE_FUNCTIONS_ENVIRONMENT using |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How can I change the Environment of my Azure Function project being hosted by Aspire?
My 'builder.Environment.EnvironmentName' property seems to be locked to 'Production' no matter what I do. I've tried modifying with launchSettings.json with ASPNETCORE_ENVIRONMENT, DOTNET_ENVIRONMENT, and even AZURE_FUNCTIONS_ENVIRONMENT environment variables. I've tried passing in '--environment' and '--launch-profile' arguments using WithArgs(). No luck.
I noticed the 'builder.AddAzureFunctionsProject() method does not allow passing in launch setting like other project resources, so that is not an option.
Am I out of luck?
Beta Was this translation helpful? Give feedback.
All reactions