B
Beacon Globe News

Class CredentialUnavailableException | Azure SDK for .NET

Author

John Shaw

Published Feb 16, 2026

An exception indicating a Azure.Core.TokenCredential did not attempt to authenticate and retrieve Azure.Core.AccessToken, as its prerequisite information or state was not available.

Inheritance

System.Exception

CredentialUnavailableException

Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Identity.dll
Syntax
[System.Serializable]
public class CredentialUnavailableException : Azure.Identity.AuthenticationFailedException

Constructors

CredentialUnavailableException(String)

Declaration
public CredentialUnavailableException (string message);
Parameters
System.String message

The message describing the authentication failure.

CredentialUnavailableException(SerializationInfo, StreamingContext)

A constructor used for serialization.

Declaration
protected CredentialUnavailableException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Parameters
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo.

System.Runtime.Serialization.StreamingContext context

The System.Runtime.Serialization.StreamingContext.

CredentialUnavailableException(String, Exception)

Declaration
public CredentialUnavailableException (string message, Exception innerException);
Parameters
System.String message

The message describing the authentication failure.

System.Exception innerException

The exception underlying the authentication failure.