1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. getClientConfig
Azure DevOps v3.9.0 published on Tuesday, Apr 22, 2025 by Pulumi

azuredevops.getClientConfig

Explore with Pulumi AI

Azure DevOps v3.9.0 published on Tuesday, Apr 22, 2025 by Pulumi

Use this data source to access information about the Azure DevOps organization configured for the provider.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = azuredevops.getClientConfig({});
export const orgUrl = example.then(example => example.organizationUrl);
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.get_client_config()
pulumi.export("orgUrl", example.organization_url)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.GetClientConfig(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		ctx.Export("orgUrl", example.OrganizationUrl)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = AzureDevOps.GetClientConfig.Invoke();

    return new Dictionary<string, object?>
    {
        ["orgUrl"] = example.Apply(getClientConfigResult => getClientConfigResult.OrganizationUrl),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = AzuredevopsFunctions.getClientConfig(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);

        ctx.export("orgUrl", example.organizationUrl());
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azuredevops:getClientConfig
      arguments: {}
outputs:
  orgUrl: ${example.organizationUrl}
Copy

Using getClientConfig

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

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

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

public static class GetClientConfig 
{
    public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetClientConfigResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetClientConfigResult> getClientConfig(InvokeOptions options)
public static Output<GetClientConfigResult> getClientConfig(InvokeOptions options)
Copy
fn::invoke:
  function: azuredevops:index/getClientConfig:getClientConfig
  arguments:
    # arguments dictionary
Copy

getClientConfig Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the organization.
OrganizationUrl string
The URL of the organization.
OwnerId string
The owner ID of the organization.
Status string
The status of the organization.
TenantId string
The Tenant ID of the connected Azure Directory.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the organization.
OrganizationUrl string
The URL of the organization.
OwnerId string
The owner ID of the organization.
Status string
The status of the organization.
TenantId string
The Tenant ID of the connected Azure Directory.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the organization.
organizationUrl String
The URL of the organization.
ownerId String
The owner ID of the organization.
status String
The status of the organization.
tenantId String
The Tenant ID of the connected Azure Directory.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the organization.
organizationUrl string
The URL of the organization.
ownerId string
The owner ID of the organization.
status string
The status of the organization.
tenantId string
The Tenant ID of the connected Azure Directory.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the organization.
organization_url str
The URL of the organization.
owner_id str
The owner ID of the organization.
status str
The status of the organization.
tenant_id str
The Tenant ID of the connected Azure Directory.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the organization.
organizationUrl String
The URL of the organization.
ownerId String
The owner ID of the organization.
status String
The status of the organization.
tenantId String
The Tenant ID of the connected Azure Directory.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.
Azure DevOps v3.9.0 published on Tuesday, Apr 22, 2025 by Pulumi