-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Shell] Azure CLI receives corrupted arguments in PowerShell #15529
Labels
Milestone
Comments
ghost
added
the
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
label
Oct 15, 2020
ghost
removed
the
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
label
Oct 15, 2020
yonzhan
added
the
Service Attention
This issue is responsible by Azure service team.
label
Oct 15, 2020
This was referenced Feb 20, 2021
Closed
3 tasks
The PowerShell issue seems to be fixed in PowerShell 7.3 : PowerShell/PowerShell#1995 (comment) |
3 tasks
This was referenced Mar 1, 2024
This was referenced Apr 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
When invoking
az
in PowerShell, due to the known issue of PowerShell PowerShell/PowerShell#1995, arguments passed to Azure CLI may get corrupted. For example, literal double quotes ("
) are lost:This contradicts the behavior of Bash:
Impact
This is mainly affecting
az rest --body {JSON}
(Cannot change the signInAudience using the Microsoft Graph API #15512)--query
(az version --query "azure-cli" should return version number and not throw error #13152)Workaround
Until this issue is fixed by PowerShell, arguments with special characters (
"
,,
,&
...) need to be escaped twice, one for CMD, one for PowerShell.More info: Quoting issues with PowerShell
The text was updated successfully, but these errors were encountered: