Skip to content

[Generic Update] Not able to include equal sign (=) in the value field  #2527

@xscript

Description

@xscript

A user complains that when using a generic update command to update service properties, warnings will be displayed if the value contains equal sign. Property update will be dropped. You can refer to the following example.

>az iot hub update -n kevinzha-hub --set properties.storageEndpoints.$default.connectionString=Defau
ltEndpointsProtocol=https;AccountName=xxx;AccountKey=xxx

Property 'connection_string=_default_endpoints_protocol=https;_account_name=xxx;_account_key' not fo
und on $default. Update may be ignored.

The root cause of this issue is at line 469 of arm.py. rsplit is used to parse the key and value. This means that value field can't include equal signs.
Is this by design? If not, the input key value expression shall be parsed more carefully.
I'd like to hear opinions from you guys.
Thanks very much!

Metadata

Metadata

Assignees

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions