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

az functionapp create defaults the --runtime flag silently. #28225

Open
mattchenderson opened this issue Jan 19, 2024 · 2 comments
Open

az functionapp create defaults the --runtime flag silently. #28225

mattchenderson opened this issue Jan 19, 2024 · 2 comments
Assignees
Labels
Auto-Assign Auto assign by bot azf_bug azf_reviewed Functions az functionapp Service Attention This issue is responsible by Azure service team.

Comments

@mattchenderson
Copy link

Related command
az functionapp create --functions-version 4 (without specifying --runtime)

Is your feature request related to a problem? Please describe.
If no runtime is specified, the CLI will choose "dotnet" as per:

matched_runtime = runtime_helper.resolve("dotnet" if not runtime else runtime,

This will target .NET 6 on the in-process model, when for a .NET customer it would be better to target .NET 8 using the "dotnet-isolated" runtime.

This defaulting also occurs silently. The user does not know that they have done this. And if the user DID want to specify something else, they then have to know to go set the FUNCTIONS_WORKER_RUNTIME setting.

Describe the solution you'd like
An error or at least a strong warning in this case. --runtime should basically be required. It's not appropriate to be biasing to one runtime, and we want to ensure FUNCTIONS_WORKER_RUNTIME is always set, and set in accordance with user intent.

Describe alternatives you've considered
Help text shows using this too aggressively. We could change the text to show other forms. Probably both are required.

Additional context
Related to #28224

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 19, 2024

Thank you for opening this issue, we will look into it.

Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot azf_bug azf_reviewed Functions az functionapp Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants