getClientConfig

Use this data source to access the configuration of the AzureAD provider.

Example Usage

using Pulumi;
using AzureAD = Pulumi.AzureAD;

class MyStack : Stack
{
    public MyStack()
    {
        var current = Output.Create(AzureAD.GetClientConfig.InvokeAsync());
        this.AccountId = current.Apply(current => current.ClientId);
    }

    [Output("accountId")]
    public Output<string> AccountId { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := azuread.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("accountId", current.ClientId)
		return nil
	})
}
import pulumi
import pulumi_azuread as azuread

current = azuread.get_client_config()
pulumi.export("accountId", current.client_id)
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";

const current = azuread.getClientConfig({});
export const accountId = current.then(current => current.clientId);

Using getClientConfig

function getClientConfig(opts?: InvokeOptions): Promise<GetClientConfigResult>
def get_client_config(opts: Optional[InvokeOptions] = None) -> GetClientConfigResult
func GetClientConfig(ctx *Context, opts ...InvokeOption) (*GetClientConfigResult, error)

Note: This function is named GetClientConfig in the Go SDK.

public static class GetClientConfig {
    public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
}

getClientConfig Result

The following output properties are available:

ClientId string
Id string
The provider-assigned unique ID for this managed resource.
ObjectId string
TenantId string
ClientId string
Id string
The provider-assigned unique ID for this managed resource.
ObjectId string
TenantId string
clientId string
id string
The provider-assigned unique ID for this managed resource.
objectId string
tenantId string
client_id str
id str
The provider-assigned unique ID for this managed resource.
object_id str
tenant_id str

Package Details

Repository
https://github.com/pulumi/pulumi-azuread
License
Apache-2.0
Notes
This Pulumi package is based on the azuread Terraform Provider.