Open o-l-a-v opened 3 hours ago
Might be relevant: I started researching changing out Search-AzGraph
with Invoke-AzRestMethod
and found that PowerShell could not convert $Response.content
from JSON to PSCustomObject with error:
PS > ConvertFrom-Json -InputObject $Response.'content'
ConvertFrom-Json: The provided JSON includes a property whose name is an empty string, this is only supported using the -AsHashTable switch.
PS >
So the JSON response from the Azure RM API clearly contains a "property whose name is an empty string".
Description
Following query works in Azure Resource Graph Explorer in the Azure portal ( https://portal.azure.com/#view/HubsExtension/ArgQueryBlade ), and if running
Search-AzGraph
with-Debug
I can see that the API returns data.But
Search-AzGraph
fails with error:Issue script & Debug output
Environment data
Module versions
Error output