We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.containerservice.getRegistry
Use this data source to access information about an existing Container Registry.
Example Usage
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)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ContainerService.GetRegistry.Invoke(new()
{
Name = "testacr",
ResourceGroupName = "test",
});
return new Dictionary<string, object?>
{
["loginServer"] = example.Apply(getRegistryResult => getRegistryResult.LoginServer),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerservice.ContainerserviceFunctions;
import com.pulumi.azure.containerservice.inputs.GetRegistryArgs;
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 = ContainerserviceFunctions.getRegistry(GetRegistryArgs.builder()
.name("testacr")
.resourceGroupName("test")
.build());
ctx.export("loginServer", example.loginServer());
}
}
variables:
example:
fn::invoke:
function: azure:containerservice:getRegistry
arguments:
name: testacr
resourceGroupName: test
outputs:
loginServer: ${example.loginServer}
API Providers
This data source uses the following Azure API Providers:
Microsoft.ContainerRegistry- 2023-11-01-preview
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 dictionaryThe following arguments are supported:
- Name string
- The name of the Container Registry.
- Resource
Group stringName - The Name of the Resource Group where this Container Registry exists.
- Name string
- The name of the Container Registry.
- Resource
Group stringName - The Name of the Resource Group where this Container Registry exists.
- name String
- The name of the Container Registry.
- resource
Group StringName - The Name of the Resource Group where this Container Registry exists.
- name string
- The name of the Container Registry.
- resource
Group stringName - The Name of the Resource Group where this Container Registry exists.
- name str
- The name of the Container Registry.
- resource_
group_ strname - The Name of the Resource Group where this Container Registry exists.
- name String
- The name of the Container Registry.
- resource
Group StringName - The Name of the Resource Group where this Container Registry exists.
getRegistry Result
The following output properties are available:
- Admin
Enabled bool - Is the Administrator account enabled for this Container Registry.
- Admin
Password string - The Password associated with the Container Registry Admin account - if the admin account is enabled.
- Admin
Username string - The Username associated with the Container Registry Admin account - if the admin account is enabled.
- Data
Endpoint boolEnabled - Whether dedicated data endpoints for this Container Registry are enabled?
- Data
Endpoint List<string>Host Names - A set of data endpoint hostnames associated with the container registry if data endpoints are enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region in which this Container Registry exists.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Resource
Group stringName - Sku string
- The SKU of this Container Registry, such as
Basic. - Dictionary<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 string - The Password associated with the Container Registry Admin account - if the admin account is enabled.
- Admin
Username string - The Username associated with the Container Registry Admin account - if the admin account is enabled.
- Data
Endpoint boolEnabled - Whether dedicated data endpoints for this Container Registry are enabled?
- Data
Endpoint []stringHost Names - A set of data endpoint hostnames associated with the container registry if data endpoints are enabled.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region in which this Container Registry exists.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Resource
Group stringName - Sku string
- The SKU of this Container Registry, such as
Basic. - map[string]string
- A map of tags assigned to the Container Registry.
- admin
Enabled Boolean - Is the Administrator account enabled for this Container Registry.
- admin
Password String - The Password associated with the Container Registry Admin account - if the admin account is enabled.
- admin
Username String - The Username associated with the Container Registry Admin account - if the admin account is enabled.
- data
Endpoint BooleanEnabled - Whether dedicated data endpoints for this Container Registry are enabled?
- data
Endpoint List<String>Host Names - A set of data endpoint hostnames associated with the container registry if data endpoints are enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region in which this Container Registry exists.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- resource
Group StringName - sku String
- The SKU of this Container Registry, such as
Basic. - Map<String,String>
- A map of tags assigned to the Container Registry.
- admin
Enabled boolean - Is the Administrator account enabled for this Container Registry.
- admin
Password string - The Password associated with the Container Registry Admin account - if the admin account is enabled.
- admin
Username string - The Username associated with the Container Registry Admin account - if the admin account is enabled.
- data
Endpoint booleanEnabled - Whether dedicated data endpoints for this Container Registry are enabled?
- data
Endpoint string[]Host Names - A set of data endpoint hostnames associated with the container registry if data endpoints are enabled.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region in which this Container Registry exists.
- login
Server string - The URL that can be used to log into the container registry.
- name string
- resource
Group stringName - sku string
- The SKU of this Container Registry, such as
Basic. - {[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.
- data_
endpoint_ boolenabled - Whether dedicated data endpoints for this Container Registry are enabled?
- data_
endpoint_ Sequence[str]host_ names - A set of data endpoint hostnames associated with the container registry if data endpoints are 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_ strname - sku str
- The SKU of this Container Registry, such as
Basic. - Mapping[str, str]
- A map of tags assigned to the Container Registry.
- admin
Enabled Boolean - Is the Administrator account enabled for this Container Registry.
- admin
Password String - The Password associated with the Container Registry Admin account - if the admin account is enabled.
- admin
Username String - The Username associated with the Container Registry Admin account - if the admin account is enabled.
- data
Endpoint BooleanEnabled - Whether dedicated data endpoints for this Container Registry are enabled?
- data
Endpoint List<String>Host Names - A set of data endpoint hostnames associated with the container registry if data endpoints are enabled.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region in which this Container Registry exists.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- resource
Group StringName - sku String
- The SKU of this Container Registry, such as
Basic. - 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
azurermTerraform Provider.
