Azure / Azure/azure-cli

az functionapp config appsettings set : "Runtime docker not supported for os linux."

Open
#28,382 14 comments 5 reactions 4 assignees Claimed by @kamperiadis View on GitHub
act-observability-squad Auto-Assign azf_bug azf_reviewed azf_triaged bug customer-reported Functions Service Attention Web Apps
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Using:
```
azure-cli 2.57.0

core 2.57.0
telemetry 1.1.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2
```

Created an Azure function with:

```
az functionapp create --name "$function_name" `
--storage-account "$storage_account_id" `
--plan "$plan_id" `
--resource-group "$resource_group" `
--functions-version "$functions_version" `
--image "$container_registry.azurecr.io/$image_name" `
--registry-password "$password" `
--registry-username "$username" `
--disable-app-insights
```

This command produces the warning

```
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
```

which refers to [https://github.com/Azure/azure-cli/issues/27724](https://github.com/Azure/azure-cli/issues/27724) .

Once the Azure Function has been created, configuring it with

```
az functionapp config appsettings set `
--name $function_name --resource-group $resource_group `
--settings SOME_SETTING="some value"
```

produces the warning message

```
Runtime docker not supported for os linux. Supported runtimes for os linux are: ['dotnet-isolated', 'dotnet-isolated', 'dotnet-isolated', 'dotnet', 'node', 'node', 'node', 'node', 'python', 'python', 'python', 'python', 'python', 'java', 'java', 'java', 'java', 'powershell', 'custom']. Run 'az functionapp list-runtimes' for more details on supported runtimes.
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
```

This appears to be a false warning message, since the container runs as expected on the Linux host. This warning message has started appearing after updating to a more modern Azure CLI version.

### Related command

az functionapp config appsettings set

### Errors

```
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
```
```
Runtime docker not supported for os linux. Supported runtimes for os linux are: ['dotnet-isolated', 'dotnet-isolated', 'dotnet-isolated', 'dotnet', 'node', 'node', 'node', 'node', 'python', 'python', 'python', 'python', 'python', 'java', 'java', 'java', 'java', 'powershell', 'custom']. Run 'az functionapp list-runtimes' for more details on supported runtimes.
App settings have been redacted. Use `az webapp/logicapp/functionapp config appsettings list` to view.
```

### Issue script & Debug output

This would include too much personal data.

### Expected behavior

Do not expect to see either warning message, since this type of deployment has worked for several years. The warning messages have only started appearing with a more recent version of the CLI.

### Environment Summary

```
azure-cli 2.57.0

core 2.57.0
telemetry 1.1.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Users\*******\AppData\Local\Programs\Python\Python311\python.exe'
Extensions directory 'C:\Users\*******\.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.
```

### Additional context

_No response_

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.