azure-cli
azure-cli copied to clipboard
az functionapp config appsettings set : "Runtime docker not supported for os linux."
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 .
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
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
Thanks for referencing https://github.com/Azure/azure-cli/issues/27724, these warning messages still break several build pipelines in our infrastructure.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
This issue is still present in azure-cli version 2.6.1. The false error message is shown when a functionapp is configured:
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', '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.
The functionapp runs correctly, using Docker on Linux.