1. Packages
  2. AzureDevOps
  3. API Docs
  4. RepositoryPolicyMaxFileSize
Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi

azuredevops.RepositoryPolicyMaxFileSize

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi

    Manage a max file size repository policy within Azure DevOps project.

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const exampleProject = new azuredevops.Project("exampleProject", {
        visibility: "private",
        versionControl: "Git",
        workItemTemplate: "Agile",
        description: "Managed by Terraform",
    });
    const exampleGit = new azuredevops.Git("exampleGit", {
        projectId: exampleProject.id,
        initialization: {
            initType: "Clean",
        },
    });
    const exampleRepositoryPolicyMaxFileSize = new azuredevops.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", {
        projectId: exampleProject.id,
        enabled: true,
        blocking: true,
        maxFileSize: 1,
        repositoryIds: [exampleGit.id],
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example_project = azuredevops.Project("exampleProject",
        visibility="private",
        version_control="Git",
        work_item_template="Agile",
        description="Managed by Terraform")
    example_git = azuredevops.Git("exampleGit",
        project_id=example_project.id,
        initialization=azuredevops.GitInitializationArgs(
            init_type="Clean",
        ))
    example_repository_policy_max_file_size = azuredevops.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize",
        project_id=example_project.id,
        enabled=True,
        blocking=True,
        max_file_size=1,
        repository_ids=[example_git.id])
    
    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 {
    		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", &azuredevops.ProjectArgs{
    			Visibility:       pulumi.String("private"),
    			VersionControl:   pulumi.String("Git"),
    			WorkItemTemplate: pulumi.String("Agile"),
    			Description:      pulumi.String("Managed by Terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleGit, err := azuredevops.NewGit(ctx, "exampleGit", &azuredevops.GitArgs{
    			ProjectId: exampleProject.ID(),
    			Initialization: &azuredevops.GitInitializationArgs{
    				InitType: pulumi.String("Clean"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewRepositoryPolicyMaxFileSize(ctx, "exampleRepositoryPolicyMaxFileSize", &azuredevops.RepositoryPolicyMaxFileSizeArgs{
    			ProjectId:   exampleProject.ID(),
    			Enabled:     pulumi.Bool(true),
    			Blocking:    pulumi.Bool(true),
    			MaxFileSize: pulumi.Int(1),
    			RepositoryIds: pulumi.StringArray{
    				exampleGit.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleProject = new AzureDevOps.Project("exampleProject", new()
        {
            Visibility = "private",
            VersionControl = "Git",
            WorkItemTemplate = "Agile",
            Description = "Managed by Terraform",
        });
    
        var exampleGit = new AzureDevOps.Git("exampleGit", new()
        {
            ProjectId = exampleProject.Id,
            Initialization = new AzureDevOps.Inputs.GitInitializationArgs
            {
                InitType = "Clean",
            },
        });
    
        var exampleRepositoryPolicyMaxFileSize = new AzureDevOps.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", new()
        {
            ProjectId = exampleProject.Id,
            Enabled = true,
            Blocking = true,
            MaxFileSize = 1,
            RepositoryIds = new[]
            {
                exampleGit.Id,
            },
        });
    
    });
    
    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.RepositoryPolicyMaxFileSize;
    import com.pulumi.azuredevops.RepositoryPolicyMaxFileSizeArgs;
    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 exampleProject = new Project("exampleProject", ProjectArgs.builder()        
                .visibility("private")
                .versionControl("Git")
                .workItemTemplate("Agile")
                .description("Managed by Terraform")
                .build());
    
            var exampleGit = new Git("exampleGit", GitArgs.builder()        
                .projectId(exampleProject.id())
                .initialization(GitInitializationArgs.builder()
                    .initType("Clean")
                    .build())
                .build());
    
            var exampleRepositoryPolicyMaxFileSize = new RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", RepositoryPolicyMaxFileSizeArgs.builder()        
                .projectId(exampleProject.id())
                .enabled(true)
                .blocking(true)
                .maxFileSize(1)
                .repositoryIds(exampleGit.id())
                .build());
    
        }
    }
    
    resources:
      exampleProject:
        type: azuredevops:Project
        properties:
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      exampleGit:
        type: azuredevops:Git
        properties:
          projectId: ${exampleProject.id}
          initialization:
            initType: Clean
      exampleRepositoryPolicyMaxFileSize:
        type: azuredevops:RepositoryPolicyMaxFileSize
        properties:
          projectId: ${exampleProject.id}
          enabled: true
          blocking: true
          maxFileSize: 1
          repositoryIds:
            - ${exampleGit.id}
    

    Set project level repository policy

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const exampleProject = new azuredevops.Project("exampleProject", {
        visibility: "private",
        versionControl: "Git",
        workItemTemplate: "Agile",
        description: "Managed by Terraform",
    });
    const exampleRepositoryPolicyMaxFileSize = new azuredevops.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", {
        projectId: exampleProject.id,
        enabled: true,
        blocking: true,
        maxFileSize: 1,
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example_project = azuredevops.Project("exampleProject",
        visibility="private",
        version_control="Git",
        work_item_template="Agile",
        description="Managed by Terraform")
    example_repository_policy_max_file_size = azuredevops.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize",
        project_id=example_project.id,
        enabled=True,
        blocking=True,
        max_file_size=1)
    
    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 {
    		exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", &azuredevops.ProjectArgs{
    			Visibility:       pulumi.String("private"),
    			VersionControl:   pulumi.String("Git"),
    			WorkItemTemplate: pulumi.String("Agile"),
    			Description:      pulumi.String("Managed by Terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewRepositoryPolicyMaxFileSize(ctx, "exampleRepositoryPolicyMaxFileSize", &azuredevops.RepositoryPolicyMaxFileSizeArgs{
    			ProjectId:   exampleProject.ID(),
    			Enabled:     pulumi.Bool(true),
    			Blocking:    pulumi.Bool(true),
    			MaxFileSize: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleProject = new AzureDevOps.Project("exampleProject", new()
        {
            Visibility = "private",
            VersionControl = "Git",
            WorkItemTemplate = "Agile",
            Description = "Managed by Terraform",
        });
    
        var exampleRepositoryPolicyMaxFileSize = new AzureDevOps.RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", new()
        {
            ProjectId = exampleProject.Id,
            Enabled = true,
            Blocking = true,
            MaxFileSize = 1,
        });
    
    });
    
    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.RepositoryPolicyMaxFileSize;
    import com.pulumi.azuredevops.RepositoryPolicyMaxFileSizeArgs;
    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 exampleProject = new Project("exampleProject", ProjectArgs.builder()        
                .visibility("private")
                .versionControl("Git")
                .workItemTemplate("Agile")
                .description("Managed by Terraform")
                .build());
    
            var exampleRepositoryPolicyMaxFileSize = new RepositoryPolicyMaxFileSize("exampleRepositoryPolicyMaxFileSize", RepositoryPolicyMaxFileSizeArgs.builder()        
                .projectId(exampleProject.id())
                .enabled(true)
                .blocking(true)
                .maxFileSize(1)
                .build());
    
        }
    }
    
    resources:
      exampleProject:
        type: azuredevops:Project
        properties:
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      exampleRepositoryPolicyMaxFileSize:
        type: azuredevops:RepositoryPolicyMaxFileSize
        properties:
          projectId: ${exampleProject.id}
          enabled: true
          blocking: true
          maxFileSize: 1
    

    Create RepositoryPolicyMaxFileSize Resource

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

    Constructor syntax

    new RepositoryPolicyMaxFileSize(name: string, args: RepositoryPolicyMaxFileSizeArgs, opts?: CustomResourceOptions);
    @overload
    def RepositoryPolicyMaxFileSize(resource_name: str,
                                    args: RepositoryPolicyMaxFileSizeArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def RepositoryPolicyMaxFileSize(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    max_file_size: Optional[int] = None,
                                    project_id: Optional[str] = None,
                                    blocking: Optional[bool] = None,
                                    enabled: Optional[bool] = None,
                                    repository_ids: Optional[Sequence[str]] = None)
    func NewRepositoryPolicyMaxFileSize(ctx *Context, name string, args RepositoryPolicyMaxFileSizeArgs, opts ...ResourceOption) (*RepositoryPolicyMaxFileSize, error)
    public RepositoryPolicyMaxFileSize(string name, RepositoryPolicyMaxFileSizeArgs args, CustomResourceOptions? opts = null)
    public RepositoryPolicyMaxFileSize(String name, RepositoryPolicyMaxFileSizeArgs args)
    public RepositoryPolicyMaxFileSize(String name, RepositoryPolicyMaxFileSizeArgs args, CustomResourceOptions options)
    
    type: azuredevops:RepositoryPolicyMaxFileSize
    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 RepositoryPolicyMaxFileSizeArgs
    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 RepositoryPolicyMaxFileSizeArgs
    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 RepositoryPolicyMaxFileSizeArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryPolicyMaxFileSizeArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryPolicyMaxFileSizeArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var repositoryPolicyMaxFileSizeResource = new AzureDevOps.RepositoryPolicyMaxFileSize("repositoryPolicyMaxFileSizeResource", new()
    {
        MaxFileSize = 0,
        ProjectId = "string",
        Blocking = false,
        Enabled = false,
        RepositoryIds = new[]
        {
            "string",
        },
    });
    
    example, err := azuredevops.NewRepositoryPolicyMaxFileSize(ctx, "repositoryPolicyMaxFileSizeResource", &azuredevops.RepositoryPolicyMaxFileSizeArgs{
    	MaxFileSize: pulumi.Int(0),
    	ProjectId:   pulumi.String("string"),
    	Blocking:    pulumi.Bool(false),
    	Enabled:     pulumi.Bool(false),
    	RepositoryIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var repositoryPolicyMaxFileSizeResource = new RepositoryPolicyMaxFileSize("repositoryPolicyMaxFileSizeResource", RepositoryPolicyMaxFileSizeArgs.builder()        
        .maxFileSize(0)
        .projectId("string")
        .blocking(false)
        .enabled(false)
        .repositoryIds("string")
        .build());
    
    repository_policy_max_file_size_resource = azuredevops.RepositoryPolicyMaxFileSize("repositoryPolicyMaxFileSizeResource",
        max_file_size=0,
        project_id="string",
        blocking=False,
        enabled=False,
        repository_ids=["string"])
    
    const repositoryPolicyMaxFileSizeResource = new azuredevops.RepositoryPolicyMaxFileSize("repositoryPolicyMaxFileSizeResource", {
        maxFileSize: 0,
        projectId: "string",
        blocking: false,
        enabled: false,
        repositoryIds: ["string"],
    });
    
    type: azuredevops:RepositoryPolicyMaxFileSize
    properties:
        blocking: false
        enabled: false
        maxFileSize: 0
        projectId: string
        repositoryIds:
            - string
    

    RepositoryPolicyMaxFileSize Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The RepositoryPolicyMaxFileSize resource accepts the following input properties:

    MaxFileSize int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    ProjectId 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.
    MaxFileSize int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    ProjectId 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.
    maxFileSize Integer
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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.
    maxFileSize number
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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.
    max_file_size int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    project_id 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.
    maxFileSize Number
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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 RepositoryPolicyMaxFileSize 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 RepositoryPolicyMaxFileSize Resource

    Get an existing RepositoryPolicyMaxFileSize 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?: RepositoryPolicyMaxFileSizeState, opts?: CustomResourceOptions): RepositoryPolicyMaxFileSize
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            blocking: Optional[bool] = None,
            enabled: Optional[bool] = None,
            max_file_size: Optional[int] = None,
            project_id: Optional[str] = None,
            repository_ids: Optional[Sequence[str]] = None) -> RepositoryPolicyMaxFileSize
    func GetRepositoryPolicyMaxFileSize(ctx *Context, name string, id IDInput, state *RepositoryPolicyMaxFileSizeState, opts ...ResourceOption) (*RepositoryPolicyMaxFileSize, error)
    public static RepositoryPolicyMaxFileSize Get(string name, Input<string> id, RepositoryPolicyMaxFileSizeState? state, CustomResourceOptions? opts = null)
    public static RepositoryPolicyMaxFileSize get(String name, Output<String> id, RepositoryPolicyMaxFileSizeState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    MaxFileSize int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    ProjectId 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.
    MaxFileSize int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    ProjectId 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.
    maxFileSize Integer
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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.
    maxFileSize number
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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.
    max_file_size int
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    project_id 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.
    maxFileSize Number
    Block pushes that contain new or updated files larger than this limit. Available values is: 1, 2, 5, 10, 100, 200 (MB).
    projectId 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/repositoryPolicyMaxFileSize:RepositoryPolicyMaxFileSize example 00000000-0000-0000-0000-000000000000/0
    

    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.
    azuredevops logo
    Azure DevOps v3.0.0 published on Friday, Mar 15, 2024 by Pulumi