azuredevops logo
Azure DevOps v2.7.0, Mar 27 23

azuredevops.ServiceEndpointAzureRM

Explore with Pulumi AI

Manages Manual or Automatic AzureRM service endpoint within Azure DevOps.

Requirements (Manual AzureRM Service Endpoint)

Before to create a service end point in Azure DevOps, you need to create a Service Principal in your Azure subscription.

For detailed steps to create a service principal with Azure cli see the documentation

Example Usage

Manual AzureRM Service Endpoint (Subscription Scoped)

using System.Collections.Generic;
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 exampleServiceEndpointAzureRM = new AzureDevOps.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", new()
    {
        ProjectId = exampleProject.Id,
        ServiceEndpointName = "Example AzureRM",
        Description = "Managed by Terraform",
        Credentials = new AzureDevOps.Inputs.ServiceEndpointAzureRMCredentialsArgs
        {
            Serviceprincipalid = "00000000-0000-0000-0000-000000000000",
            Serviceprincipalkey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        },
        AzurermSpnTenantid = "00000000-0000-0000-0000-000000000000",
        AzurermSubscriptionId = "00000000-0000-0000-0000-000000000000",
        AzurermSubscriptionName = "Example Subscription Name",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/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.NewServiceEndpointAzureRM(ctx, "exampleServiceEndpointAzureRM", &azuredevops.ServiceEndpointAzureRMArgs{
			ProjectId:           exampleProject.ID(),
			ServiceEndpointName: pulumi.String("Example AzureRM"),
			Description:         pulumi.String("Managed by Terraform"),
			Credentials: &azuredevops.ServiceEndpointAzureRMCredentialsArgs{
				Serviceprincipalid:  pulumi.String("00000000-0000-0000-0000-000000000000"),
				Serviceprincipalkey: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			},
			AzurermSpnTenantid:      pulumi.String("00000000-0000-0000-0000-000000000000"),
			AzurermSubscriptionId:   pulumi.String("00000000-0000-0000-0000-000000000000"),
			AzurermSubscriptionName: pulumi.String("Example Subscription Name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.ServiceEndpointAzureRM;
import com.pulumi.azuredevops.ServiceEndpointAzureRMArgs;
import com.pulumi.azuredevops.inputs.ServiceEndpointAzureRMCredentialsArgs;
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 exampleServiceEndpointAzureRM = new ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", ServiceEndpointAzureRMArgs.builder()        
            .projectId(exampleProject.id())
            .serviceEndpointName("Example AzureRM")
            .description("Managed by Terraform")
            .credentials(ServiceEndpointAzureRMCredentialsArgs.builder()
                .serviceprincipalid("00000000-0000-0000-0000-000000000000")
                .serviceprincipalkey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .build())
            .azurermSpnTenantid("00000000-0000-0000-0000-000000000000")
            .azurermSubscriptionId("00000000-0000-0000-0000-000000000000")
            .azurermSubscriptionName("Example Subscription Name")
            .build());

    }
}
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_service_endpoint_azure_rm = azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM",
    project_id=example_project.id,
    service_endpoint_name="Example AzureRM",
    description="Managed by Terraform",
    credentials=azuredevops.ServiceEndpointAzureRMCredentialsArgs(
        serviceprincipalid="00000000-0000-0000-0000-000000000000",
        serviceprincipalkey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    ),
    azurerm_spn_tenantid="00000000-0000-0000-0000-000000000000",
    azurerm_subscription_id="00000000-0000-0000-0000-000000000000",
    azurerm_subscription_name="Example Subscription Name")
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 exampleServiceEndpointAzureRM = new azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", {
    projectId: exampleProject.id,
    serviceEndpointName: "Example AzureRM",
    description: "Managed by Terraform",
    credentials: {
        serviceprincipalid: "00000000-0000-0000-0000-000000000000",
        serviceprincipalkey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    },
    azurermSpnTenantid: "00000000-0000-0000-0000-000000000000",
    azurermSubscriptionId: "00000000-0000-0000-0000-000000000000",
    azurermSubscriptionName: "Example Subscription Name",
});
resources:
  exampleProject:
    type: azuredevops:Project
    properties:
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
      description: Managed by Terraform
  exampleServiceEndpointAzureRM:
    type: azuredevops:ServiceEndpointAzureRM
    properties:
      projectId: ${exampleProject.id}
      serviceEndpointName: Example AzureRM
      description: Managed by Terraform
      credentials:
        serviceprincipalid: 00000000-0000-0000-0000-000000000000
        serviceprincipalkey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      azurermSpnTenantid: 00000000-0000-0000-0000-000000000000
      azurermSubscriptionId: 00000000-0000-0000-0000-000000000000
      azurermSubscriptionName: Example Subscription Name

