Azure / Azure/azure-functions-core-tools

Your Azure Function App has 'FUNCTIONS_WORKER_RUNTIME' set to 'dotnetIsolated' while your local project is set to 'dotnet'.

Open
#3,051 0 comments 1 reaction 0 assignees View on GitHub
investigate
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

Hi I'm having trouble with azure function version ~4, with dotnetisolated.

Im using gitlab pipeline with script:

```
image: mcr.microsoft.com/dotnet/sdk:6.0

.install_dependencies: &install_dependencies
- curl -sL https://aka.ms/InstallAzureCLIDeb | bash
- apt-get install curl && curl -sL https://deb.nodesource.com/setup_12.x | bash -
- apt-get install nodejs
- npm install -g azure-functions-core-tools@4 --unsafe-perm true

deploy dev:
stage: deploy
script:
- *project_dir
- *install_dependencies
- az login --service-principal -u $AZURE_CLIENT_ID -p $AZURE_CLIENT_SECRET --tenant $AZURE_TENANT_ID
- func azure functionapp publish $AZURE_FUNCTION_NAME --csharp
```

my function app configs:

![image](https://user-images.githubusercontent.com/18653765/167589676-925a74d2-ce55-4203-aabe-8ebef187bd34.png)

I tried solution from here: https://github.com/Azure/azure-functions-core-tools/issues/2524

But it doesn't work for me, I also tried running commands from the output directory, and if local.settings.json is present there:
![image](https://user-images.githubusercontent.com/18653765/167590375-3ccf07d6-f6a3-4460-9c35-40c78d53de09.png)

any ideas?

Contributor guide

Open the contributing guide

Research direction

Start with the GitLab deploy script and the `func azure functionapp publish ... --csharp` entry point, then compare the Azure Function App configuration with the local project settings and the output-directory behavior described in the issue. Done means the runtime settings are consistent and the deployment completes successfully with Azure Functions Core Tools v4.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, gitlab, node.js
Domain
cli, cloud, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.