Project Catalog
Represents a catalog. Uses Azure REST API version 2024-02-01. Other available API versions: 2024-05-01-preview, 2024-06-01-preview, 2024-07-01-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-02-01.
Example Usage
ProjectCatalogs_CreateOrUpdateAdo
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", 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 = "CentralCatalog",
ProjectName = "DevProject",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
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("CentralCatalog"),
ProjectName: pulumi.String("DevProject"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.ProjectCatalog;
import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
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 projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
.adoGit(GitCatalogArgs.builder()
.branch("main")
.path("/templates")
.secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
.uri("https://contoso@dev.azure.com/contoso/contosoOrg/_git/centralrepo-fakecontoso")
.build())
.catalogName("CentralCatalog")
.projectName("DevProject")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
ProjectCatalogs_CreateOrUpdateGitHub
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var projectCatalog = new AzureNative.DevCenter.ProjectCatalog("projectCatalog", new()
{
CatalogName = "CentralCatalog",
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",
},
ProjectName = "DevProject",
ResourceGroupName = "rg1",
});
});
Content copied to clipboard
package main
import (
devcenter "github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devcenter.NewProjectCatalog(ctx, "projectCatalog", &devcenter.ProjectCatalogArgs{
CatalogName: pulumi.String("CentralCatalog"),
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"),
},
ProjectName: pulumi.String("DevProject"),
ResourceGroupName: pulumi.String("rg1"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devcenter.ProjectCatalog;
import com.pulumi.azurenative.devcenter.ProjectCatalogArgs;
import com.pulumi.azurenative.devcenter.inputs.GitCatalogArgs;
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 projectCatalog = new ProjectCatalog("projectCatalog", ProjectCatalogArgs.builder()
.catalogName("CentralCatalog")
.gitHub(GitCatalogArgs.builder()
.branch("main")
.path("/templates")
.secretIdentifier("https://contosokv.vault.azure.net/secrets/CentralRepoPat")
.uri("https://github.com/Contoso/centralrepo-fake.git")
.build())
.projectName("DevProject")
.resourceGroupName("rg1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:devcenter:ProjectCatalog CentralCatalog /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/projects/{projectName}/catalogs/{catalogName}
Content copied to clipboard
Properties
Link copied to clipboard
Properties for an Azure DevOps catalog type.
Link copied to clipboard
The connection state of the catalog.
Link copied to clipboard
Properties for a GitHub catalog type.
Link copied to clipboard
When the catalog was last connected.
Link copied to clipboard
Stats of the latest synchronization.
Link copied to clipboard
When the catalog was last synced.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.