1. Packages
  2. Azure Native
  3. How-to Guides
  4. Azure OIDC Pulumi program in TypeScript
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.8.0 published on Wednesday, Sep 3, 2025 by Pulumi

Azure OIDC Pulumi program in TypeScript

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.8.0 published on Wednesday, Sep 3, 2025 by Pulumi

    View Code Deploy this example with Pulumi

    This example will create OIDC configuration between Pulumi Cloud and Azure, specifically demonstrating connectivity with Pulumi ESC. The program automates the process detailed in the Azure documentation for the following activities:

    Last update: September 2025

    πŸ“‹ Pre-requisites

    πŸ‘©β€πŸ« Get started

    This Pulumi example is written as a template. It is meant to be copied via pulumi new

    # login to your Pulumi Cloud if you haven't already
    pulumi login
    
    # pick a name for your output directory (--dir is optional. will use current directory if omitted)
    my_dir=my-azure-oidc
    pulumi new https://github.com/pulumi/examples/azure-ts-oidc-provider-pulumi-cloud --dir ${my_dir}
    cd ${my_dir}
    

    Once copied to your machine, feel free to edit as needed.

    🎬 How to run

    This template will pick up the thumbprint from the URL that you set in the stack configuration. By default it will use the OIDC IDP URL for Pulumi Cloud.

    To deploy your infrastructure, run:

    $ pulumi up
    # select 'yes' to confirm the expected changes
    # πŸŽ‰ Ta-Da!
    

    🧹 Clean up

    To clean up your infrastructure, run:

    $ pulumi destroy
    # select 'yes' to confirm the expected changes
    
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.8.0 published on Wednesday, Sep 3, 2025 by Pulumi