Fetch an OAuth access token.
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.oauth.OauthAccessToken
tenantId: "{{ secret('SERVICE_PRINCIPAL_TENANT_ID') }}"
clientId: "{{ secret('SERVICE_PRINCIPAL_CLIENT_ID') }}"
clientSecret: "{{ secret('SERVICE_PRINCIPAL_CLIENT_SECRET') }}"
Dynamic YES
Default
Tenant ID
Dynamic YES
Default
Client ID
Client ID of the Azure service principal. If you don't have a service principal, refer to create a service principal with Azure CLI.
Dynamic YES
Default
Client Secret
Service principal client secret. The tenantId, clientId and clientSecret of the service principal are required for this credential to acquire an access token.
Dynamic YES
Default
PEM Certificate
text
Your stored PEM certificate.
The tenantId, clientId and clientCertificate of the service principal are required for this credential to acquire an access token.
SubType string
Dynamic YES
Default ["https://management.azure.com/.default"]
The Azure scopes to be used
An OAuth access token for the current user.
Dynamic NO
Format date-time
SubType string
Dynamic NO
Dynamic NO
OAuth access token value
Will be automatically encrypted and decrypted in the outputs if encryption is configured