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

Get-AzADUser throws syntax error when DisplayName contains a quote #11317

Closed
cveld opened this issue Mar 13, 2020 · 1 comment · Fixed by #11323
Closed

Get-AzADUser throws syntax error when DisplayName contains a quote #11317

cveld opened this issue Mar 13, 2020 · 1 comment · Fixed by #11323
Labels
AAD AzAd cmdlets in Az.Resources Azure PS Team customer-reported

Comments

@cveld
Copy link

cveld commented Mar 13, 2020

Version: 3.6.1

Repro step:
Get-AzADUser -DisplayName 'Carl in ''t Veld'

Results in:
Get-AzADUser : Syntax error at position 26 in 'displayName eq 'Carl in 't Veld''.

Expected behavior:
A successful retrieval of an ADUser object.

@dingmeng-xue
Copy link
Member

Will be fixed in the upcoming release. The workaround is adding another single quote

Get-AzADUser -DisplayName 'Carl in ''''t Veld'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAD AzAd cmdlets in Az.Resources Azure PS Team customer-reported
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants