1. Packages
  2. Azure Classic
  3. API Docs
  4. containerservice
  5. getRegistry

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

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

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = Output.Create(Azure.ContainerService.GetRegistry.InvokeAsync(new Azure.ContainerService.GetRegistryArgs
            {
                Name = "testacr",
                ResourceGroupName = "test",
            }));
            this.LoginServer = example.Apply(example => example.LoginServer);
        }
    
        [Output("loginServer")]
        public Output<string> LoginServer { get; set; }
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/containerservice"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := containerservice.LookupRegistry(ctx, &containerservice.LookupRegistryArgs{
    			Name:              "testacr",
    			ResourceGroupName: "test",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("loginServer", example.LoginServer)
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.containerservice.getRegistry({
        name: "testacr",
        resourceGroupName: "test",
    });
    export const loginServer = example.then(example => example.loginServer);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.containerservice.get_registry(name="testacr",
        resource_group_name="test")
    pulumi.export("loginServer", example.login_server)
    

    Example coming soon!

    Using getRegistry

    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 getRegistry(args: GetRegistryArgs, opts?: InvokeOptions): Promise<GetRegistryResult>
    function getRegistryOutput(args: GetRegistryOutputArgs, opts?: InvokeOptions): Output<GetRegistryResult>
    def get_registry(name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRegistryResult
    def get_registry_output(name: Optional[pulumi.Input[str]] = None,
                     resource_group_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRegistryResult]
    func LookupRegistry(ctx *Context, args *LookupRegistryArgs, opts ...InvokeOption) (*LookupRegistryResult, error)
    func LookupRegistryOutput(ctx *Context, args *LookupRegistryOutputArgs, opts ...InvokeOption) LookupRegistryResultOutput

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

    public static class GetRegistry 
    {
        public static Task<GetRegistryResult> InvokeAsync(GetRegistryArgs args, InvokeOptions? opts = null)
        public static Output<GetRegistryResult> Invoke(GetRegistryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
    public static Output<GetRegistryResult> getRegistry(GetRegistryArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:containerservice/getRegistry:getRegistry
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Container Registry.
    ResourceGroupName string
    The Name of the Resource Group where this Container Registry exists.
    Name string
    The name of the Container Registry.
    ResourceGroupName string
    The Name of the Resource Group where this Container Registry exists.
    name String
    The name of the Container Registry.
    resourceGroupName String
    The Name of the Resource Group where this Container Registry exists.
    name string
    The name of the Container Registry.
    resourceGroupName string
    The Name of the Resource Group where this Container Registry exists.
    name str
    The name of the Container Registry.
    resource_group_name str
    The Name of the Resource Group where this Container Registry exists.
    name String
    The name of the Container Registry.
    resourceGroupName String
    The Name of the Resource Group where this Container Registry exists.

    getRegistry Result

    The following output properties are available:

    AdminEnabled bool
    Is the Administrator account enabled for this Container Registry.
    AdminPassword string
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    AdminUsername string
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region in which this Container Registry exists.
    LoginServer string
    The URL that can be used to log into the container registry.
    Name string
    ResourceGroupName string
    Sku string
    The SKU of this Container Registry, such as Basic.
    StorageAccountId string

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    Tags Dictionary<string, string>
    A map of tags assigned to the Container Registry.
    AdminEnabled bool
    Is the Administrator account enabled for this Container Registry.
    AdminPassword string
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    AdminUsername string
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region in which this Container Registry exists.
    LoginServer string
    The URL that can be used to log into the container registry.
    Name string
    ResourceGroupName string
    Sku string
    The SKU of this Container Registry, such as Basic.
    StorageAccountId string

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    Tags map[string]string
    A map of tags assigned to the Container Registry.
    adminEnabled Boolean
    Is the Administrator account enabled for this Container Registry.
    adminPassword String
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    adminUsername String
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region in which this Container Registry exists.
    loginServer String
    The URL that can be used to log into the container registry.
    name String
    resourceGroupName String
    sku String
    The SKU of this Container Registry, such as Basic.
    storageAccountId String

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    tags Map<String,String>
    A map of tags assigned to the Container Registry.
    adminEnabled boolean
    Is the Administrator account enabled for this Container Registry.
    adminPassword string
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    adminUsername string
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Azure Region in which this Container Registry exists.
    loginServer string
    The URL that can be used to log into the container registry.
    name string
    resourceGroupName string
    sku string
    The SKU of this Container Registry, such as Basic.
    storageAccountId string

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    tags {[key: string]: string}
    A map of tags assigned to the Container Registry.
    admin_enabled bool
    Is the Administrator account enabled for this Container Registry.
    admin_password str
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    admin_username str
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Azure Region in which this Container Registry exists.
    login_server str
    The URL that can be used to log into the container registry.
    name str
    resource_group_name str
    sku str
    The SKU of this Container Registry, such as Basic.
    storage_account_id str

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    tags Mapping[str, str]
    A map of tags assigned to the Container Registry.
    adminEnabled Boolean
    Is the Administrator account enabled for this Container Registry.
    adminPassword String
    The Password associated with the Container Registry Admin account - if the admin account is enabled.
    adminUsername String
    The Username associated with the Container Registry Admin account - if the admin account is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region in which this Container Registry exists.
    loginServer String
    The URL that can be used to log into the container registry.
    name String
    resourceGroupName String
    sku String
    The SKU of this Container Registry, such as Basic.
    storageAccountId String

    Deprecated: this attribute is no longer recognized by the API and is not functional anymore, thus this property will be removed in v3.0

    tags Map<String>
    A map of tags assigned to the Container Registry.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.