Skip to content

2.77.0 "6in" value causes error "<unknown>:1: SyntaxWarning: invalid decimal literal" #32084

@xyanide

Description

@xyanide

Describe the bug

When trying to update an app service setting that contains 6in, it fails with the error <unknown>:1: SyntaxWarning: invalid decimal literal.
It doesn't matter if I escape the value with double quotes or not.

Also no matter where 6in occurs, it will always throw that error.
The value is properly saved though, but the error is interpreted as an error and fails the pipeline because of it.

Related command

az webapp config appsettings set --name {name} --resource-group {resourceGroup} --settings TestKey=6in

Errors

<unknown>:1: SyntaxWarning: invalid decimal literal

Issue script & Debug output

az webapp config appsettings set --name {name} --resource-group {resourceGroup} --settings TestKey=6in

Expected behavior

The value is saved and no error message is thrown.

Environment Summary

azure-cli: 2.77.0
core: 2.77.0
telemetry: 1.1.0
dependencies:

  • msal: 1.34.0b1
  • azure.mgmt-resource: 23.3.0

Also observed this on 2.67.0. and 2.73.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.Web Appsaz webappapp-service-generalbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions