Open claasd opened 6 years ago
Confirmed this is a bug. Tags are not registered properly in params.py
cc @ericwol-msft
i am also facing an issue. let me know how to type the tag name. i am doing like this: --tags 'AutoStartOn=true' It is giving following error: ValidationError: Parameter 'tags' must be of type 'dict[str, str]'
I am also hitting the same validation error when trying to apply tags.
ValidationError: Parameter 'tags' must be of type 'dict[str, str]'
Describe the bug When using --tags with lb vm create, a error message
Parameter 'tags' must be of type '{str}'
is thrown.I tried different escaping methods, none of them worked.
To Reproduce in the azure CLI, use the command
az lab vm create --lab-name someLab -g someRG --name insidious-string --image "Ubuntu Server 18.04 LTS" --image-type gallery --tags 'AutoStartOn=true' --size Standard_D2_v3
Expected behavior The VM should be created with the tag set, no exception is thrown.
Environment summary Azure CLI embedded in the azure portal:
Additional context Might be related to #5496