Azure / Azure/azure-functions-host

FUNCTIONS_WORKER_RUNTIME dotnet-isolated can't be changed

Open
#10,909 5 comments 0 reactions 1 assignee Claimed by @JAdluri View on GitHub
Needs: Attention :wave:
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

#### Investigative information

Please provide the following:

- Timestamp: 2025-03-05 09:50:10 CET
- Function App version: Microsoft.Web/sites@2024-04-01
- Function App name: n-qa-bannerdata-func
- Function name(s) (as appropriate):
- Invocation ID:
- Region: swedencentral

#### Repro steps

Provide the steps required to reproduce the problem:

1. Deploy a function app with FUNCTION_WORKER_RUNTIME='dotnet-isolated'
2. Change to 'dotnet'
3. Unable to get rid of the warning that the function app requires 'dotnet'
4. Redeploy the function app with a new name to circumvent the issue is the only possibility.

#### Expected behavior

To be able to change from dotnet-isolated to dotnet.

#### Actual behavior
Even after changing to dotnet we get the below error:

![Image](https://github.com/user-attachments/assets/422e2365-90fb-4005-9093-7e07e52d1c33)

![Image](https://github.com/user-attachments/assets/cb83fa4e-e1c4-437a-b107-eb28b157cd8c)

#### Known workarounds

Redeploy the function app with a different name. Redeploying with same name will cause the issue to persist.

#### Related information

Source

module functionApp 'br/public:avm/res/web/site:0.15.0' = {
name: 'functionApp-${uniqueString('functionApp', deployment().name)}'
scope: resourceGroup(resourceGroupConfiguration.name)
params: {
kind: 'functionapp,linux'
name: functionAppConfiguration.name
serverFarmResourceId: serverFarm.outputs.resourceId
appSettingsKeyValuePairs: {
AzureFunctionsJobHost__logging__logLevel__default: 'Trace'
FUNCTIONS_EXTENSION_VERSION: '~4'
FUNCTIONS_WORKER_RUNTIME: 'dotnet'
}
siteConfig: {
appSettings: union(
[
{
name: 'FUNCTIONS_INPROC_NET8_ENABLED'
value: '1'
}
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
value: applicationInsights.outputs.instrumentationKey
}
{
name: 'WEBSITE_RUN_FROM_PACKAGE'
value: '1'
}
{
name: 'WEBSITE_WEBDEPLOY_USE_SCM'
value: 'false'
}
{
name: 'AzureWebJobsStorage'
value: 'DefaultEndpointsProtocol=https;AccountName=${sa.outputs.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${existingStorageAccount.listKeys().keys[0].value}'
}
{
name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING'
value: 'DefaultEndpointsProtocol=https;AccountName=${sa.outputs.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${existingStorageAccount.listKeys().keys[0].value}'
}
{
name: 'WEBSITE_CONTENTSHARE'
value: toLower(functionAppConfiguration.name)
}
],
functionAppConfiguration.additionalAppsettings ?? []
)
netFrameworkVersion: '8.0'
ftpsState: 'FtpsOnly'
minTlsVersion: '1.2'
alwaysOn: true
ipSecurityRestrictions: ipSecurityRestrictions
}
httpsOnly: true
virtualNetworkSubnetId: subnet.outputs.subnet.resourceId
managedIdentities: {
systemAssigned: true
userAssignedResourceIds: [
uami.outputs.resourceId
]
}
roleAssignments: [
{
principalId: uami.outputs.principalId
roleDefinitionIdOrName: 'de139f84-1756-47ae-9be6-808fbbe84772' // Website Contributor
}
{
principalId: uami.outputs.principalId
roleDefinitionIdOrName: '4633458b-17de-408a-b874-0445c86b69e6' // Key Vault Secrets User
}
]
storageAccountResourceId: sa.outputs.resourceId
storageAccountUseIdentityAuthentication: false
vnetRouteAllEnabled: true
appInsightResourceId: applicationInsights.outputs.resourceId
}
dependsOn: [rg]
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.