az rest
fails to parse json response
#28296
Labels
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Similar-Issue
Milestone
Describe the bug
A couple of days ago our deployment script suddenly stopped working due to the errors listed below. We use
az rest
to do some querying & configuration on deployment to Azure, and suddenly all our services are affected. I did not notice any version update in anything related toaz
leading to this error. I can run our script locally, and it works fine (using the same version ofaz
). The only difference between my machine and CI/CD runner is that I run Windows 11 and CI/CD worker has Ubuntu.Related command
az rest -m GET -u $spUrl --url-parameters $principalQuery
where
$spUrl = 'https://graph.microsoft.com/v1.0/servicePrincipals'
$principalQuery = "{`"`$select`":`"id, displayName`",`"`$filter`":`"displayName eq '<removed>'`"}"
Errors
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
Issue script & Debug output
Expected behavior
As was the case, the query above returns service principal with the given name.
Environment Summary
Additional context
No response
The text was updated successfully, but these errors were encountered: