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

azuredevops.PipelineAuthorization

Explore with Pulumi AI

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

    Manage pipeline access permissions to resources.

    Note This resource is a replacement for azuredevops.ResourceAuthorization. Pipeline authorizations managed by azuredevops.ResourceAuthorization can also be managed by this resource.

    Note If both “All Pipeline Authorization” and “Custom Pipeline Authorization” are configured, “All Pipeline Authorization” has higher priority.

    Example Usage

    Authorization for all pipelines

    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 examplePool = new azuredevops.Pool("examplePool", {
        autoProvision: false,
        autoUpdate: false,
    });
    const exampleQueue = new azuredevops.Queue("exampleQueue", {
        projectId: exampleProject.id,
        agentPoolId: examplePool.id,
    });
    const examplePipelineAuthorization = new azuredevops.PipelineAuthorization("examplePipelineAuthorization", {
        projectId: exampleProject.id,
        resourceId: exampleQueue.id,
        type: "queue",
    });
    
    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_pool = azuredevops.Pool("examplePool",
        auto_provision=False,
        auto_update=False)
    example_queue = azuredevops.Queue("exampleQueue",
        project_id=example_project.id,
        agent_pool_id=example_pool.id)
    example_pipeline_authorization = azuredevops.PipelineAuthorization("examplePipelineAuthorization",
        project_id=example_project.id,
        resource_id=example_queue.id,
        type="queue")
    
    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
    		}
    		examplePool, err := azuredevops.NewPool(ctx, "examplePool", &azuredevops.PoolArgs{
    			AutoProvision: pulumi.Bool(false),
    			AutoUpdate:    pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		exampleQueue, err := azuredevops.NewQueue(ctx, "exampleQueue", &azuredevops.QueueArgs{
    			ProjectId:   exampleProject.ID(),
    			AgentPoolId: examplePool.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewPipelineAuthorization(ctx, "examplePipelineAuthorization", &azuredevops.PipelineAuthorizationArgs{
    			ProjectId:  exampleProject.ID(),
    			ResourceId: exampleQueue.ID(),
    			Type:       pulumi.String("queue"),
    		})
    		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 examplePool = new AzureDevOps.Pool("examplePool", new()
        {
            AutoProvision = false,
            AutoUpdate = false,
        });
    
        var exampleQueue = new AzureDevOps.Queue("exampleQueue", new()
        {
            ProjectId = exampleProject.Id,
            AgentPoolId = examplePool.Id,
        });
    
        var examplePipelineAuthorization = new AzureDevOps.PipelineAuthorization("examplePipelineAuthorization", new()
        {
            ProjectId = exampleProject.Id,
            ResourceId = exampleQueue.Id,
            Type = "queue",
        });
    
    });
    
    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.Pool;
    import com.pulumi.azuredevops.PoolArgs;
    import com.pulumi.azuredevops.Queue;
    import com.pulumi.azuredevops.QueueArgs;
    import com.pulumi.azuredevops.PipelineAuthorization;
    import com.pulumi.azuredevops.PipelineAuthorizationArgs;
    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 examplePool = new Pool("examplePool", PoolArgs.builder()        
                .autoProvision(false)
                .autoUpdate(false)
                .build());
    
            var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()        
                .projectId(exampleProject.id())
                .agentPoolId(examplePool.id())
                .build());
    
            var examplePipelineAuthorization = new PipelineAuthorization("examplePipelineAuthorization", PipelineAuthorizationArgs.builder()        
                .projectId(exampleProject.id())
                .resourceId(exampleQueue.id())
                .type("queue")
                .build());
    
        }
    }
    
    resources:
      exampleProject:
        type: azuredevops:Project
        properties:
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      examplePool:
        type: azuredevops:Pool
        properties:
          autoProvision: false
          autoUpdate: false
      exampleQueue:
        type: azuredevops:Queue
        properties:
          projectId: ${exampleProject.id}
          agentPoolId: ${examplePool.id}
      examplePipelineAuthorization:
        type: azuredevops:PipelineAuthorization
        properties:
          projectId: ${exampleProject.id}
          resourceId: ${exampleQueue.id}
          type: queue
    

    Authorization for specific pipeline

    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 examplePool = new azuredevops.Pool("examplePool", {
        autoProvision: false,
        autoUpdate: false,
    });
    const exampleQueue = new azuredevops.Queue("exampleQueue", {
        projectId: exampleProject.id,
        agentPoolId: examplePool.id,
    });
    const exampleGitRepository = azuredevops.getGitRepositoryOutput({
        projectId: exampleProject.id,
        name: "Example Project",
    });
    const exampleBuildDefinition = new azuredevops.BuildDefinition("exampleBuildDefinition", {
        projectId: exampleProject.id,
        repository: {
            repoType: "TfsGit",
            repoId: exampleGitRepository.apply(exampleGitRepository => exampleGitRepository.id),
            ymlPath: "azure-pipelines.yml",
        },
    });
    const examplePipelineAuthorization = new azuredevops.PipelineAuthorization("examplePipelineAuthorization", {
        projectId: exampleProject.id,
        resourceId: exampleQueue.id,
        type: "queue",
        pipelineId: exampleBuildDefinition.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_pool = azuredevops.Pool("examplePool",
        auto_provision=False,
        auto_update=False)
    example_queue = azuredevops.Queue("exampleQueue",
        project_id=example_project.id,
        agent_pool_id=example_pool.id)
    example_git_repository = azuredevops.get_git_repository_output(project_id=example_project.id,
        name="Example Project")
    example_build_definition = azuredevops.BuildDefinition("exampleBuildDefinition",
        project_id=example_project.id,
        repository=azuredevops.BuildDefinitionRepositoryArgs(
            repo_type="TfsGit",
            repo_id=example_git_repository.id,
            yml_path="azure-pipelines.yml",
        ))
    example_pipeline_authorization = azuredevops.PipelineAuthorization("examplePipelineAuthorization",
        project_id=example_project.id,
        resource_id=example_queue.id,
        type="queue",
        pipeline_id=example_build_definition.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
    		}
    		examplePool, err := azuredevops.NewPool(ctx, "examplePool", &azuredevops.PoolArgs{
    			AutoProvision: pulumi.Bool(false),
    			AutoUpdate:    pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		exampleQueue, err := azuredevops.NewQueue(ctx, "exampleQueue", &azuredevops.QueueArgs{
    			ProjectId:   exampleProject.ID(),
    			AgentPoolId: examplePool.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleGitRepository := azuredevops.GetGitRepositoryOutput(ctx, azuredevops.GetGitRepositoryOutputArgs{
    			ProjectId: exampleProject.ID(),
    			Name:      pulumi.String("Example Project"),
    		}, nil)
    		exampleBuildDefinition, err := azuredevops.NewBuildDefinition(ctx, "exampleBuildDefinition", &azuredevops.BuildDefinitionArgs{
    			ProjectId: exampleProject.ID(),
    			Repository: &azuredevops.BuildDefinitionRepositoryArgs{
    				RepoType: pulumi.String("TfsGit"),
    				RepoId: exampleGitRepository.ApplyT(func(exampleGitRepository azuredevops.GetGitRepositoryResult) (*string, error) {
    					return &exampleGitRepository.Id, nil
    				}).(pulumi.StringPtrOutput),
    				YmlPath: pulumi.String("azure-pipelines.yml"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewPipelineAuthorization(ctx, "examplePipelineAuthorization", &azuredevops.PipelineAuthorizationArgs{
    			ProjectId:  exampleProject.ID(),
    			ResourceId: exampleQueue.ID(),
    			Type:       pulumi.String("queue"),
    			PipelineId: exampleBuildDefinition.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 examplePool = new AzureDevOps.Pool("examplePool", new()
        {
            AutoProvision = false,
            AutoUpdate = false,
        });
    
        var exampleQueue = new AzureDevOps.Queue("exampleQueue", new()
        {
            ProjectId = exampleProject.Id,
            AgentPoolId = examplePool.Id,
        });
    
        var exampleGitRepository = AzureDevOps.GetGitRepository.Invoke(new()
        {
            ProjectId = exampleProject.Id,
            Name = "Example Project",
        });
    
        var exampleBuildDefinition = new AzureDevOps.BuildDefinition("exampleBuildDefinition", new()
        {
            ProjectId = exampleProject.Id,
            Repository = new AzureDevOps.Inputs.BuildDefinitionRepositoryArgs
            {
                RepoType = "TfsGit",
                RepoId = exampleGitRepository.Apply(getGitRepositoryResult => getGitRepositoryResult.Id),
                YmlPath = "azure-pipelines.yml",
            },
        });
    
        var examplePipelineAuthorization = new AzureDevOps.PipelineAuthorization("examplePipelineAuthorization", new()
        {
            ProjectId = exampleProject.Id,
            ResourceId = exampleQueue.Id,
            Type = "queue",
            PipelineId = exampleBuildDefinition.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.Pool;
    import com.pulumi.azuredevops.PoolArgs;
    import com.pulumi.azuredevops.Queue;
    import com.pulumi.azuredevops.QueueArgs;
    import com.pulumi.azuredevops.AzuredevopsFunctions;
    import com.pulumi.azuredevops.inputs.GetGitRepositoryArgs;
    import com.pulumi.azuredevops.BuildDefinition;
    import com.pulumi.azuredevops.BuildDefinitionArgs;
    import com.pulumi.azuredevops.inputs.BuildDefinitionRepositoryArgs;
    import com.pulumi.azuredevops.PipelineAuthorization;
    import com.pulumi.azuredevops.PipelineAuthorizationArgs;
    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 examplePool = new Pool("examplePool", PoolArgs.builder()        
                .autoProvision(false)
                .autoUpdate(false)
                .build());
    
            var exampleQueue = new Queue("exampleQueue", QueueArgs.builder()        
                .projectId(exampleProject.id())
                .agentPoolId(examplePool.id())
                .build());
    
            final var exampleGitRepository = AzuredevopsFunctions.getGitRepository(GetGitRepositoryArgs.builder()
                .projectId(exampleProject.id())
                .name("Example Project")
                .build());
    
            var exampleBuildDefinition = new BuildDefinition("exampleBuildDefinition", BuildDefinitionArgs.builder()        
                .projectId(exampleProject.id())
                .repository(BuildDefinitionRepositoryArgs.builder()
                    .repoType("TfsGit")
                    .repoId(exampleGitRepository.applyValue(getGitRepositoryResult -> getGitRepositoryResult).applyValue(exampleGitRepository -> exampleGitRepository.applyValue(getGitRepositoryResult -> getGitRepositoryResult.id())))
                    .ymlPath("azure-pipelines.yml")
                    .build())
                .build());
    
            var examplePipelineAuthorization = new PipelineAuthorization("examplePipelineAuthorization", PipelineAuthorizationArgs.builder()        
                .projectId(exampleProject.id())
                .resourceId(exampleQueue.id())
                .type("queue")
                .pipelineId(exampleBuildDefinition.id())
                .build());
    
        }
    }
    
    resources:
      exampleProject:
        type: azuredevops:Project
        properties:
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      examplePool:
        type: azuredevops:Pool
        properties:
          autoProvision: false
          autoUpdate: false
      exampleQueue:
        type: azuredevops:Queue
        properties:
          projectId: ${exampleProject.id}
          agentPoolId: ${examplePool.id}
      exampleBuildDefinition:
        type: azuredevops:BuildDefinition
        properties:
          projectId: ${exampleProject.id}
          repository:
            repoType: TfsGit
            repoId: ${exampleGitRepository.id}
            ymlPath: azure-pipelines.yml
      examplePipelineAuthorization:
        type: azuredevops:PipelineAuthorization
        properties:
          projectId: ${exampleProject.id}
          resourceId: ${exampleQueue.id}
          type: queue
          pipelineId: ${exampleBuildDefinition.id}
    variables:
      exampleGitRepository:
        fn::invoke:
          Function: azuredevops:getGitRepository
          Arguments:
            projectId: ${exampleProject.id}
            name: Example Project
    

    Create PipelineAuthorization Resource

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

    Constructor syntax

    new PipelineAuthorization(name: string, args: PipelineAuthorizationArgs, opts?: CustomResourceOptions);
    @overload
    def PipelineAuthorization(resource_name: str,
                              args: PipelineAuthorizationArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def PipelineAuthorization(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              project_id: Optional[str] = None,
                              resource_id: Optional[str] = None,
                              type: Optional[str] = None,
                              pipeline_id: Optional[int] = None)
    func NewPipelineAuthorization(ctx *Context, name string, args PipelineAuthorizationArgs, opts ...ResourceOption) (*PipelineAuthorization, error)
    public PipelineAuthorization(string name, PipelineAuthorizationArgs args, CustomResourceOptions? opts = null)
    public PipelineAuthorization(String name, PipelineAuthorizationArgs args)
    public PipelineAuthorization(String name, PipelineAuthorizationArgs args, CustomResourceOptions options)
    
    type: azuredevops:PipelineAuthorization
    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 PipelineAuthorizationArgs
    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 PipelineAuthorizationArgs
    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 PipelineAuthorizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PipelineAuthorizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PipelineAuthorizationArgs
    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 pipelineAuthorizationResource = new AzureDevOps.PipelineAuthorization("pipelineAuthorizationResource", new()
    {
        ProjectId = "string",
        ResourceId = "string",
        Type = "string",
        PipelineId = 0,
    });
    
    example, err := azuredevops.NewPipelineAuthorization(ctx, "pipelineAuthorizationResource", &azuredevops.PipelineAuthorizationArgs{
    	ProjectId:  pulumi.String("string"),
    	ResourceId: pulumi.String("string"),
    	Type:       pulumi.String("string"),
    	PipelineId: pulumi.Int(0),
    })
    
    var pipelineAuthorizationResource = new PipelineAuthorization("pipelineAuthorizationResource", PipelineAuthorizationArgs.builder()        
        .projectId("string")
        .resourceId("string")
        .type("string")
        .pipelineId(0)
        .build());
    
    pipeline_authorization_resource = azuredevops.PipelineAuthorization("pipelineAuthorizationResource",
        project_id="string",
        resource_id="string",
        type="string",
        pipeline_id=0)
    
    const pipelineAuthorizationResource = new azuredevops.PipelineAuthorization("pipelineAuthorizationResource", {
        projectId: "string",
        resourceId: "string",
        type: "string",
        pipelineId: 0,
    });
    
    type: azuredevops:PipelineAuthorization
    properties:
        pipelineId: 0
        projectId: string
        resourceId: string
        type: string
    

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

    ProjectId string
    The ID of the project. Changing this forces a new resource to be created
    ResourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    Type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    PipelineId int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    ProjectId string
    The ID of the project. Changing this forces a new resource to be created
    ResourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    Type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    PipelineId int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId String
    The ID of the project. Changing this forces a new resource to be created
    resourceId String
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type String

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId Integer
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId string
    The ID of the project. Changing this forces a new resource to be created
    resourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId number
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    project_id str
    The ID of the project. Changing this forces a new resource to be created
    resource_id str
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type str

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipeline_id int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId String
    The ID of the project. Changing this forces a new resource to be created
    resourceId String
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type String

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId Number
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PipelineAuthorization 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 PipelineAuthorization Resource

    Get an existing PipelineAuthorization 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?: PipelineAuthorizationState, opts?: CustomResourceOptions): PipelineAuthorization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            pipeline_id: Optional[int] = None,
            project_id: Optional[str] = None,
            resource_id: Optional[str] = None,
            type: Optional[str] = None) -> PipelineAuthorization
    func GetPipelineAuthorization(ctx *Context, name string, id IDInput, state *PipelineAuthorizationState, opts ...ResourceOption) (*PipelineAuthorization, error)
    public static PipelineAuthorization Get(string name, Input<string> id, PipelineAuthorizationState? state, CustomResourceOptions? opts = null)
    public static PipelineAuthorization get(String name, Output<String> id, PipelineAuthorizationState 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:
    PipelineId int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    ProjectId string
    The ID of the project. Changing this forces a new resource to be created
    ResourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    Type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    PipelineId int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    ProjectId string
    The ID of the project. Changing this forces a new resource to be created
    ResourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    Type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId Integer
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId String
    The ID of the project. Changing this forces a new resource to be created
    resourceId String
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type String

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId number
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId string
    The ID of the project. Changing this forces a new resource to be created
    resourceId string
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type string

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipeline_id int
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    project_id str
    The ID of the project. Changing this forces a new resource to be created
    resource_id str
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type str

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    pipelineId Number
    The ID of the pipeline. If not configured, all pipelines will be authorized. Changing this forces a new resource to be created.
    projectId String
    The ID of the project. Changing this forces a new resource to be created
    resourceId String
    The ID of the resource to authorize. Changing this forces a new resource to be created
    type String

    The type of the resource to authorize. Valid values: endpoint, queue, variablegroup, environment, repository. Changing this forces a new resource to be created

    Note repository is for AzureDevOps repository. To authorize repository other than Azure DevOps like GitHub you need to use service connection(endpoint) to connect and authorize. Typical process for connecting to GitHub: Pipeline <----> Service Connection(endpoint) <----> GitHub Repository

    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