Skip to content

[Bug] Managed Identity should respect source when retrying request, IMDS has more codes should retry #4998

@4gust

Description

@4gust

Library version used

4.66.0

.NET version

.NET 9

Scenario

ManagedIdentityClient - managed identity

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

For MI The application only retries on
404 or 408 or 429 or 500 or 503 or 504 these codes
but for IMDS only you need to try on more codes. More information here
https://learn.microsoft.com/en-gb/entra/identity/managed-identities-azure-resources/how-to-use-vm-token#error-handling

Relevant code snippets

No response

Expected behavior

No response

Identity provider

Other

Regression

No response

Solution and workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions