[BUG] GenericResources.ExistAsync is unreliable #42540
Labels
ARM
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.ResourceManager 1.10.1
Describe the bug
GenericResources.ExistAsync is unreliable when the target Azure service for the resource is upgrading.
For example, to check the existance of
by using the following code
It sometimes failed with the following error. (Starts from March 01, 2024 I got the issue in eastus)
From my understanding of the code, I think that's because Azure.ResourceManager SDK uses resource provider to detect the latest api-version of the specific resource type, and uses that api-version to query the resource servier. However, the specific api-version may not be available for the service as the service is upgrading. (I think it is rollong upgrade and should take some time to complete for all services)
Some snapshot of my tenant and requests:
Resource provider shows the api-version
Sometimes success
Sometimes failed
Expected behavior
Always return the correct result.
Actual behavior
Not reliable
Reproduction Steps
Check out the description
Environment
No response
The text was updated successfully, but these errors were encountered: