Tried with and without -SkipPolicy -SkipAdvisory -SkipDiagram parameters.
Also tried -SkipDiagram -HeavyLoad
I am seeing the following with or without above parameteters.
Out of 10 subscriptions, the script worked fine on 9 of them. I'm only having an issue with 1 subscription or when I try to run it on the entire tenant.
DEBUG: 2024-07-03_17_43_26 - Total Number of Resources Found: 3957
az : ERROR: {
At C:\Users\winvmadmin\Downloads\ARI-main\ARI-main\AzureResourceInventory.ps1:597 char:49
+ ... ryResult = (az graph query -q $GraphQuery --subscriptions $FSubscri - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ERROR: {:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
"code": "BadRequest",
"message": "Please provide below info when asking for support: timestamp = 2024-07-03T07:44:08.8214276Z, correlationId = fa7645b7-c780-42ca-96ad-4625e9879662.",
"details": [
{
"code": "ResponsePayloadTooLarge",
"message": "Response payload size is 94330584, and has exceeded the limit of 16777216. Please consider querying less data at a time and make paginated call if needed."
}
]
}
You cannot call a method on a null-valued expression.
At C:\Users\winvmadmin\Downloads\ARI-main\ARI-main\AzureResourceInventory.ps1:597 char:33
+ ... $QueryResult = (az graph query -q $GraphQuery --subscript ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
az : ERROR: {
At C:\Users\winvmadmin\Downloads\ARI-main\ARI-main\AzureResourceInventory.ps1:597 char:49
+ ... ryResult = (az graph query -q $GraphQuery --subscriptions $FSubscri - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (ERROR: {:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
"code": "BadRequest",
"message": "Please provide below info when asking for support: timestamp = 2024-07-03T07:44:15.8046345Z, correlationId = 3fb4df28-0bd4-45e3-b958-0345cb4a6134.",
"details": [
{
"code": "ResponsePayloadTooLarge",
"message": "Response payload size is 19377946, and has exceeded the limit of 16777216. Please consider querying less data at a time and make paginated call if needed."
}
]
}
You cannot call a method on a null-valued expression.
At C:\Users\winvmadmin\Downloads\ARI-main\ARI-main\AzureResourceInventory.ps1:597 char:33
+ ... $QueryResult = (az graph query -q $GraphQuery --subscript ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
DEBUG: 2024-07-03_17_44_42 - Invoking Inventory Loop for Network Resources
.
.
.
.
DEBUG: 2024-07-03_17_47_56 - Jobs Still Running: 9
Running resources | where strlen(properties) > 123000 | summarize count() by ['type'],subscriptionId shows the following list:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
Using 3.1.27.
Tried with and without
-SkipPolicy -SkipAdvisory -SkipDiagram
parameters.Also tried
-SkipDiagram -HeavyLoad
I am seeing the following with or without above parameteters.
Out of 10 subscriptions, the script worked fine on 9 of them. I'm only having an issue with 1 subscription or when I try to run it on the entire tenant.
Running
TYPE | SUBSCRIPTIONID | COUNT_ -- | -- | -- microsoft.insights/workbooktemplates | * | 2 microsoft.network/applicationgateways | * | 2 microsoft.network/networksecuritygroups | * | 1 microsoft.resources/templatespecs/versions | * | 382 microsoft.logic/workflows | * | 9resources | where strlen(properties) > 123000 | summarize count() by ['type'],subscriptionId
shows the following list: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">