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

Wrong error message when publishing #3822

Open
Francisco-Gamino opened this issue Sep 13, 2024 · 4 comments · May be fixed by #3851
Open

Wrong error message when publishing #3822

Francisco-Gamino opened this issue Sep 13, 2024 · 4 comments · May be fixed by #3851
Assignees

Comments

@Francisco-Gamino
Copy link
Contributor

Version

PS E:\> func --version
4.0.6280

Description

I've tried to publish using the latest version of the Core Tools. Here is error message with the issue:

Your Azure Function App has 'FUNCTIONS_WORKER_RUNTIME' set to 'dotnetIsolated' while your local project is set to 'None'.
You can pass --force to update your Azure app with 'None' as a 'FUNCTIONS_WORKER_RUNTIME'

The issues are the following:

  1. We should not force 'None' as a valid value
  2. 'dotnetIsolated' should be 'dotnet-isolated'

Steps to reproduce

Please note that I did not have a local.settings.json file.

command: func azure functionapp publish <AppName>

@Francisco-Gamino
Copy link
Contributor Author

/cc @mattchenderson

@fabiocav
Copy link
Member

@mattchenderson will provide additional details on this

@umangsriv
Copy link
Contributor

@mattchenderson will provide additional details on this

I need some clarification on the issue, first point: if 'None' is not valid, what value should we consider as a replacement, or should it be omitted entirely from the message?

Additionally, to verify and reproduce this error, I need to run the publish command. Currently, I am unable to do so, as I would need to create a Function App resource in the Azure portal. Could you provide the necessary subscription details for this, or is there an alternative way to replicate the issue that I might be overlooking?

@umangsriv
Copy link
Contributor

@fabiocav @mattchenderson Could you please provide an update on the above query?

@umangsriv umangsriv linked a pull request Sep 30, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants