Hello Neil, I came across this thread which is really usefull nad made me understand more about querying. However, I visited your repo for graph samples and ran the az command
az graph query -q "where type =~ 'microsoft.storage/storageAccounts' and aliases['Microsoft.Storage/storageAccounts/networkAcls.defaultAction'] == 'Allow'" --output table
I got 4 errors as follows
{
"code": "BadRequest",
"message": "Please provide below info when asking for support: timestamp = 2023-12-28T12:39:27.0323159Z, correlationId = 71ee93dc-892a-4acd-a206-ad1909806d44.",
"details": [
{
"code": "InvalidQuery",
"message": "Query is invalid. Please refer to the documentation for the Azure Resource Graph service and fix the error before retrying."
},
{
"code": "Default",
"message": "Ensure that expression: aliases.[\"Microsoft.Storage/storageAccounts/networkAcls.defaultAction\"] is indeed a simple name"
},
{
"code": "Operator_FailedToResolveEntity",
"message": "'where' operator: Failed to resolve column or scalar expression named 'aliases.[\"Microsoft.Storage/storageAccounts/networkAcls.defaultAction\"]'"
},
{
"code": "Default",
"message": "Filter expression should be Boolean"
}
]
}
Can you help as I am new to this graph stuff? Thanks again