Azure / Azure/azure-cli

Invalid .NET version

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

Description

### Describe the bug

.NET framework version value in "az functionapp config set" generates warning/error

### Related command

az functionapp config set

### Errors

Invalid version: for runtime dotnet-isolated and os windows. Supported versions for runtime dotnet-isolated and os windows are: ['.4.8', '8', '7', '6']. Run 'az functionapp list-runtimes' for more details on supported runtimes.

### Issue script & Debug output

az functionapp config set name "appname" --resource-group "groupname" --slot "slot" --net-framework-version v7.0

### Expected behavior

It should not produce any error because I've tried using "7.0", "7", "v7" and "v7.0" and they all produce the same message. The warning is displayed even when the command used the correct net-framework-version value.

### Environment Summary

azure-cli 2.57.0

core 2.57.0
telemetry 1.1.0

Extensions:
ai-examples 0.2.5
ml 2.22.0
ssh 2.0.2

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

### Additional context

This warning occurs when we run our ADO pipeline, thus causing the pipeline to fail. This was a new issue since nothing is changed on our pipeline since the last successful run. I think the issue is within the _FunctionAppStackRuntimeHelper which is recently added through this - https://github.com/Azure/azure-cli/blame/87dec2c86a39da9cc056697a92a234da86c97646/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L409

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.