question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] ResourcesAsync does not return consistent results

See original GitHub issue

Describe the bug ResourcesAsync does not return consistent results where it’s returning less results now and then.

Expected behavior When doing 5 identical calls in a row and not changing the infrastructure, I expect to receive the same result.

Actual behavior (include Exception or Stack Trace) When doing 5 identical calls, I’m getting different result sets for the same query.

To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

  1. Build query:
Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id
  1. Call graphClient.ResourcesAsync(queryRequest)

  2. Get different results

It’s logging following information: (so you can search on it)

  • Total records
  • Result Truncated
  • Raw Result
Logs
[14:34:41 INF] Request starting HTTP/1.1 GET http://localhost:777/api/v1/resources/groups/two-region-scenario/discover  
[14:34:41 DBG] Wildcard detected, all requests with hosts will be allowed.
[14:34:41 VRB] All hosts are allowed.
[14:34:41 DBG] 1 candidate(s) found for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:41 DBG] Endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)' with route pattern 'api/v1/resources/groups/{resourceDiscoveryGroup}/discover' is valid for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:41 DBG] Request matched endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:41 DBG] Static files was skipped as the request already matched an endpoint.
[14:34:41 INF] Executing endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:41 DBG] Registered model binder providers, in the following order: ["Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatingPointTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.EnumTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CancellationTokenModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ByteArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormFileModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DictionaryModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinderProvider"]
[14:34:41 INF] Route matched with {action = "Get", controller = "Discovery"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.String) on controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery).
[14:34:41 DBG] Execution plan of authorization filters (in the following order): ["None"]
[14:34:41 DBG] Execution plan of resource filters (in the following order): ["None"]
[14:34:41 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[14:34:41 DBG] Execution plan of exception filters (in the following order): ["None"]
[14:34:41 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[14:34:41 DBG] Executing controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:41 DBG] Executed controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:41 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:41 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' using the name 'resourceDiscoveryGroup' in request data ...
[14:34:41 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:41 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:41 DBG] Attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:41 DBG] Done attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:41 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:41 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:41 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:41 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:41 INF] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) - Validation state: Valid
[14:34:41 VRB] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) with arguments (["two-region-scenario"])
[14:34:43 DBG] Total records: 12
[14:34:43 DBG] Result Truncated: False
[14:34:43 DBG] Raw Result: {
  "columns": [
    {
      "name": "subscriptionId",
      "type": "string"
    },
    {
      "name": "resourceGroup",
      "type": "string"
    },
    {
      "name": "type",
      "type": "string"
    },
    {
      "name": "name",
      "type": "string"
    },
    {
      "name": "id",
      "type": "string"
    }
  ],
  "rows": [
    [
      "0329dd2a-59dc-4493-aa54-cb01cb027dc2",
      "arcus",
      "microsoft.logic/workflows",
      "Arcus-Infrastructure",
      "/subscriptions/0329dd2a-59dc-4493-aa54-cb01cb027dc2/resourceGroups/arcus/providers/Microsoft.Logic/workflows/Arcus-Infrastructure"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-k8s-event-bridge",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-k8s-event-bridge"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-keda",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-keda"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-promitor-discovery",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-promitor-discovery"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-promitor-scraper",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-promitor-scraper"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "k8s-event-bridge",
      "microsoft.logic/workflows",
      "k8s-event-bridge-processor",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/k8s-event-bridge/providers/Microsoft.Logic/workflows/k8s-event-bridge-processor"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-sandbox",
      "microsoft.logic/workflows",
      "promitor-automation-github-registry-events-sandbox",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-sandbox/providers/Microsoft.Logic/workflows/promitor-automation-github-registry-events-sandbox"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-1",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-1"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-2",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-2"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-3",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-3"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor",
      "microsoft.logic/workflows",
      "promitor-automation-github-ci-scraper",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Logic/workflows/promitor-automation-github-ci-scraper"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor",
      "microsoft.logic/workflows",
      "promitor-automation-github-new-sponsor",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Logic/workflows/promitor-automation-github-new-sponsor"
    ]
  ]
}
[14:34:43 INF] Dependency Azure Resource Graph Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id named Query in 00:00:00.9091330 at 08/20/2020 14:34:42 +00:00 (Successful: True - Context: {"Query": "Resources\n| where type == tolower('microsoft.logic/workflows')\n| where location == 'northeurope' or location == 'westeurope'\n| project subscriptionId, resourceGroup, type, name, id", "Subscriptions": ["0329dd2a-59dc-4493-aa54-cb01cb027dc2", "0f9d7fea-99e8-4768-8672-06a28514f77e"]})
[14:34:43 INF] Metric Discovered Resources: 12 at 08/20/2020 14:34:43 +00:00 (Context: {"ResourceType": "LogicApp", "CollectionName": "two-region-scenario"})
[14:34:43 INF] Executed action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery), returned result Microsoft.AspNetCore.Mvc.ContentResult in 1981.2658ms.
[14:34:43 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:43 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:43 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:43 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:43 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:43 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:43 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:43 INF] Executing ContentResult with HTTP Response ContentType of application/json
[14:34:43 VRB] Setting correlation response header 'X-Transaction-ID' to '169031d4-3f16-4d7a-a124-9a63dfe15b57'
[14:34:43 VRB] Setting correlation response header 'RequestId' to '0HM252OMBOJKS:00000001'
[14:34:43 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:43 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:43 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:43 INF] Executed action Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) in 2089.7476ms
[14:34:43 INF] Executed endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:43 INF] HTTP Request GET http://localhost:777//api/v1/resources/groups/two-region-scenario/discover completed with 200 in 00:00:02.2746093 at 08/20/2020 14:34:43 +00:00 - (Context: {"Host": ["localhost:777"]})
[14:34:43 INF] Request finished in 2311.5602ms 200 application/json
[14:34:44 INF] Request starting HTTP/1.1 GET http://localhost:777/api/v1/resources/groups/two-region-scenario/discover  
[14:34:44 VRB] All hosts are allowed.
[14:34:44 DBG] 1 candidate(s) found for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:44 DBG] Endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)' with route pattern 'api/v1/resources/groups/{resourceDiscoveryGroup}/discover' is valid for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:44 DBG] Request matched endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:44 DBG] Static files was skipped as the request already matched an endpoint.
[14:34:44 INF] Executing endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:44 INF] Route matched with {action = "Get", controller = "Discovery"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.String) on controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery).
[14:34:44 DBG] Execution plan of authorization filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of resource filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[14:34:44 DBG] Execution plan of exception filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[14:34:44 DBG] Executing controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:44 DBG] Executed controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:44 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:44 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' using the name 'resourceDiscoveryGroup' in request data ...
[14:34:44 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 DBG] Attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:44 DBG] Done attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 INF] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) - Validation state: Valid
[14:34:44 VRB] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) with arguments (["two-region-scenario"])
[14:34:44 DBG] Total records: 1
[14:34:44 DBG] Result Truncated: False
[14:34:44 DBG] Raw Result: {
  "columns": [
    {
      "name": "subscriptionId",
      "type": "string"
    },
    {
      "name": "resourceGroup",
      "type": "string"
    },
    {
      "name": "type",
      "type": "string"
    },
    {
      "name": "name",
      "type": "string"
    },
    {
      "name": "id",
      "type": "string"
    }
  ],
  "rows": [
    [
      "0329dd2a-59dc-4493-aa54-cb01cb027dc2",
      "arcus",
      "microsoft.logic/workflows",
      "Arcus-Infrastructure",
      "/subscriptions/0329dd2a-59dc-4493-aa54-cb01cb027dc2/resourceGroups/arcus/providers/Microsoft.Logic/workflows/Arcus-Infrastructure"
    ]
  ]
}
[14:34:44 INF] Dependency Azure Resource Graph Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id named Query in 00:00:00.6627801 at 08/20/2020 14:34:44 +00:00 (Successful: True - Context: {"Query": "Resources\n| where type == tolower('microsoft.logic/workflows')\n| where location == 'northeurope' or location == 'westeurope'\n| project subscriptionId, resourceGroup, type, name, id", "Subscriptions": ["0329dd2a-59dc-4493-aa54-cb01cb027dc2", "0f9d7fea-99e8-4768-8672-06a28514f77e"]})
[14:34:44 INF] Metric Discovered Resources: 1 at 08/20/2020 14:34:44 +00:00 (Context: {"ResourceType": "LogicApp", "CollectionName": "two-region-scenario"})
[14:34:44 INF] Executed action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery), returned result Microsoft.AspNetCore.Mvc.ContentResult in 675.069ms.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:44 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:44 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:44 INF] Executing ContentResult with HTTP Response ContentType of application/json
[14:34:44 VRB] Setting correlation response header 'X-Transaction-ID' to '7e28629e-d4c6-445e-bc9b-44d8aaed5fe7'
[14:34:44 VRB] Setting correlation response header 'RequestId' to '0HM252OMBOJKS:00000002'
[14:34:44 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:44 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:44 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:44 INF] Executed action Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) in 695.1052ms
[14:34:44 INF] Executed endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:44 INF] HTTP Request GET http://localhost:777//api/v1/resources/groups/two-region-scenario/discover completed with 200 in 00:00:00.7092331 at 08/20/2020 14:34:44 +00:00 - (Context: {"Host": ["localhost:777"]})
[14:34:44 INF] Request finished in 710.35ms 200 application/json
[14:34:44 INF] Request starting HTTP/1.1 GET http://localhost:777/api/v1/resources/groups/two-region-scenario/discover  
[14:34:44 VRB] All hosts are allowed.
[14:34:44 DBG] 1 candidate(s) found for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:44 DBG] Endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)' with route pattern 'api/v1/resources/groups/{resourceDiscoveryGroup}/discover' is valid for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:44 DBG] Request matched endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:44 DBG] Static files was skipped as the request already matched an endpoint.
[14:34:44 INF] Executing endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:44 INF] Route matched with {action = "Get", controller = "Discovery"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.String) on controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery).
[14:34:44 DBG] Execution plan of authorization filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of resource filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[14:34:44 DBG] Execution plan of exception filters (in the following order): ["None"]
[14:34:44 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[14:34:44 DBG] Executing controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:44 DBG] Executed controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:44 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:44 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' using the name 'resourceDiscoveryGroup' in request data ...
[14:34:44 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 DBG] Attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:44 DBG] Done attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:44 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:44 INF] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) - Validation state: Valid
[14:34:44 VRB] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) with arguments (["two-region-scenario"])
[14:34:45 DBG] Total records: 1
[14:34:45 DBG] Result Truncated: False
[14:34:45 DBG] Raw Result: {
  "columns": [
    {
      "name": "subscriptionId",
      "type": "string"
    },
    {
      "name": "resourceGroup",
      "type": "string"
    },
    {
      "name": "type",
      "type": "string"
    },
    {
      "name": "name",
      "type": "string"
    },
    {
      "name": "id",
      "type": "string"
    }
  ],
  "rows": [
    [
      "0329dd2a-59dc-4493-aa54-cb01cb027dc2",
      "arcus",
      "microsoft.logic/workflows",
      "Arcus-Infrastructure",
      "/subscriptions/0329dd2a-59dc-4493-aa54-cb01cb027dc2/resourceGroups/arcus/providers/Microsoft.Logic/workflows/Arcus-Infrastructure"
    ]
  ]
}
[14:34:45 INF] Dependency Azure Resource Graph Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id named Query in 00:00:00.5712211 at 08/20/2020 14:34:44 +00:00 (Successful: True - Context: {"Query": "Resources\n| where type == tolower('microsoft.logic/workflows')\n| where location == 'northeurope' or location == 'westeurope'\n| project subscriptionId, resourceGroup, type, name, id", "Subscriptions": ["0329dd2a-59dc-4493-aa54-cb01cb027dc2", "0f9d7fea-99e8-4768-8672-06a28514f77e"]})
[14:34:45 INF] Metric Discovered Resources: 1 at 08/20/2020 14:34:45 +00:00 (Context: {"ResourceType": "LogicApp", "CollectionName": "two-region-scenario"})
[14:34:45 INF] Executed action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery), returned result Microsoft.AspNetCore.Mvc.ContentResult in 577.3873ms.
[14:34:45 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:45 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:45 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:45 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:45 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:45 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:45 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:45 INF] Executing ContentResult with HTTP Response ContentType of application/json
[14:34:45 VRB] Setting correlation response header 'X-Transaction-ID' to '33956c11-c781-4ef1-91fe-cce577abd82a'
[14:34:45 VRB] Setting correlation response header 'RequestId' to '0HM252OMBOJKS:00000003'
[14:34:45 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:45 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:45 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:45 INF] Executed action Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) in 586.4105ms
[14:34:45 INF] Executed endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:45 INF] HTTP Request GET http://localhost:777//api/v1/resources/groups/two-region-scenario/discover completed with 200 in 00:00:00.5922470 at 08/20/2020 14:34:45 +00:00 - (Context: {"Host": ["localhost:777"]})
[14:34:45 INF] Request finished in 593.6414ms 200 application/json
[14:34:45 INF] Request starting HTTP/1.1 GET http://localhost:777/api/v1/resources/groups/two-region-scenario/discover  
[14:34:45 VRB] All hosts are allowed.
[14:34:45 DBG] 1 candidate(s) found for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:45 DBG] Endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)' with route pattern 'api/v1/resources/groups/{resourceDiscoveryGroup}/discover' is valid for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:45 DBG] Request matched endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:45 DBG] Static files was skipped as the request already matched an endpoint.
[14:34:45 INF] Executing endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:45 INF] Route matched with {action = "Get", controller = "Discovery"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.String) on controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery).
[14:34:45 DBG] Execution plan of authorization filters (in the following order): ["None"]
[14:34:45 DBG] Execution plan of resource filters (in the following order): ["None"]
[14:34:45 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[14:34:45 DBG] Execution plan of exception filters (in the following order): ["None"]
[14:34:45 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[14:34:45 DBG] Executing controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:45 DBG] Executed controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:45 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:45 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' using the name 'resourceDiscoveryGroup' in request data ...
[14:34:45 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:45 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:45 DBG] Attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:45 DBG] Done attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:45 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:45 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:45 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:45 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:45 INF] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) - Validation state: Valid
[14:34:45 VRB] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) with arguments (["two-region-scenario"])
[14:34:46 DBG] Total records: 12
[14:34:46 DBG] Result Truncated: False
[14:34:46 DBG] Raw Result: {
  "columns": [
    {
      "name": "subscriptionId",
      "type": "string"
    },
    {
      "name": "resourceGroup",
      "type": "string"
    },
    {
      "name": "type",
      "type": "string"
    },
    {
      "name": "name",
      "type": "string"
    },
    {
      "name": "id",
      "type": "string"
    }
  ],
  "rows": [
    [
      "0329dd2a-59dc-4493-aa54-cb01cb027dc2",
      "arcus",
      "microsoft.logic/workflows",
      "Arcus-Infrastructure",
      "/subscriptions/0329dd2a-59dc-4493-aa54-cb01cb027dc2/resourceGroups/arcus/providers/Microsoft.Logic/workflows/Arcus-Infrastructure"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-k8s-event-bridge",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-k8s-event-bridge"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-keda",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-keda"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-promitor-discovery",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-promitor-discovery"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "docker-hub-metrics",
      "microsoft.logic/workflows",
      "docker-hub-metrics-triggers-promitor-scraper",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/docker-hub-metrics/providers/Microsoft.Logic/workflows/docker-hub-metrics-triggers-promitor-scraper"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "k8s-event-bridge",
      "microsoft.logic/workflows",
      "k8s-event-bridge-processor",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/k8s-event-bridge/providers/Microsoft.Logic/workflows/k8s-event-bridge-processor"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-sandbox",
      "microsoft.logic/workflows",
      "promitor-automation-github-registry-events-sandbox",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-sandbox/providers/Microsoft.Logic/workflows/promitor-automation-github-registry-events-sandbox"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-1",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-1"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-2",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-2"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor-testing-resource-discovery-eu",
      "microsoft.logic/workflows",
      "promitor-testing-resource-discovery-eu-3",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor-testing-resource-discovery-eu/providers/Microsoft.Logic/workflows/promitor-testing-resource-discovery-eu-3"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor",
      "microsoft.logic/workflows",
      "promitor-automation-github-ci-scraper",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Logic/workflows/promitor-automation-github-ci-scraper"
    ],
    [
      "0f9d7fea-99e8-4768-8672-06a28514f77e",
      "promitor",
      "microsoft.logic/workflows",
      "promitor-automation-github-new-sponsor",
      "/subscriptions/0f9d7fea-99e8-4768-8672-06a28514f77e/resourceGroups/promitor/providers/Microsoft.Logic/workflows/promitor-automation-github-new-sponsor"
    ]
  ]
}
[14:34:46 INF] Dependency Azure Resource Graph Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id named Query in 00:00:00.6662057 at 08/20/2020 14:34:45 +00:00 (Successful: True - Context: {"Query": "Resources\n| where type == tolower('microsoft.logic/workflows')\n| where location == 'northeurope' or location == 'westeurope'\n| project subscriptionId, resourceGroup, type, name, id", "Subscriptions": ["0329dd2a-59dc-4493-aa54-cb01cb027dc2", "0f9d7fea-99e8-4768-8672-06a28514f77e"]})
[14:34:46 INF] Metric Discovered Resources: 12 at 08/20/2020 14:34:46 +00:00 (Context: {"ResourceType": "LogicApp", "CollectionName": "two-region-scenario"})
[14:34:46 INF] Executed action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery), returned result Microsoft.AspNetCore.Mvc.ContentResult in 675.6791ms.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:46 INF] Executing ContentResult with HTTP Response ContentType of application/json
[14:34:46 VRB] Setting correlation response header 'X-Transaction-ID' to 'bb265c27-8e71-40df-97b1-d0d290ef9712'
[14:34:46 VRB] Setting correlation response header 'RequestId' to '0HM252OMBOJKS:00000004'
[14:34:46 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:46 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 INF] Executed action Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) in 692.4261ms
[14:34:46 INF] Executed endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:46 INF] HTTP Request GET http://localhost:777//api/v1/resources/groups/two-region-scenario/discover completed with 200 in 00:00:00.6954886 at 08/20/2020 14:34:46 +00:00 - (Context: {"Host": ["localhost:777"]})
[14:34:46 INF] Request finished in 696.8153ms 200 application/json
[14:34:46 INF] Request starting HTTP/1.1 GET http://localhost:777/api/v1/resources/groups/two-region-scenario/discover  
[14:34:46 VRB] All hosts are allowed.
[14:34:46 DBG] 1 candidate(s) found for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:46 DBG] Endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)' with route pattern 'api/v1/resources/groups/{resourceDiscoveryGroup}/discover' is valid for the request path '/api/v1/resources/groups/two-region-scenario/discover'
[14:34:46 DBG] Request matched endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:46 DBG] Static files was skipped as the request already matched an endpoint.
[14:34:46 INF] Executing endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:46 INF] Route matched with {action = "Get", controller = "Discovery"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] Get(System.String) on controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery).
[14:34:46 DBG] Execution plan of authorization filters (in the following order): ["None"]
[14:34:46 DBG] Execution plan of resource filters (in the following order): ["None"]
[14:34:46 DBG] Execution plan of action filters (in the following order): ["Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)", "Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter (Order: -2000)"]
[14:34:46 DBG] Execution plan of exception filters (in the following order): ["None"]
[14:34:46 DBG] Execution plan of result filters (in the following order): ["Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter (Order: -2000)"]
[14:34:46 DBG] Executing controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:46 DBG] Executed controller factory for controller Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController (Promitor.Agents.ResourceDiscovery)
[14:34:46 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:46 DBG] Attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String' using the name 'resourceDiscoveryGroup' in request data ...
[14:34:46 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:46 DBG] Done attempting to bind parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:46 DBG] Attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String' ...
[14:34:46 DBG] Done attempting to validate the bound parameter 'resourceDiscoveryGroup' of type 'System.String'.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 INF] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) - Validation state: Valid
[14:34:46 VRB] Executing action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) with arguments (["two-region-scenario"])
[14:34:46 DBG] Total records: 1
[14:34:46 DBG] Result Truncated: False
[14:34:46 DBG] Raw Result: {
  "columns": [
    {
      "name": "subscriptionId",
      "type": "string"
    },
    {
      "name": "resourceGroup",
      "type": "string"
    },
    {
      "name": "type",
      "type": "string"
    },
    {
      "name": "name",
      "type": "string"
    },
    {
      "name": "id",
      "type": "string"
    }
  ],
  "rows": [
    [
      "0329dd2a-59dc-4493-aa54-cb01cb027dc2",
      "arcus",
      "microsoft.logic/workflows",
      "Arcus-Infrastructure",
      "/subscriptions/0329dd2a-59dc-4493-aa54-cb01cb027dc2/resourceGroups/arcus/providers/Microsoft.Logic/workflows/Arcus-Infrastructure"
    ]
  ]
}
[14:34:46 INF] Dependency Azure Resource Graph Resources
| where type == tolower('microsoft.logic/workflows')
| where location == 'northeurope' or location == 'westeurope'
| project subscriptionId, resourceGroup, type, name, id named Query in 00:00:00.6415614 at 08/20/2020 14:34:46 +00:00 (Successful: True - Context: {"Query": "Resources\n| where type == tolower('microsoft.logic/workflows')\n| where location == 'northeurope' or location == 'westeurope'\n| project subscriptionId, resourceGroup, type, name, id", "Subscriptions": ["0329dd2a-59dc-4493-aa54-cb01cb027dc2", "0f9d7fea-99e8-4768-8672-06a28514f77e"]})
[14:34:46 INF] Metric Discovered Resources: 1 at 08/20/2020 14:34:46 +00:00 (Context: {"ResourceType": "LogicApp", "CollectionName": "two-region-scenario"})
[14:34:46 INF] Executed action method Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery), returned result Microsoft.AspNetCore.Mvc.ContentResult in 646.4359ms.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ModelStateInvalidFilter.
[14:34:46 VRB] Action Filter: Before executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Action Filter: After executing OnActionExecuted on filter Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter.
[14:34:46 VRB] Result Filter: Before executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Result Filter: After executing OnResultExecuting on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Before executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:46 INF] Executing ContentResult with HTTP Response ContentType of application/json
[14:34:46 VRB] Setting correlation response header 'X-Transaction-ID' to '035c0c6c-3537-4399-82bb-2ee9c5fc74bc'
[14:34:46 VRB] Setting correlation response header 'RequestId' to '0HM252OMBOJKS:00000005'
[14:34:46 VRB] After executing action result Microsoft.AspNetCore.Mvc.ContentResult.
[14:34:46 VRB] Result Filter: Before executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 VRB] Result Filter: After executing OnResultExecuted on filter Microsoft.AspNetCore.Mvc.Infrastructure.ClientErrorResultFilter.
[14:34:46 INF] Executed action Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery) in 651.7337ms
[14:34:46 INF] Executed endpoint 'Promitor.Agents.ResourceDiscovery.Controllers.DiscoveryController.Get (Promitor.Agents.ResourceDiscovery)'
[14:34:46 INF] HTTP Request GET http://localhost:777//api/v1/resources/groups/two-region-scenario/discover completed with 200 in 00:00:00.6539207 at 08/20/2020 14:34:46 +00:00 - (Context: {"Host": ["localhost:777"]})
[14:34:46 INF] Request finished in 656.1345ms 200 application/json

Environment:

  • Name and version of the Library package used: Microsoft.Azure.Management.ResourceGraph v2.0.0
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Windows 10
  • IDE and version : [e.g. Visual Studio 16.3] Visual Studio

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Aug 20, 2020

Thank you for your feedback. Tagging and routing to the team member best able to assist.

0reactions
tomkerkhovecommented, Aug 26, 2020

It’s resolved now, thanks for looking into it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automate Retrieving Azure VM Data Using ...
In this post, we'll look into using Azure Functions to run C# code. We'll keep things simple, and we'll only use a timer-based...
Read more >
Microsoft Graph Known Issues
Microsoft Graph currently returns a 400 Bad Request error code on the v1.0 endpoint on searches that include encoded ampersand ...
Read more >
Export Download CSV data from Kibana Visualization to API ...
It will return a response as below: { "path": … Export Download CSV data from Kibana Visualization to API. One of the best...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found