1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. getServiceendpointAzurecr
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

azuredevops.getServiceendpointAzurecr

Explore with Pulumi AI

Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

Use this data source to access information about an existing Azure Container Registry Service Endpoint.

Example Usage

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

const example = azuredevops.getServiceendpointAzurecr({
    projectId: exampleAzuredevopsProject.id,
    serviceEndpointName: "Example Azure Container Registry",
});
export const serviceEndpointId = example.then(example => example.id);
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.get_serviceendpoint_azurecr(project_id=example_azuredevops_project["id"],
    service_endpoint_name="Example Azure Container Registry")
pulumi.export("serviceEndpointId", example.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.GetServiceendpointAzurecr(ctx, &azuredevops.GetServiceendpointAzurecrArgs{
			ProjectId:           exampleAzuredevopsProject.Id,
			ServiceEndpointName: pulumi.StringRef("Example Azure Container Registry"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("serviceEndpointId", example.Id)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = AzureDevOps.GetServiceendpointAzurecr.Invoke(new()
    {
        ProjectId = exampleAzuredevopsProject.Id,
        ServiceEndpointName = "Example Azure Container Registry",
    });

    return new Dictionary<string, object?>
    {
        ["serviceEndpointId"] = example.Apply(getServiceendpointAzurecrResult => getServiceendpointAzurecrResult.Id),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetServiceendpointAzurecrArgs;
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) {
        final var example = AzuredevopsFunctions.getServiceendpointAzurecr(GetServiceendpointAzurecrArgs.builder()
            .projectId(exampleAzuredevopsProject.id())
            .serviceEndpointName("Example Azure Container Registry")
            .build());

        ctx.export("serviceEndpointId", example.applyValue(getServiceendpointAzurecrResult -> getServiceendpointAzurecrResult.id()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azuredevops:getServiceendpointAzurecr
      arguments:
        projectId: ${exampleAzuredevopsProject.id}
        serviceEndpointName: Example Azure Container Registry
outputs:
  serviceEndpointId: ${example.id}
Copy

Using getServiceendpointAzurecr

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getServiceendpointAzurecr(args: GetServiceendpointAzurecrArgs, opts?: InvokeOptions): Promise<GetServiceendpointAzurecrResult>
function getServiceendpointAzurecrOutput(args: GetServiceendpointAzurecrOutputArgs, opts?: InvokeOptions): Output<GetServiceendpointAzurecrResult>
Copy
def get_serviceendpoint_azurecr(project_id: Optional[str] = None,
                                service_endpoint_id: Optional[str] = None,
                                service_endpoint_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetServiceendpointAzurecrResult
def get_serviceendpoint_azurecr_output(project_id: Optional[pulumi.Input[str]] = None,
                                service_endpoint_id: Optional[pulumi.Input[str]] = None,
                                service_endpoint_name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetServiceendpointAzurecrResult]
Copy
func GetServiceendpointAzurecr(ctx *Context, args *GetServiceendpointAzurecrArgs, opts ...InvokeOption) (*GetServiceendpointAzurecrResult, error)
func GetServiceendpointAzurecrOutput(ctx *Context, args *GetServiceendpointAzurecrOutputArgs, opts ...InvokeOption) GetServiceendpointAzurecrResultOutput
Copy

> Note: This function is named GetServiceendpointAzurecr in the Go SDK.

public static class GetServiceendpointAzurecr 
{
    public static Task<GetServiceendpointAzurecrResult> InvokeAsync(GetServiceendpointAzurecrArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceendpointAzurecrResult> Invoke(GetServiceendpointAzurecrInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServiceendpointAzurecrResult> getServiceendpointAzurecr(GetServiceendpointAzurecrArgs args, InvokeOptions options)
public static Output<GetServiceendpointAzurecrResult> getServiceendpointAzurecr(GetServiceendpointAzurecrArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azuredevops:index/getServiceendpointAzurecr:getServiceendpointAzurecr
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProjectId This property is required. string
The ID of the project.
ServiceEndpointId string
the ID of the Service Endpoint.
ServiceEndpointName string

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

ProjectId This property is required. string
The ID of the project.
ServiceEndpointId string
the ID of the Service Endpoint.
ServiceEndpointName string

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

projectId This property is required. String
The ID of the project.
serviceEndpointId String
the ID of the Service Endpoint.
serviceEndpointName String

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

projectId This property is required. string
The ID of the project.
serviceEndpointId string
the ID of the Service Endpoint.
serviceEndpointName string

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

project_id This property is required. str
The ID of the project.
service_endpoint_id str
the ID of the Service Endpoint.
service_endpoint_name str

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

projectId This property is required. String
The ID of the project.
serviceEndpointId String
the ID of the Service Endpoint.
serviceEndpointName String

the Name of the Service Endpoint.

NOTE: One of either service_endpoint_id or service_endpoint_name must be specified.

getServiceendpointAzurecr Result

The following output properties are available:

AppObjectId string
The Object ID of the Service Principal.
Authorization Dictionary<string, string>
The Authorization scheme.
AzSpnRoleAssignmentId string
The ID of Service Principal Role Assignment.
AzSpnRolePermissions string
The Service Principal Role Permissions.
AzurecrName string
The Azure Container Registry name.
AzurecrSpnTenantid string
The Tenant ID of the service principal.
AzurecrSubscriptionId string
The Subscription ID of the Azure targets.
AzurecrSubscriptionName string
The Subscription Name of the Azure targets.
Description string
The Service Endpoint description.
Id string
The provider-assigned unique ID for this managed resource.
ProjectId string
ResourceGroup string
The Resource Group to which the Container Registry belongs.
ServiceEndpointId string
ServiceEndpointName string
ServicePrincipalId string
The Application(Client) ID of the Service Principal.
SpnObjectId string
The ID of the Service Principal.
AppObjectId string
The Object ID of the Service Principal.
Authorization map[string]string
The Authorization scheme.
AzSpnRoleAssignmentId string
The ID of Service Principal Role Assignment.
AzSpnRolePermissions string
The Service Principal Role Permissions.
AzurecrName string
The Azure Container Registry name.
AzurecrSpnTenantid string
The Tenant ID of the service principal.
AzurecrSubscriptionId string
The Subscription ID of the Azure targets.
AzurecrSubscriptionName string
The Subscription Name of the Azure targets.
Description string
The Service Endpoint description.
Id string
The provider-assigned unique ID for this managed resource.
ProjectId string
ResourceGroup string
The Resource Group to which the Container Registry belongs.
ServiceEndpointId string
ServiceEndpointName string
ServicePrincipalId string
The Application(Client) ID of the Service Principal.
SpnObjectId string
The ID of the Service Principal.
appObjectId String
The Object ID of the Service Principal.
authorization Map<String,String>
The Authorization scheme.
azSpnRoleAssignmentId String
The ID of Service Principal Role Assignment.
azSpnRolePermissions String
The Service Principal Role Permissions.
azurecrName String
The Azure Container Registry name.
azurecrSpnTenantid String
The Tenant ID of the service principal.
azurecrSubscriptionId String
The Subscription ID of the Azure targets.
azurecrSubscriptionName String
The Subscription Name of the Azure targets.
description String
The Service Endpoint description.
id String
The provider-assigned unique ID for this managed resource.
projectId String
resourceGroup String
The Resource Group to which the Container Registry belongs.
serviceEndpointId String
serviceEndpointName String
servicePrincipalId String
The Application(Client) ID of the Service Principal.
spnObjectId String
The ID of the Service Principal.
appObjectId string
The Object ID of the Service Principal.
authorization {[key: string]: string}
The Authorization scheme.
azSpnRoleAssignmentId string
The ID of Service Principal Role Assignment.
azSpnRolePermissions string
The Service Principal Role Permissions.
azurecrName string
The Azure Container Registry name.
azurecrSpnTenantid string
The Tenant ID of the service principal.
azurecrSubscriptionId string
The Subscription ID of the Azure targets.
azurecrSubscriptionName string
The Subscription Name of the Azure targets.
description string
The Service Endpoint description.
id string
The provider-assigned unique ID for this managed resource.
projectId string
resourceGroup string
The Resource Group to which the Container Registry belongs.
serviceEndpointId string
serviceEndpointName string
servicePrincipalId string
The Application(Client) ID of the Service Principal.
spnObjectId string
The ID of the Service Principal.
app_object_id str
The Object ID of the Service Principal.
authorization Mapping[str, str]
The Authorization scheme.
az_spn_role_assignment_id str
The ID of Service Principal Role Assignment.
az_spn_role_permissions str
The Service Principal Role Permissions.
azurecr_name str
The Azure Container Registry name.
azurecr_spn_tenantid str
The Tenant ID of the service principal.
azurecr_subscription_id str
The Subscription ID of the Azure targets.
azurecr_subscription_name str
The Subscription Name of the Azure targets.
description str
The Service Endpoint description.
id str
The provider-assigned unique ID for this managed resource.
project_id str
resource_group str
The Resource Group to which the Container Registry belongs.
service_endpoint_id str
service_endpoint_name str
service_principal_id str
The Application(Client) ID of the Service Principal.
spn_object_id str
The ID of the Service Principal.
appObjectId String
The Object ID of the Service Principal.
authorization Map<String>
The Authorization scheme.
azSpnRoleAssignmentId String
The ID of Service Principal Role Assignment.
azSpnRolePermissions String
The Service Principal Role Permissions.
azurecrName String
The Azure Container Registry name.
azurecrSpnTenantid String
The Tenant ID of the service principal.
azurecrSubscriptionId String
The Subscription ID of the Azure targets.
azurecrSubscriptionName String
The Subscription Name of the Azure targets.
description String
The Service Endpoint description.
id String
The provider-assigned unique ID for this managed resource.
projectId String
resourceGroup String
The Resource Group to which the Container Registry belongs.
serviceEndpointId String
serviceEndpointName String
servicePrincipalId String
The Application(Client) ID of the Service Principal.
spnObjectId String
The ID of the Service Principal.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi