ExAzureCore.Auth.Errors.ManagedIdentityError exception (ex_azure_core v0.3.0)

Copy Markdown

Error for managed identity and workload identity operations.

Used when fetching tokens from Azure IMDS, App Service identity endpoint, or AKS Workload Identity fails.

Summary

Types

t()

@type t() :: %ExAzureCore.Auth.Errors.ManagedIdentityError{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  provider: atom(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  status: integer() | nil,
  type:
    :imds_unavailable
    | :identity_not_found
    | :token_file_not_found
    | :token_file_read_error
    | :environment_not_detected
    | :provider_error
    | :invalid_response,
  vars: term()
}

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %ExAzureCore.Auth.Errors.ManagedIdentityError{
  __exception__: term(),
  bread_crumbs: term(),
  class: term(),
  path: term(),
  provider: term(),
  reason: term(),
  splode: term(),
  stacktrace: term(),
  status: term(),
  type: term(),
  vars: term()
}

Create an Elixir.ExAzureCore.Auth.Errors.ManagedIdentityError without raising it.

Keys

  • :type
  • :provider
  • :reason
  • :status