Azure / Azure/azure-cli

Failed to create a tag starting with -- in Azure portal with CLI commands

Open
#23,666 5 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
1. az group create --location eastus --name tagtest --tags "--key=value"
2. az group create --location eastus --name tagtest --tags "--key"="value"

**Describe the bug**
1. Failed to create a tag starting with "--". Such as "--key:value".
2. But in Azure portal, tag name starting with "--" can be created successfully.
![image](https://user-images.githubusercontent.com/40862198/186633078-470067c4-8c0b-403e-b8d6-6b48c6188c58.png)

**To Reproduce**
1. Create a tag in Azure Portal with CLI commands. For example, a resource group with a tag "--key:value".

**Expected behavior**
1. A tag starting with "--" can be created successfully using CLI commands.

**Environment summary**

1. azure-cli 2.39.0

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.