azure-native.devcenter.Catalog
Explore with Pulumi AI
Represents a catalog. API Version: 2022-09-01-preview.
Example Usage
Catalogs_CreateOrUpdateAdo
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var catalog = new AzureNative.DevCenter.Catalog("catalog", new()
    {
        AdoGit = new AzureNative.DevCenter.Inputs.GitCatalogArgs
        {
            Branch = "main",
            Path = "/templates",
            SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
            Uri = "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
        },
        CatalogName = "{catalogName}",
        DevCenterName = "Contoso",
        ResourceGroupName = "rg1",
    });
});
package main
import (
	devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devcenter.NewCatalog(ctx, "catalog", &devcenter.CatalogArgs{
			AdoGit: &devcenter.GitCatalogArgs{
				Branch:           pulumi.String("main"),
				Path:             pulumi.String("/templates"),
				SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
				Uri:              pulumi.String("https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso"),
			},
			CatalogName:       pulumi.String("{catalogName}"),
			DevCenterName:     pulumi.String("Contoso"),
			ResourceGroupName: pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Catalog;
import com.pulumi.azurenative.devcenter.CatalogArgs;
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) {
        var catalog = new Catalog("catalog", CatalogArgs.builder()        
            .adoGit(Map.ofEntries(
                Map.entry("branch", "main"),
                Map.entry("path", "/templates"),
                Map.entry("secretIdentifier", "https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
                Map.entry("uri", "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso")
            ))
            .catalogName("{catalogName}")
            .devCenterName("Contoso")
            .resourceGroupName("rg1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const catalog = new azure_native.devcenter.Catalog("catalog", {
    adoGit: {
        branch: "main",
        path: "/templates",
        secretIdentifier: "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri: "https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
    },
    catalogName: "{catalogName}",
    devCenterName: "Contoso",
    resourceGroupName: "rg1",
});
import pulumi
import pulumi_azure_native as azure_native
catalog = azure_native.devcenter.Catalog("catalog",
    ado_git=azure_native.devcenter.GitCatalogArgs(
        branch="main",
        path="/templates",
        secret_identifier="https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri="https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso",
    ),
    catalog_name="{catalogName}",
    dev_center_name="Contoso",
    resource_group_name="rg1")
resources:
  catalog:
    type: azure-native:devcenter:Catalog
    properties:
      adoGit:
        branch: main
        path: /templates
        secretIdentifier: https://contosokv.vault.azure.net/secrets/CentralRepoPat
        uri: https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso
      catalogName: '{catalogName}'
      devCenterName: Contoso
      resourceGroupName: rg1
Catalogs_CreateOrUpdateGitHub
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var catalog = new AzureNative.DevCenter.Catalog("catalog", new()
    {
        CatalogName = "{catalogName}",
        DevCenterName = "Contoso",
        GitHub = new AzureNative.DevCenter.Inputs.GitCatalogArgs
        {
            Branch = "main",
            Path = "/templates",
            SecretIdentifier = "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
            Uri = "https://github.com/Contoso/centralrepo-fake.git",
        },
        ResourceGroupName = "rg1",
    });
});
package main
import (
	devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devcenter.NewCatalog(ctx, "catalog", &devcenter.CatalogArgs{
			CatalogName:   pulumi.String("{catalogName}"),
			DevCenterName: pulumi.String("Contoso"),
			GitHub: &devcenter.GitCatalogArgs{
				Branch:           pulumi.String("main"),
				Path:             pulumi.String("/templates"),
				SecretIdentifier: pulumi.String("https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
				Uri:              pulumi.String("https://github.com/Contoso/centralrepo-fake.git"),
			},
			ResourceGroupName: pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.Catalog;
import com.pulumi.azurenative.devcenter.CatalogArgs;
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) {
        var catalog = new Catalog("catalog", CatalogArgs.builder()        
            .catalogName("{catalogName}")
            .devCenterName("Contoso")
            .gitHub(Map.ofEntries(
                Map.entry("branch", "main"),
                Map.entry("path", "/templates"),
                Map.entry("secretIdentifier", "https://contosokv.vault.azure.net/secrets/CentralRepoPat"),
                Map.entry("uri", "https://github.com/Contoso/centralrepo-fake.git")
            ))
            .resourceGroupName("rg1")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const catalog = new azure_native.devcenter.Catalog("catalog", {
    catalogName: "{catalogName}",
    devCenterName: "Contoso",
    gitHub: {
        branch: "main",
        path: "/templates",
        secretIdentifier: "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri: "https://github.com/Contoso/centralrepo-fake.git",
    },
    resourceGroupName: "rg1",
});
import pulumi
import pulumi_azure_native as azure_native
catalog = azure_native.devcenter.Catalog("catalog",
    catalog_name="{catalogName}",
    dev_center_name="Contoso",
    git_hub=azure_native.devcenter.GitCatalogArgs(
        branch="main",
        path="/templates",
        secret_identifier="https://contosokv.vault.azure.net/secrets/CentralRepoPat",
        uri="https://github.com/Contoso/centralrepo-fake.git",
    ),
    resource_group_name="rg1")
resources:
  catalog:
    type: azure-native:devcenter:Catalog
    properties:
      catalogName: '{catalogName}'
      devCenterName: Contoso
      gitHub:
        branch: main
        path: /templates
        secretIdentifier: https://contosokv.vault.azure.net/secrets/CentralRepoPat
        uri: https://github.com/Contoso/centralrepo-fake.git
      resourceGroupName: rg1
Create Catalog Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Catalog(name: string, args: CatalogArgs, opts?: CustomResourceOptions);@overload
def Catalog(resource_name: str,
            args: CatalogArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Catalog(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            dev_center_name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            ado_git: Optional[GitCatalogArgs] = None,
            catalog_name: Optional[str] = None,
            git_hub: Optional[GitCatalogArgs] = None)func NewCatalog(ctx *Context, name string, args CatalogArgs, opts ...ResourceOption) (*Catalog, error)public Catalog(string name, CatalogArgs args, CustomResourceOptions? opts = null)
public Catalog(String name, CatalogArgs args)
public Catalog(String name, CatalogArgs args, CustomResourceOptions options)
type: azure-native:devcenter:Catalog
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CatalogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CatalogArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CatalogArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeCatalogResource = new AzureNative.Devcenter.Catalog("azure-nativeCatalogResource", new()
{
    DevCenterName = "string",
    ResourceGroupName = "string",
    AdoGit = 
    {
        { "branch", "string" },
        { "path", "string" },
        { "secretIdentifier", "string" },
        { "uri", "string" },
    },
    CatalogName = "string",
    GitHub = 
    {
        { "branch", "string" },
        { "path", "string" },
        { "secretIdentifier", "string" },
        { "uri", "string" },
    },
});
example, err := devcenter.NewCatalog(ctx, "azure-nativeCatalogResource", &devcenter.CatalogArgs{
	DevCenterName:     "string",
	ResourceGroupName: "string",
	AdoGit: map[string]interface{}{
		"branch":           "string",
		"path":             "string",
		"secretIdentifier": "string",
		"uri":              "string",
	},
	CatalogName: "string",
	GitHub: map[string]interface{}{
		"branch":           "string",
		"path":             "string",
		"secretIdentifier": "string",
		"uri":              "string",
	},
})
var azure_nativeCatalogResource = new Catalog("azure-nativeCatalogResource", CatalogArgs.builder()
    .devCenterName("string")
    .resourceGroupName("string")
    .adoGit(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .catalogName("string")
    .gitHub(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
azure_native_catalog_resource = azure_native.devcenter.Catalog("azure-nativeCatalogResource",
    dev_center_name=string,
    resource_group_name=string,
    ado_git={
        branch: string,
        path: string,
        secretIdentifier: string,
        uri: string,
    },
    catalog_name=string,
    git_hub={
        branch: string,
        path: string,
        secretIdentifier: string,
        uri: string,
    })
const azure_nativeCatalogResource = new azure_native.devcenter.Catalog("azure-nativeCatalogResource", {
    devCenterName: "string",
    resourceGroupName: "string",
    adoGit: {
        branch: "string",
        path: "string",
        secretIdentifier: "string",
        uri: "string",
    },
    catalogName: "string",
    gitHub: {
        branch: "string",
        path: "string",
        secretIdentifier: "string",
        uri: "string",
    },
});
type: azure-native:devcenter:Catalog
properties:
    adoGit:
        branch: string
        path: string
        secretIdentifier: string
        uri: string
    catalogName: string
    devCenterName: string
    gitHub:
        branch: string
        path: string
        secretIdentifier: string
        uri: string
    resourceGroupName: string
Catalog Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Catalog resource accepts the following input properties:
- DevCenter stringName 
- The name of the devcenter.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- AdoGit Pulumi.Azure Native. Dev Center. Inputs. Git Catalog 
- Properties for an Azure DevOps catalog type.
- CatalogName string
- The name of the Catalog.
- GitHub Pulumi.Azure Native. Dev Center. Inputs. Git Catalog 
- Properties for a GitHub catalog type.
- DevCenter stringName 
- The name of the devcenter.
- ResourceGroup stringName 
- Name of the resource group within the Azure subscription.
- AdoGit GitCatalog Args 
- Properties for an Azure DevOps catalog type.
- CatalogName string
- The name of the Catalog.
- GitHub GitCatalog Args 
- Properties for a GitHub catalog type.
- devCenter StringName 
- The name of the devcenter.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- adoGit GitCatalog 
- Properties for an Azure DevOps catalog type.
- catalogName String
- The name of the Catalog.
- gitHub GitCatalog 
- Properties for a GitHub catalog type.
- devCenter stringName 
- The name of the devcenter.
- resourceGroup stringName 
- Name of the resource group within the Azure subscription.
- adoGit GitCatalog 
- Properties for an Azure DevOps catalog type.
- catalogName string
- The name of the Catalog.
- gitHub GitCatalog 
- Properties for a GitHub catalog type.
- dev_center_ strname 
- The name of the devcenter.
- resource_group_ strname 
- Name of the resource group within the Azure subscription.
- ado_git GitCatalog Args 
- Properties for an Azure DevOps catalog type.
- catalog_name str
- The name of the Catalog.
- git_hub GitCatalog Args 
- Properties for a GitHub catalog type.
- devCenter StringName 
- The name of the devcenter.
- resourceGroup StringName 
- Name of the resource group within the Azure subscription.
- adoGit Property Map
- Properties for an Azure DevOps catalog type.
- catalogName String
- The name of the Catalog.
- gitHub Property Map
- Properties for a GitHub catalog type.
Outputs
All input properties are implicitly available as output properties. Additionally, the Catalog resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- LastSync stringTime 
- When the catalog was last synced.
- Name string
- The name of the resource
- ProvisioningState string
- The provisioning state of the resource.
- SystemData Pulumi.Azure Native. Dev Center. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- LastSync stringTime 
- When the catalog was last synced.
- Name string
- The name of the resource
- ProvisioningState string
- The provisioning state of the resource.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- lastSync StringTime 
- When the catalog was last synced.
- name String
- The name of the resource
- provisioningState String
- The provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- lastSync stringTime 
- When the catalog was last synced.
- name string
- The name of the resource
- provisioningState string
- The provisioning state of the resource.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- last_sync_ strtime 
- When the catalog was last synced.
- name str
- The name of the resource
- provisioning_state str
- The provisioning state of the resource.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- lastSync StringTime 
- When the catalog was last synced.
- name String
- The name of the resource
- provisioningState String
- The provisioning state of the resource.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
GitCatalog, GitCatalogArgs    
- Branch string
- Git branch.
- Path string
- The folder where the catalog items can be found inside the repository.
- SecretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- Uri string
- Git URI.
- Branch string
- Git branch.
- Path string
- The folder where the catalog items can be found inside the repository.
- SecretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- Uri string
- Git URI.
- branch String
- Git branch.
- path String
- The folder where the catalog items can be found inside the repository.
- secretIdentifier String
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri String
- Git URI.
- branch string
- Git branch.
- path string
- The folder where the catalog items can be found inside the repository.
- secretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri string
- Git URI.
- branch str
- Git branch.
- path str
- The folder where the catalog items can be found inside the repository.
- secret_identifier str
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri str
- Git URI.
- branch String
- Git branch.
- path String
- The folder where the catalog items can be found inside the repository.
- secretIdentifier String
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri String
- Git URI.
GitCatalogResponse, GitCatalogResponseArgs      
- Branch string
- Git branch.
- Path string
- The folder where the catalog items can be found inside the repository.
- SecretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- Uri string
- Git URI.
- Branch string
- Git branch.
- Path string
- The folder where the catalog items can be found inside the repository.
- SecretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- Uri string
- Git URI.
- branch String
- Git branch.
- path String
- The folder where the catalog items can be found inside the repository.
- secretIdentifier String
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri String
- Git URI.
- branch string
- Git branch.
- path string
- The folder where the catalog items can be found inside the repository.
- secretIdentifier string
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri string
- Git URI.
- branch str
- Git branch.
- path str
- The folder where the catalog items can be found inside the repository.
- secret_identifier str
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri str
- Git URI.
- branch String
- Git branch.
- path String
- The folder where the catalog items can be found inside the repository.
- secretIdentifier String
- A reference to the Key Vault secret containing a security token to authenticate to a Git repository.
- uri String
- Git URI.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:Catalog {catalogName} /subscriptions/{subscriptionId}/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/{catalogName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0