[BUG] Azure.ResourceManager.Resources ResourcesOperations Slow Response.
See original GitHub issueDescribe 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:
- Created 2 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top GitHub Comments
@grizzlytheodore , can you pass to the right team member to see if this is an ARM issue or Compute issue, please? Thank you.
@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)
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 ?