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] Azure.ResourceManager.Resources ResourcesOperations Slow Response.

See original GitHub issue

Describe the bug Hello MS team, we met a problem that when we create/delete an Azure resource (for example virtual machine image/disk) in Azure Portal, it takes about 20 minutes for the change to eventually update in the result of calling the Azure ResourceManager SDK.

Specifically when calling the ResourcesOperations::ListAsync function with the filter string passed in to get resources of type "Microsoft.Compute/images" and type "Microsoft.Compute/snapshots" in a subscription.

(Function doc is here: https://docs.microsoft.com/en-us/dotnet/api/azure.resourcemanager.resources.resourcesoperations.listasync?view=azure-dotnet-preview)

Expected behavior Calling ListAsync should return the updated list of resources in the subscription without waiting for a long time.

Actual behavior (include Exception or Stack Trace) When calling ListAsync, it takes about 20 minutes to return the updated list of resources. Before that the returned list of resources is outdated and did not reflect the changes been made.

Environment: <PackageReference Include="Azure.ResourceManager.Resources" Version="1.0.0-preview.2" />

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
allenjzhangcommented, Jul 19, 2021

@grizzlytheodore , can you pass to the right team member to see if this is an ARM issue or Compute issue, please? Thank you.

0reactions
jingtaorencommented, Aug 23, 2021

@snaheth thx for response. I am taking this from @zep-uipath .

The issue only happens when we use .Net Azure ResourceManager SDK. But not able to repro thru Portal or CLI. So I doubt it is a ARM side issue. (When list thru Portal or cli, we can see the resource immediately)

➜  jingtao.ren az resource list -g Jingtao-Personal-RG --resource-type "Microsoft.Compute/snapshots" -o table
Name     ResourceGroup        Location    Type                         Status
-------  -------------------  ----------  ---------------------------  --------
winsnap  Jingtao-Personal-RG  westus2     Microsoft.Compute/snapshots

Here is how we use this query in SDK var resources = await azureClient.Resources.ListAsync(filter: $"resourceType eq 'Microsoft.Compute/images' or resourceType eq 'Microsoft.Compute/galleries/images/versions'" + $" or resourceType eq 'Microsoft.Compute/snapshots'").ToListAsync(cancellationToken);

Is this because how we construct the query ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot performance degradation - Azure App Service
Symptom. When you browse the app, the pages load slowly and sometimes timeout. Cause. This problem is often caused by application ...
Read more >
Troubleshoot common Azure deployment errors
Describes how to resolve errors when a resource can't be found. The error might occur when you deploy a Bicep file or Azure...
Read more >
Request limits and throttling - Azure Resource Manager
It shows you how to track the number of requests that remain before reaching the limit, and how to respond when you've reached...
Read more >
Status of asynchronous operations - Azure
Describes how to track asynchronous operations in Azure. It shows the values you use to get the status of a long-running operation.
Read more >
Troubleshooting throttling errors in Azure - Virtual Machines
Describes how to use throttling with Azure Resource Manager requests when subscription limits have been reached. Troubleshoot why you receive ...
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