Manual AzureRM Service Endpoint (ManagementGroup Scoped)

using System.Collections.Generic;
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 exampleServiceEndpointAzureRM = new AzureDevOps.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", new()
    {
        ProjectId = exampleProject.Id,
        ServiceEndpointName = "Example AzureRM",
        Description = "Managed by Terraform",
        Credentials = new AzureDevOps.Inputs.ServiceEndpointAzureRMCredentialsArgs
        {
            Serviceprincipalid = "00000000-0000-0000-0000-000000000000",
            Serviceprincipalkey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        },
        AzurermSpnTenantid = "00000000-0000-0000-0000-000000000000",
        AzurermManagementGroupId = "managementGroup",
        AzurermManagementGroupName = "managementGroup",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/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.NewServiceEndpointAzureRM(ctx, "exampleServiceEndpointAzureRM", &azuredevops.ServiceEndpointAzureRMArgs{
			ProjectId:           exampleProject.ID(),
			ServiceEndpointName: pulumi.String("Example AzureRM"),
			Description:         pulumi.String("Managed by Terraform"),
			Credentials: &azuredevops.ServiceEndpointAzureRMCredentialsArgs{
				Serviceprincipalid:  pulumi.String("00000000-0000-0000-0000-000000000000"),
				Serviceprincipalkey: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
			},
			AzurermSpnTenantid:         pulumi.String("00000000-0000-0000-0000-000000000000"),
			AzurermManagementGroupId:   pulumi.String("managementGroup"),
			AzurermManagementGroupName: pulumi.String("managementGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.ServiceEndpointAzureRM;
import com.pulumi.azuredevops.ServiceEndpointAzureRMArgs;
import com.pulumi.azuredevops.inputs.ServiceEndpointAzureRMCredentialsArgs;
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 exampleServiceEndpointAzureRM = new ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", ServiceEndpointAzureRMArgs.builder()        
            .projectId(exampleProject.id())
            .serviceEndpointName("Example AzureRM")
            .description("Managed by Terraform")
            .credentials(ServiceEndpointAzureRMCredentialsArgs.builder()
                .serviceprincipalid("00000000-0000-0000-0000-000000000000")
                .serviceprincipalkey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .build())
            .azurermSpnTenantid("00000000-0000-0000-0000-000000000000")
            .azurermManagementGroupId("managementGroup")
            .azurermManagementGroupName("managementGroup")
            .build());

    }
}
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_service_endpoint_azure_rm = azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM",
    project_id=example_project.id,
    service_endpoint_name="Example AzureRM",
    description="Managed by Terraform",
    credentials=azuredevops.ServiceEndpointAzureRMCredentialsArgs(
        serviceprincipalid="00000000-0000-0000-0000-000000000000",
        serviceprincipalkey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    ),
    azurerm_spn_tenantid="00000000-0000-0000-0000-000000000000",
    azurerm_management_group_id="managementGroup",
    azurerm_management_group_name="managementGroup")
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 exampleServiceEndpointAzureRM = new azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", {
    projectId: exampleProject.id,
    serviceEndpointName: "Example AzureRM",
    description: "Managed by Terraform",
    credentials: {
        serviceprincipalid: "00000000-0000-0000-0000-000000000000",
        serviceprincipalkey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    },
    azurermSpnTenantid: "00000000-0000-0000-0000-000000000000",
    azurermManagementGroupId: "managementGroup",
    azurermManagementGroupName: "managementGroup",
});
resources:
  exampleProject:
    type: azuredevops:Project
    properties:
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
      description: Managed by Terraform
  exampleServiceEndpointAzureRM:
    type: azuredevops:ServiceEndpointAzureRM
    properties:
      projectId: ${exampleProject.id}
      serviceEndpointName: Example AzureRM
      description: Managed by Terraform
      credentials:
        serviceprincipalid: 00000000-0000-0000-0000-000000000000
        serviceprincipalkey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      azurermSpnTenantid: 00000000-0000-0000-0000-000000000000
      azurermManagementGroupId: managementGroup
      azurermManagementGroupName: managementGroup

