Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az ad group: Group names with '&' in them get split at the point where the '&' appears #24209

Closed
liamehenderson opened this issue Oct 14, 2022 · 3 comments
Assignees
Labels
AAD Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad
Milestone

Comments

@liamehenderson
Copy link

liamehenderson commented Oct 14, 2022

Describe the bug

Command Name
az ad group show --group "Hello_&_World" --query id --output tsv

Errors:

No group matches the name of 'Hello_'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Have an AAD group with an '&' in the name
  • az ad group show --group {} --query id --output tsv

Expected Behavior

az ad command can handle group names that have "&" in them. Previously had to use a workaround with --% though with 2.40 this is apparently no longer needed https://github.com/Azure/azure-cli/blob/dev/doc/quoting-issues-with-powershell.md and was working fine until 2.41

Environment Summary

Windows-10-10.0.19042-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.41.0

Extensions:
azure-devops 0.17.0

Dependencies:
msal 1.20.0b1
azure-mgmt-resource 21.1.0b1

Additional Context

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Graph az ad labels Oct 14, 2022
@ghost ghost assigned jiasli Oct 14, 2022
@ghost ghost added this to the Backlog milestone Oct 14, 2022
@ghost ghost added the AAD label Oct 14, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 14, 2022

@jiasli for awareness

@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Oct 14, 2022
@liamehenderson
Copy link
Author

Have put the --% workaround back into our scripts which seems to have solved it on 2.41

az --% ad group show --group "Hello_&_World" --query id --output tsv

@yonzhan yonzhan closed this as completed Oct 14, 2022
@jiasli
Copy link
Member

jiasli commented Oct 17, 2022

We reverted #23514 in #24015. az is now still az.cmd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAD Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad
Projects
None yet
Development

No branches or pull requests

3 participants