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

azuredevops.RepositoryPolicyCaseEnforcement

Explore with Pulumi AI

Manages a case enforcement repository policy within Azure DevOps project.

If both project and project policy are enabled, the project policy has high priority.

Example Usage

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

const example = new azuredevops.Project("example", {
    name: "Example Project",
    visibility: "private",
    versionControl: "Git",
    workItemTemplate: "Agile",
    description: "Managed by Pulumi",
});
const exampleGit = new azuredevops.Git("example", {
    projectId: example.id,
    name: "Example Repository",
    initialization: {
        initType: "Clean",
    },
});
const exampleRepositoryPolicyCaseEnforcement = new azuredevops.RepositoryPolicyCaseEnforcement("example", {
    projectId: example.id,
    enabled: true,
    blocking: true,
    enforceConsistentCase: true,
    repositoryIds: [exampleGit.id],
});
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Project("example",
    name="Example Project",
    visibility="private",
    version_control="Git",
    work_item_template="Agile",
    description="Managed by Pulumi")
example_git = azuredevops.Git("example",
    project_id=example.id,
    name="Example Repository",
    initialization={
        "init_type": "Clean",
    })
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
    project_id=example.id,
    enabled=True,
    blocking=True,
    enforce_consistent_case=True,
    repository_ids=[example_git.id])
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.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name:             pulumi.String("Example Project"),
			Visibility:       pulumi.String("private"),
			VersionControl:   pulumi.String("Git"),
			WorkItemTemplate: pulumi.String("Agile"),
			Description:      pulumi.String("Managed by Pulumi"),
		})
		if err != nil {
			return err
		}
		exampleGit, err := azuredevops.NewGit(ctx, "example", &azuredevops.GitArgs{
			ProjectId: example.ID(),
			Name:      pulumi.String("Example Repository"),
			Initialization: &azuredevops.GitInitializationArgs{
				InitType: pulumi.String("Clean"),
			},
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewRepositoryPolicyCaseEnforcement(ctx, "example", &azuredevops.RepositoryPolicyCaseEnforcementArgs{
			ProjectId:             example.ID(),
			Enabled:               pulumi.Bool(true),
			Blocking:              pulumi.Bool(true),
			EnforceConsistentCase: pulumi.Bool(true),
			RepositoryIds: pulumi.StringArray{
				exampleGit.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
        Visibility = "private",
        VersionControl = "Git",
        WorkItemTemplate = "Agile",
        Description = "Managed by Pulumi",
    });

    var exampleGit = new AzureDevOps.Git("example", new()
    {
        ProjectId = example.Id,
        Name = "Example Repository",
        Initialization = new AzureDevOps.Inputs.GitInitializationArgs
        {
            InitType = "Clean",
        },
    });

    var exampleRepositoryPolicyCaseEnforcement = new AzureDevOps.RepositoryPolicyCaseEnforcement("example", new()
    {
        ProjectId = example.Id,
        Enabled = true,
        Blocking = true,
        EnforceConsistentCase = true,
        RepositoryIds = new[]
        {
            exampleGit.Id,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.Git;
import com.pulumi.azuredevops.GitArgs;
import com.pulumi.azuredevops.inputs.GitInitializationArgs;
import com.pulumi.azuredevops.RepositoryPolicyCaseEnforcement;
import com.pulumi.azuredevops.RepositoryPolicyCaseEnforcementArgs;
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 example = new Project("example", ProjectArgs.builder()
            .name("Example Project")
            .visibility("private")
            .versionControl("Git")
            .workItemTemplate("Agile")
            .description("Managed by Pulumi")
            .build());

        var exampleGit = new Git("exampleGit", GitArgs.builder()
            .projectId(example.id())
            .name("Example Repository")
            .initialization(GitInitializationArgs.builder()
                .initType("Clean")
                .build())
            .build());

        var exampleRepositoryPolicyCaseEnforcement = new RepositoryPolicyCaseEnforcement("exampleRepositoryPolicyCaseEnforcement", RepositoryPolicyCaseEnforcementArgs.builder()
            .projectId(example.id())
            .enabled(true)
            .blocking(true)
            .enforceConsistentCase(true)
            .repositoryIds(exampleGit.id())
            .build());

    }
}
Copy
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
      description: Managed by Pulumi
  exampleGit:
    type: azuredevops:Git
    name: example
    properties:
      projectId: ${example.id}
      name: Example Repository
      initialization:
        initType: Clean
  exampleRepositoryPolicyCaseEnforcement:
    type: azuredevops:RepositoryPolicyCaseEnforcement
    name: example
    properties:
      projectId: ${example.id}
      enabled: true
      blocking: true
      enforceConsistentCase: true
      repositoryIds:
        - ${exampleGit.id}
Copy

Set project level repository policy

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

const example = new azuredevops.Project("example", {
    name: "Example Project",
    visibility: "private",
    versionControl: "Git",
    workItemTemplate: "Agile",
    description: "Managed by Pulumi",
});
const exampleRepositoryPolicyCaseEnforcement = new azuredevops.RepositoryPolicyCaseEnforcement("example", {
    projectId: example.id,
    enabled: true,
    blocking: true,
    enforceConsistentCase: true,
});
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Project("example",
    name="Example Project",
    visibility="private",
    version_control="Git",
    work_item_template="Agile",
    description="Managed by Pulumi")
example_repository_policy_case_enforcement = azuredevops.RepositoryPolicyCaseEnforcement("example",
    project_id=example.id,
    enabled=True,
    blocking=True,
    enforce_consistent_case=True)
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.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name:             pulumi.String("Example Project"),
			Visibility:       pulumi.String("private"),
			VersionControl:   pulumi.String("Git"),
			WorkItemTemplate: pulumi.String("Agile"),
			Description:      pulumi.String("Managed by Pulumi"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewRepositoryPolicyCaseEnforcement(ctx, "example", &azuredevops.RepositoryPolicyCaseEnforcementArgs{
			ProjectId:             example.ID(),
			Enabled:               pulumi.Bool(true),
			Blocking:              pulumi.Bool(true),
			EnforceConsistentCase: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
        Visibility = "private",
        VersionControl = "Git",
        WorkItemTemplate = "Agile",
        Description = "Managed by Pulumi",
    });

    var exampleRepositoryPolicyCaseEnforcement = new AzureDevOps.RepositoryPolicyCaseEnforcement("example", new()
    {
        ProjectId = example.Id,
        Enabled = true,
        Blocking = true,
        EnforceConsistentCase = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.RepositoryPolicyCaseEnforcement;
import com.pulumi.azuredevops.RepositoryPolicyCaseEnforcementArgs;
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 example = new Project("example", ProjectArgs.builder()
            .name("Example Project")
            .visibility("private")
            .versionControl("Git")
            .workItemTemplate("Agile")
            .description("Managed by Pulumi")
            .build());

        var exampleRepositoryPolicyCaseEnforcement = new RepositoryPolicyCaseEnforcement("exampleRepositoryPolicyCaseEnforcement", RepositoryPolicyCaseEnforcementArgs.builder()
            .projectId(example.id())
            .enabled(true)
            .blocking(true)
            .enforceConsistentCase(true)
            .build());

    }
}
Copy
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
      description: Managed by Pulumi
  exampleRepositoryPolicyCaseEnforcement:
    type: azuredevops:RepositoryPolicyCaseEnforcement
    name: example
    properties:
      projectId: ${example.id}
      enabled: true
      blocking: true
      enforceConsistentCase: true
Copy

Create RepositoryPolicyCaseEnforcement Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RepositoryPolicyCaseEnforcement(name: string, args: RepositoryPolicyCaseEnforcementArgs, opts?: CustomResourceOptions);
@overload
def RepositoryPolicyCaseEnforcement(resource_name: str,
                                    args: RepositoryPolicyCaseEnforcementArgs,
                                    opts: Optional[ResourceOptions] = None)

@overload
def RepositoryPolicyCaseEnforcement(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    enforce_consistent_case: Optional[bool] = None,
                                    project_id: Optional[str] = None,
                                    blocking: Optional[bool] = None,
                                    enabled: Optional[bool] = None,
                                    repository_ids: Optional[Sequence[str]] = None)
func NewRepositoryPolicyCaseEnforcement(ctx *Context, name string, args RepositoryPolicyCaseEnforcementArgs, opts ...ResourceOption) (*RepositoryPolicyCaseEnforcement, error)
public RepositoryPolicyCaseEnforcement(string name, RepositoryPolicyCaseEnforcementArgs args, CustomResourceOptions? opts = null)
public RepositoryPolicyCaseEnforcement(String name, RepositoryPolicyCaseEnforcementArgs args)
public RepositoryPolicyCaseEnforcement(String name, RepositoryPolicyCaseEnforcementArgs args, CustomResourceOptions options)
type: azuredevops:RepositoryPolicyCaseEnforcement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RepositoryPolicyCaseEnforcementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RepositoryPolicyCaseEnforcementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryPolicyCaseEnforcementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RepositoryPolicyCaseEnforcementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RepositoryPolicyCaseEnforcementArgs
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 repositoryPolicyCaseEnforcementResource = new AzureDevOps.RepositoryPolicyCaseEnforcement("repositoryPolicyCaseEnforcementResource", new()
{
    EnforceConsistentCase = false,
    ProjectId = "string",
    Blocking = false,
    Enabled = false,
    RepositoryIds = new[]
    {
        "string",
    },
});
Copy
example, err := azuredevops.NewRepositoryPolicyCaseEnforcement(ctx, "repositoryPolicyCaseEnforcementResource", &azuredevops.RepositoryPolicyCaseEnforcementArgs{
	EnforceConsistentCase: pulumi.Bool(false),
	ProjectId:             pulumi.String("string"),
	Blocking:              pulumi.Bool(false),
	Enabled:               pulumi.Bool(false),
	RepositoryIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var repositoryPolicyCaseEnforcementResource = new RepositoryPolicyCaseEnforcement("repositoryPolicyCaseEnforcementResource", RepositoryPolicyCaseEnforcementArgs.builder()
    .enforceConsistentCase(false)
    .projectId("string")
    .blocking(false)
    .enabled(false)
    .repositoryIds("string")
    .build());
Copy
repository_policy_case_enforcement_resource = azuredevops.RepositoryPolicyCaseEnforcement("repositoryPolicyCaseEnforcementResource",
    enforce_consistent_case=False,
    project_id="string",
    blocking=False,
    enabled=False,
    repository_ids=["string"])
Copy
const repositoryPolicyCaseEnforcementResource = new azuredevops.RepositoryPolicyCaseEnforcement("repositoryPolicyCaseEnforcementResource", {
    enforceConsistentCase: false,
    projectId: "string",
    blocking: false,
    enabled: false,
    repositoryIds: ["string"],
});
Copy
type: azuredevops:RepositoryPolicyCaseEnforcement
properties:
    blocking: false
    enabled: false
    enforceConsistentCase: false
    projectId: string
    repositoryIds:
        - string
Copy

RepositoryPolicyCaseEnforcement 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 RepositoryPolicyCaseEnforcement resource accepts the following input properties:

EnforceConsistentCase This property is required. bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the project in which the policy will be created.
Blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
Enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
RepositoryIds List<string>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
EnforceConsistentCase This property is required. bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
ProjectId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the project in which the policy will be created.
Blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
Enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
RepositoryIds []string
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
enforceConsistentCase This property is required. Boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the project in which the policy will be created.
blocking Boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled Boolean
A flag indicating if the policy should be enabled. Defaults to true.
repositoryIds List<String>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
enforceConsistentCase This property is required. boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the project in which the policy will be created.
blocking boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled boolean
A flag indicating if the policy should be enabled. Defaults to true.
repositoryIds string[]
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
enforce_consistent_case This property is required. bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
project_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the project in which the policy will be created.
blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
repository_ids Sequence[str]
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
enforceConsistentCase This property is required. Boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the project in which the policy will be created.
blocking Boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled Boolean
A flag indicating if the policy should be enabled. Defaults to true.
repositoryIds List<String>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.

Outputs

All input properties are implicitly available as output properties. Additionally, the RepositoryPolicyCaseEnforcement resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RepositoryPolicyCaseEnforcement Resource

Get an existing RepositoryPolicyCaseEnforcement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RepositoryPolicyCaseEnforcementState, opts?: CustomResourceOptions): RepositoryPolicyCaseEnforcement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        blocking: Optional[bool] = None,
        enabled: Optional[bool] = None,
        enforce_consistent_case: Optional[bool] = None,
        project_id: Optional[str] = None,
        repository_ids: Optional[Sequence[str]] = None) -> RepositoryPolicyCaseEnforcement
func GetRepositoryPolicyCaseEnforcement(ctx *Context, name string, id IDInput, state *RepositoryPolicyCaseEnforcementState, opts ...ResourceOption) (*RepositoryPolicyCaseEnforcement, error)
public static RepositoryPolicyCaseEnforcement Get(string name, Input<string> id, RepositoryPolicyCaseEnforcementState? state, CustomResourceOptions? opts = null)
public static RepositoryPolicyCaseEnforcement get(String name, Output<String> id, RepositoryPolicyCaseEnforcementState state, CustomResourceOptions options)
resources:  _:    type: azuredevops:RepositoryPolicyCaseEnforcement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
Enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
EnforceConsistentCase bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
ProjectId Changes to this property will trigger replacement. string
The ID of the project in which the policy will be created.
RepositoryIds List<string>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
Blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
Enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
EnforceConsistentCase bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
ProjectId Changes to this property will trigger replacement. string
The ID of the project in which the policy will be created.
RepositoryIds []string
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
blocking Boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled Boolean
A flag indicating if the policy should be enabled. Defaults to true.
enforceConsistentCase Boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId Changes to this property will trigger replacement. String
The ID of the project in which the policy will be created.
repositoryIds List<String>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
blocking boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled boolean
A flag indicating if the policy should be enabled. Defaults to true.
enforceConsistentCase boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId Changes to this property will trigger replacement. string
The ID of the project in which the policy will be created.
repositoryIds string[]
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
blocking bool
A flag indicating if the policy should be blocking. Defaults to true.
enabled bool
A flag indicating if the policy should be enabled. Defaults to true.
enforce_consistent_case bool
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
project_id Changes to this property will trigger replacement. str
The ID of the project in which the policy will be created.
repository_ids Sequence[str]
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.
blocking Boolean
A flag indicating if the policy should be blocking. Defaults to true.
enabled Boolean
A flag indicating if the policy should be enabled. Defaults to true.
enforceConsistentCase Boolean
Avoid case-sensitivity conflicts by blocking pushes that change name casing on files, folders, branches, and tags.
projectId Changes to this property will trigger replacement. String
The ID of the project in which the policy will be created.
repositoryIds List<String>
Control whether the policy is enabled for the repository or the project. If repository_ids not configured, the policy will be set to the project.

Import

Azure DevOps repository policies can be imported using the projectID/policyID or projectName/policyID:

$ pulumi import azuredevops:index/repositoryPolicyCaseEnforcement:RepositoryPolicyCaseEnforcement example 00000000-0000-0000-0000-000000000000/0
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.