Automatic AzureRM Service Endpoint

using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var exampleProject = new AzureDevOps.Project("exampleProject", new()
    {
        Visibility = "private",
        VersionControl = "Git",
        WorkItemTemplate = "Agile",
    });

    var exampleServiceEndpointAzureRM = new AzureDevOps.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", new()
    {
        ProjectId = exampleProject.Id,
        ServiceEndpointName = "Example AzureRM",
        AzurermSpnTenantid = "00000000-0000-0000-0000-000000000000",
        AzurermSubscriptionId = "00000000-0000-0000-0000-000000000000",
        AzurermSubscriptionName = "Example Subscription Name",
    });

});
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v2/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"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewServiceEndpointAzureRM(ctx, "exampleServiceEndpointAzureRM", &azuredevops.ServiceEndpointAzureRMArgs{
			ProjectId:               exampleProject.ID(),
			ServiceEndpointName:     pulumi.String("Example AzureRM"),
			AzurermSpnTenantid:      pulumi.String("00000000-0000-0000-0000-000000000000"),
			AzurermSubscriptionId:   pulumi.String("00000000-0000-0000-0000-000000000000"),
			AzurermSubscriptionName: pulumi.String("Example Subscription Name"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.ServiceEndpointAzureRM;
import com.pulumi.azuredevops.ServiceEndpointAzureRMArgs;
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")
            .build());

        var exampleServiceEndpointAzureRM = new ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", ServiceEndpointAzureRMArgs.builder()        
            .projectId(exampleProject.id())
            .serviceEndpointName("Example AzureRM")
            .azurermSpnTenantid("00000000-0000-0000-0000-000000000000")
            .azurermSubscriptionId("00000000-0000-0000-0000-000000000000")
            .azurermSubscriptionName("Example Subscription Name")
            .build());

    }
}
import pulumi
import pulumi_azuredevops as azuredevops

example_project = azuredevops.Project("exampleProject",
    visibility="private",
    version_control="Git",
    work_item_template="Agile")
example_service_endpoint_azure_rm = azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM",
    project_id=example_project.id,
    service_endpoint_name="Example AzureRM",
    azurerm_spn_tenantid="00000000-0000-0000-0000-000000000000",
    azurerm_subscription_id="00000000-0000-0000-0000-000000000000",
    azurerm_subscription_name="Example Subscription Name")
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const exampleProject = new azuredevops.Project("exampleProject", {
    visibility: "private",
    versionControl: "Git",
    workItemTemplate: "Agile",
});
const exampleServiceEndpointAzureRM = new azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", {
    projectId: exampleProject.id,
    serviceEndpointName: "Example AzureRM",
    azurermSpnTenantid: "00000000-0000-0000-0000-000000000000",
    azurermSubscriptionId: "00000000-0000-0000-0000-000000000000",
    azurermSubscriptionName: "Example Subscription Name",
});
resources:
  exampleProject:
    type: azuredevops:Project
    properties:
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
  exampleServiceEndpointAzureRM:
    type: azuredevops:ServiceEndpointAzureRM
    properties:
      projectId: ${exampleProject.id}
      serviceEndpointName: Example AzureRM
      azurermSpnTenantid: 00000000-0000-0000-0000-000000000000
      azurermSubscriptionId: 00000000-0000-0000-0000-000000000000
      azurermSubscriptionName: Example Subscription Name

Create ServiceEndpointAzureRM Resource

new ServiceEndpointAzureRM(name: string, args: ServiceEndpointAzureRMArgs, opts?: CustomResourceOptions);
@overload
def ServiceEndpointAzureRM(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           authorization: Optional[Mapping[str, str]] = None,
                           azurerm_management_group_id: Optional[str] = None,
                           azurerm_management_group_name: Optional[str] = None,
                           azurerm_spn_tenantid: Optional[str] = None,
                           azurerm_subscription_id: Optional[str] = None,
                           azurerm_subscription_name: Optional[str] = None,
                           credentials: Optional[ServiceEndpointAzureRMCredentialsArgs] = None,
                           description: Optional[str] = None,
                           environment: Optional[str] = None,
                           project_id: Optional[str] = None,
                           resource_group: Optional[str] = None,
                           service_endpoint_name: Optional[str] = None)
@overload
def ServiceEndpointAzureRM(resource_name: str,
                           args: ServiceEndpointAzureRMArgs,
                           opts: Optional[ResourceOptions] = None)
func NewServiceEndpointAzureRM(ctx *Context, name string, args ServiceEndpointAzureRMArgs, opts ...ResourceOption) (*ServiceEndpointAzureRM, error)
public ServiceEndpointAzureRM(string name, ServiceEndpointAzureRMArgs args, CustomResourceOptions? opts = null)
public ServiceEndpointAzureRM(String name, ServiceEndpointAzureRMArgs args)
public ServiceEndpointAzureRM(String name, ServiceEndpointAzureRMArgs args, CustomResourceOptions options)
type: azuredevops:ServiceEndpointAzureRM
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ServiceEndpointAzureRMArgs
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 ServiceEndpointAzureRMArgs
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 ServiceEndpointAzureRMArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceEndpointAzureRMArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ServiceEndpointAzureRMArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

AzurermSpnTenantid string

The Tenant ID if the service principal.

ProjectId string

The ID of the project.

ServiceEndpointName string

The Service Endpoint Name.

Authorization Dictionary<string, string>
AzurermManagementGroupId string

The Management group ID of the Azure targets.

AzurermManagementGroupName string

The Management group Name of the targets.

AzurermSubscriptionId string

The Subscription ID of the Azure targets.

AzurermSubscriptionName string

The Subscription Name of the targets.

Credentials Pulumi.AzureDevOps.Inputs.ServiceEndpointAzureRMCredentialsArgs

A credentials block.

Description string

Service connection description.

Environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

ResourceGroup string

The resource group used for scope of automatic service endpoint.

AzurermSpnTenantid string

The Tenant ID if the service principal.

ProjectId string

The ID of the project.

ServiceEndpointName string

The Service Endpoint Name.

Authorization map[string]string
AzurermManagementGroupId string

The Management group ID of the Azure targets.

AzurermManagementGroupName string

The Management group Name of the targets.

AzurermSubscriptionId string

The Subscription ID of the Azure targets.

AzurermSubscriptionName string

The Subscription Name of the targets.

Credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

Description string

Service connection description.

Environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

ResourceGroup string

The resource group used for scope of automatic service endpoint.

azurermSpnTenantid String

The Tenant ID if the service principal.

projectId String

The ID of the project.

serviceEndpointName String

The Service Endpoint Name.

authorization Map<String,String>
azurermManagementGroupId String

The Management group ID of the Azure targets.

azurermManagementGroupName String

The Management group Name of the targets.

azurermSubscriptionId String

The Subscription ID of the Azure targets.

azurermSubscriptionName String

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description String

Service connection description.

environment String

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

resourceGroup String

The resource group used for scope of automatic service endpoint.

azurermSpnTenantid string

The Tenant ID if the service principal.

projectId string

The ID of the project.

serviceEndpointName string

The Service Endpoint Name.

authorization {[key: string]: string}
azurermManagementGroupId string

The Management group ID of the Azure targets.

azurermManagementGroupName string

The Management group Name of the targets.

azurermSubscriptionId string

The Subscription ID of the Azure targets.

azurermSubscriptionName string

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description string

Service connection description.

environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

resourceGroup string

The resource group used for scope of automatic service endpoint.

azurerm_spn_tenantid str

The Tenant ID if the service principal.

project_id str

The ID of the project.

service_endpoint_name str

The Service Endpoint Name.

authorization Mapping[str, str]
azurerm_management_group_id str

The Management group ID of the Azure targets.

azurerm_management_group_name str

The Management group Name of the targets.

azurerm_subscription_id str

The Subscription ID of the Azure targets.

azurerm_subscription_name str

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description str

Service connection description.

environment str

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

resource_group str

The resource group used for scope of automatic service endpoint.

azurermSpnTenantid String

The Tenant ID if the service principal.

projectId String

The ID of the project.

serviceEndpointName String

The Service Endpoint Name.

authorization Map<String>
azurermManagementGroupId String

The Management group ID of the Azure targets.

azurermManagementGroupName String

The Management group Name of the targets.

azurermSubscriptionId String

The Subscription ID of the Azure targets.

azurermSubscriptionName String

The Subscription Name of the targets.

credentials Property Map

A credentials block.

description String

Service connection description.

environment String

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

resourceGroup String

The resource group used for scope of automatic service endpoint.

Outputs

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

Get an existing ServiceEndpointAzureRM 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?: ServiceEndpointAzureRMState, opts?: CustomResourceOptions): ServiceEndpointAzureRM
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        authorization: Optional[Mapping[str, str]] = None,
        azurerm_management_group_id: Optional[str] = None,
        azurerm_management_group_name: Optional[str] = None,
        azurerm_spn_tenantid: Optional[str] = None,
        azurerm_subscription_id: Optional[str] = None,
        azurerm_subscription_name: Optional[str] = None,
        credentials: Optional[ServiceEndpointAzureRMCredentialsArgs] = None,
        description: Optional[str] = None,
        environment: Optional[str] = None,
        project_id: Optional[str] = None,
        resource_group: Optional[str] = None,
        service_endpoint_name: Optional[str] = None) -> ServiceEndpointAzureRM
func GetServiceEndpointAzureRM(ctx *Context, name string, id IDInput, state *ServiceEndpointAzureRMState, opts ...ResourceOption) (*ServiceEndpointAzureRM, error)
public static ServiceEndpointAzureRM Get(string name, Input<string> id, ServiceEndpointAzureRMState? state, CustomResourceOptions? opts = null)
public static ServiceEndpointAzureRM get(String name, Output<String> id, ServiceEndpointAzureRMState 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:
Authorization Dictionary<string, string>
AzurermManagementGroupId string

The Management group ID of the Azure targets.

AzurermManagementGroupName string

The Management group Name of the targets.

AzurermSpnTenantid string

The Tenant ID if the service principal.

AzurermSubscriptionId string

The Subscription ID of the Azure targets.

AzurermSubscriptionName string

The Subscription Name of the targets.

Credentials Pulumi.AzureDevOps.Inputs.ServiceEndpointAzureRMCredentialsArgs

A credentials block.

Description string

Service connection description.

Environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

ProjectId string

The ID of the project.

ResourceGroup string

The resource group used for scope of automatic service endpoint.

ServiceEndpointName string

The Service Endpoint Name.

Authorization map[string]string
AzurermManagementGroupId string

The Management group ID of the Azure targets.

AzurermManagementGroupName string

The Management group Name of the targets.

AzurermSpnTenantid string

The Tenant ID if the service principal.

AzurermSubscriptionId string

The Subscription ID of the Azure targets.

AzurermSubscriptionName string

The Subscription Name of the targets.

Credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

Description string

Service connection description.

Environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

ProjectId string

The ID of the project.

ResourceGroup string

The resource group used for scope of automatic service endpoint.

ServiceEndpointName string

The Service Endpoint Name.

authorization Map<String,String>
azurermManagementGroupId String

The Management group ID of the Azure targets.

azurermManagementGroupName String

The Management group Name of the targets.

azurermSpnTenantid String

The Tenant ID if the service principal.

azurermSubscriptionId String

The Subscription ID of the Azure targets.

azurermSubscriptionName String

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description String

Service connection description.

environment String

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

projectId String

The ID of the project.

resourceGroup String

The resource group used for scope of automatic service endpoint.

serviceEndpointName String

The Service Endpoint Name.

authorization {[key: string]: string}
azurermManagementGroupId string

The Management group ID of the Azure targets.

azurermManagementGroupName string

The Management group Name of the targets.

azurermSpnTenantid string

The Tenant ID if the service principal.

azurermSubscriptionId string

The Subscription ID of the Azure targets.

azurermSubscriptionName string

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description string

Service connection description.

environment string

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

projectId string

The ID of the project.

resourceGroup string

The resource group used for scope of automatic service endpoint.

serviceEndpointName string

The Service Endpoint Name.

authorization Mapping[str, str]
azurerm_management_group_id str

The Management group ID of the Azure targets.

azurerm_management_group_name str

The Management group Name of the targets.

azurerm_spn_tenantid str

The Tenant ID if the service principal.

azurerm_subscription_id str

The Subscription ID of the Azure targets.

azurerm_subscription_name str

The Subscription Name of the targets.

credentials ServiceEndpointAzureRMCredentialsArgs

A credentials block.

description str

Service connection description.

environment str

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

project_id str

The ID of the project.

resource_group str

The resource group used for scope of automatic service endpoint.

service_endpoint_name str

The Service Endpoint Name.

authorization Map<String>
azurermManagementGroupId String

The Management group ID of the Azure targets.

azurermManagementGroupName String

The Management group Name of the targets.

azurermSpnTenantid String

The Tenant ID if the service principal.

azurermSubscriptionId String

The Subscription ID of the Azure targets.

azurermSubscriptionName String

The Subscription Name of the targets.

credentials Property Map

A credentials block.

description String

Service connection description.

environment String

The Cloud Environment to use. Defaults to AzureCloud. Possible values are AzureCloud, AzureChinaCloud. Changing this forces a new resource to be created.

projectId String

The ID of the project.

resourceGroup String

The resource group used for scope of automatic service endpoint.

serviceEndpointName String

The Service Endpoint Name.

Supporting Types

ServiceEndpointAzureRMCredentials

Serviceprincipalid string

The service principal application Id

Serviceprincipalkey string

The service principal secret.

ServiceprincipalkeyHash string
Serviceprincipalid string

The service principal application Id

Serviceprincipalkey string

The service principal secret.

ServiceprincipalkeyHash string
serviceprincipalid String

The service principal application Id

serviceprincipalkey String

The service principal secret.

serviceprincipalkeyHash String
serviceprincipalid string

The service principal application Id

serviceprincipalkey string

The service principal secret.

serviceprincipalkeyHash string
serviceprincipalid str

The service principal application Id

serviceprincipalkey str

The service principal secret.

serviceprincipalkey_hash str
serviceprincipalid String

The service principal application Id

serviceprincipalkey String

The service principal secret.

serviceprincipalkeyHash String

Import

Azure DevOps Service Endpoint Azure Resource Manage can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

 $ pulumi import azuredevops:index/serviceEndpointAzureRM:ServiceEndpointAzureRM example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes

This Pulumi package is based on the azuredevops Terraform Provider.