1. Packages
  2. Azure Classic
  3. API Docs
  4. devcenter
  5. getCatalog

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

azure.devcenter.getCatalog

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi

    Use this data source to access information about an existing Dev Center Catalog.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.devcenter.getCatalog({
        name: exampleAzurermDevCenterCatalog.name,
        devCenterId: exampleAzurermDevCenterCatalog.devCenterId,
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.devcenter.get_catalog(name=example_azurerm_dev_center_catalog["name"],
        dev_center_id=example_azurerm_dev_center_catalog["devCenterId"])
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/devcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := devcenter.LookupCatalog(ctx, &devcenter.LookupCatalogArgs{
    			Name:        exampleAzurermDevCenterCatalog.Name,
    			DevCenterId: exampleAzurermDevCenterCatalog.DevCenterId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.DevCenter.GetCatalog.Invoke(new()
        {
            Name = exampleAzurermDevCenterCatalog.Name,
            DevCenterId = exampleAzurermDevCenterCatalog.DevCenterId,
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getCatalogResult => getCatalogResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.devcenter.DevcenterFunctions;
    import com.pulumi.azure.devcenter.inputs.GetCatalogArgs;
    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 = DevcenterFunctions.getCatalog(GetCatalogArgs.builder()
                .name(exampleAzurermDevCenterCatalog.name())
                .devCenterId(exampleAzurermDevCenterCatalog.devCenterId())
                .build());
    
            ctx.export("id", example.id());
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:devcenter:getCatalog
          arguments:
            name: ${exampleAzurermDevCenterCatalog.name}
            devCenterId: ${exampleAzurermDevCenterCatalog.devCenterId}
    outputs:
      id: ${example.id}
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.DevCenter: 2025-02-01

    Using getCatalog

    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 getCatalog(args: GetCatalogArgs, opts?: InvokeOptions): Promise<GetCatalogResult>
    function getCatalogOutput(args: GetCatalogOutputArgs, opts?: InvokeOptions): Output<GetCatalogResult>
    def get_catalog(dev_center_id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetCatalogResult
    def get_catalog_output(dev_center_id: Optional[pulumi.Input[str]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetCatalogResult]
    func LookupCatalog(ctx *Context, args *LookupCatalogArgs, opts ...InvokeOption) (*LookupCatalogResult, error)
    func LookupCatalogOutput(ctx *Context, args *LookupCatalogOutputArgs, opts ...InvokeOption) LookupCatalogResultOutput

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

    public static class GetCatalog 
    {
        public static Task<GetCatalogResult> InvokeAsync(GetCatalogArgs args, InvokeOptions? opts = null)
        public static Output<GetCatalogResult> Invoke(GetCatalogInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCatalogResult> getCatalog(GetCatalogArgs args, InvokeOptions options)
    public static Output<GetCatalogResult> getCatalog(GetCatalogArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:devcenter/getCatalog:getCatalog
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DevCenterId string
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    Name string
    The name of this Dev Center Catalog.
    DevCenterId string
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    Name string
    The name of this Dev Center Catalog.
    devCenterId String
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    name String
    The name of this Dev Center Catalog.
    devCenterId string
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    name string
    The name of this Dev Center Catalog.
    dev_center_id str
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    name str
    The name of this Dev Center Catalog.
    devCenterId String
    Specifies the Dev Center Id within which this Dev Center Catalog should exist.
    name String
    The name of this Dev Center Catalog.

    getCatalog Result

    The following output properties are available:

    CatalogAdogits List<GetCatalogCatalogAdogit>
    A catalog_adogit block as defined below.
    CatalogGithubs List<GetCatalogCatalogGithub>
    A catalog_github block as defined below.
    DevCenterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    CatalogAdogits []GetCatalogCatalogAdogit
    A catalog_adogit block as defined below.
    CatalogGithubs []GetCatalogCatalogGithub
    A catalog_github block as defined below.
    DevCenterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    catalogAdogits List<GetCatalogCatalogAdogit>
    A catalog_adogit block as defined below.
    catalogGithubs List<GetCatalogCatalogGithub>
    A catalog_github block as defined below.
    devCenterId String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    catalogAdogits GetCatalogCatalogAdogit[]
    A catalog_adogit block as defined below.
    catalogGithubs GetCatalogCatalogGithub[]
    A catalog_github block as defined below.
    devCenterId string
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    catalog_adogits Sequence[GetCatalogCatalogAdogit]
    A catalog_adogit block as defined below.
    catalog_githubs Sequence[GetCatalogCatalogGithub]
    A catalog_github block as defined below.
    dev_center_id str
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    catalogAdogits List<Property Map>
    A catalog_adogit block as defined below.
    catalogGithubs List<Property Map>
    A catalog_github block as defined below.
    devCenterId String
    id String
    The provider-assigned unique ID for this managed resource.
    name String

    Supporting Types

    GetCatalogCatalogAdogit

    Branch string
    The Git branch of the Dev Center Catalog.
    KeyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    Path string
    The folder where the catalog items can be found inside the repository.
    Uri string
    The Git URI of the Dev Center Catalog.
    Branch string
    The Git branch of the Dev Center Catalog.
    KeyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    Path string
    The folder where the catalog items can be found inside the repository.
    Uri string
    The Git URI of the Dev Center Catalog.
    branch String
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl String
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path String
    The folder where the catalog items can be found inside the repository.
    uri String
    The Git URI of the Dev Center Catalog.
    branch string
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path string
    The folder where the catalog items can be found inside the repository.
    uri string
    The Git URI of the Dev Center Catalog.
    branch str
    The Git branch of the Dev Center Catalog.
    key_vault_key_url str
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path str
    The folder where the catalog items can be found inside the repository.
    uri str
    The Git URI of the Dev Center Catalog.
    branch String
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl String
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path String
    The folder where the catalog items can be found inside the repository.
    uri String
    The Git URI of the Dev Center Catalog.

    GetCatalogCatalogGithub

    Branch string
    The Git branch of the Dev Center Catalog.
    KeyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    Path string
    The folder where the catalog items can be found inside the repository.
    Uri string
    The Git URI of the Dev Center Catalog.
    Branch string
    The Git branch of the Dev Center Catalog.
    KeyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    Path string
    The folder where the catalog items can be found inside the repository.
    Uri string
    The Git URI of the Dev Center Catalog.
    branch String
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl String
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path String
    The folder where the catalog items can be found inside the repository.
    uri String
    The Git URI of the Dev Center Catalog.
    branch string
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl string
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path string
    The folder where the catalog items can be found inside the repository.
    uri string
    The Git URI of the Dev Center Catalog.
    branch str
    The Git branch of the Dev Center Catalog.
    key_vault_key_url str
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path str
    The folder where the catalog items can be found inside the repository.
    uri str
    The Git URI of the Dev Center Catalog.
    branch String
    The Git branch of the Dev Center Catalog.
    keyVaultKeyUrl String
    A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
    path String
    The folder where the catalog items can be found inside the repository.
    uri String
    The Git URI of the Dev Center Catalog.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.24.0 published on Wednesday, Jun 18, 2025 by Pulumi