Skip to content

az ad group show --group breaks with group names that use + in v2.37 #22700

@jtmackoy

Description

@jtmackoy

Related command
az ad group show --group <group_name>

Describe the bug
Prior to v2.37 of the azure-cli, this command would complete successfully:
az ad group show --group some_group+
As of v2.37 that same command returns the following error:
No group matches the name of 'some_group+'

If you execute the same command on another group that does not have the + in its name:
az ad group show --group some_group
...then the command completes successfully.

To Reproduce

  1. Ensure az --version returns a version < 2.37.
  2. az ad group show --group some_group+ - command successful.
  3. Upgrade azure-cli to version 2.37.
  4. az ad group show --group some_group+ - command fails.

Further, no amount of shell escaping results in success:

  • az ad group show --group "some_group+" - command fails.
  • az ad group show --group 'some_group+' - command fails.
  • az ad group show --group some_group\+ - command fails.

Expected behavior
I suspect this behavior is a result of the recent move from the Active Directory Graph API to the Microsoft Graph API when upgrading to v2.37 of the azure-cli. That said, I think there is a reasonable expectation that rules around illegal characters should at least be harmonized between the two graphs before migrating from one to the other.

I found no mention of this behavior in the documentation I was able to locate on the differences between the two graphs.

Environment summary
Experienced in Azure Cloud Shell which recently upgraded azure-cli to v2.37, and also in an installed azure-cli instance on a Manjaro Linux workstation.

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions