azure-login
The azure-login provider enables you to log in to Azure using OpenID Connect or by providing static credentials. The provider will return a set of credentials that can be used to access Azure resources or fetch secrets using the azure-secrets provider.
Example
The azure-login provider’s outputs can be consumed by the Pulumi Azure providers (azure-native, azure, and azuread) and the Azure SDKs through the standard ARM_* environment variables:
values:
azure:
login:
fn::open::azure-login:
clientId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
tenantId: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
subscriptionId: /subscriptions/00000000-0000-0000-0000-000000000000
oidc: true
environmentVariables:
# Consumed by the Pulumi Azure providers (azure-native, azure, azuread) and the Azure SDKs
ARM_USE_OIDC: "true"
ARM_CLIENT_ID: ${azure.login.clientId}
ARM_TENANT_ID: ${azure.login.tenantId}
ARM_SUBSCRIPTION_ID: ${azure.login.subscriptionId}
ARM_OIDC_TOKEN: ${azure.login.oidc.token}
The azuredevops provider accepts the same ARM_CLIENT_ID, ARM_TENANT_ID, ARM_OIDC_TOKEN, and ARM_USE_OIDC credentials. It does not use ARM_SUBSCRIPTION_ID; instead, set your organization URL with the AZDO_ORG_SERVICE_URL environment variable.
Schema reference
Reference schemas last updated on 2026-07-11, synced automatically from the Pulumi Cloud ESC API.
Inputs
clientIdstring requiredThe client ID to use.clientSecretstring optionalThe client secret to use for authentication, if any.oidcboolean optionalTrue to use OIDC for authentication.subjectAttributesarray[string] optionalThe attributes used to issue the oidc token subject.subscriptionIdstring optionalThe subscription ID to use.tenantIdstring requiredThe tenant ID to use.
Outputs
clientIdstring requiredThe client ID to use.clientSecretstring optionalThe client secret to use for authentication, if any.oidcobject optionalOIDC-related data, if OIDC is used for authentication.- ↳
tokenstring requiredThe OIDC token to use for authentication. subscriptionIdstring optionalThe subscription ID to use.tenantIdstring requiredThe tenant ID to use.
Configuring OIDC
To learn how to configure OpenID Connect (OIDC) between Pulumi Cloud and Azure, see the OpenID Connect integration documentation.