Hello @Dairion, Jonathan
Dairion just confirmed that this issue has gone.
For others who has the similar issue, it seems there is a connection issue, please share a entire error message so that we know which step the error happened.
To solve the issue in general -
Scope Configuration: Verify that the scope (api://xxxxxxxxxxxxxxxxxx/.default
) is correctly configured and valid for your application. The scope should match what your API expects.
Check the firewall settings: Make sure that the firewall setting are configured correctly. Ensure that your firewall rules are not blocking the requests to the Azure AD endpoints. Both UAT and production environments need to be able to reach Azure AD services.
Verify Connectivity: Check if there are any network issues or restrictions that might be affecting connectivity to Azure services.
Verify Application: Ensure that the ClientSecretCredentialOptions
is correctly applied and used by the ClientSecretCredential
instance.
Check the retry policy: The error message suggests that the retry policy is failing after 4 tries. You can adjust the retry policy in the ClientOptions.Retry
property. You can also configure a custom retry policy in the ClientOptions.RetryPolicy
property.
Please take a look and have a try, let us know the detailed error message if you have.
Regards,
Yutong
-Please kindly accept the answer if you feel helpful to support the community, thanks a lot.