Azure OauthAccessToken

Azure OauthAccessToken

Certified

Request Azure AD access token

Fetches an access token using the configured tenant/client credentials. Defaults scopes to https://management.azure.com/.default and returns the token encrypted in outputs.

yaml
type: io.kestra.plugin.azure.auth.OauthAccessToken
yaml
id: azure_get_token
namespace: company.team

tasks:
  - id: get_access_token
    type: io.kestra.plugin.azure.auth.OauthAccessToken
    tenantId: "{{ secret('SERVICE_PRINCIPAL_TENANT_ID') }}"
    clientId: "{{ secret('SERVICE_PRINCIPAL_CLIENT_ID') }}"
    clientSecret: "{{ secret('SERVICE_PRINCIPAL_CLIENT_SECRET') }}"
Properties

Azure AD tenant ID (GUID)

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Client ID of the Azure AD application

Application (client) ID used for service principal authentication.

Client secret for the Azure AD application

Secret value associated with the client ID; store in a Kestra secret.

PEM-encoded certificate content for client authentication

PEM text for certificate-based auth; alternative to clientSecret.

SubTypestring
Default["https://management.azure.com/.default"]

OAuth scopes

Space-separated scopes sent to Azure AD; defaults to https://management.azure.com/.default

OAuth access token payload

Definitions
expirationTimestring
Formatdate-time
scopesarray
SubTypestring
tokenValuestring

OAuth access token value

Will be automatically encrypted and decrypted in the outputs if encryption is configured