We recommend using Azure Native.
azure.containerservice.Registry
Explore with Pulumi AI
Manages an Azure Container Registry.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const acr = new azure.containerservice.Registry("acr", {
    name: "containerRegistry1",
    resourceGroupName: example.name,
    location: example.location,
    sku: "Premium",
    adminEnabled: false,
    georeplications: [
        {
            location: "East US",
            zoneRedundancyEnabled: true,
            tags: {},
        },
        {
            location: "North Europe",
            zoneRedundancyEnabled: true,
            tags: {},
        },
    ],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
acr = azure.containerservice.Registry("acr",
    name="containerRegistry1",
    resource_group_name=example.name,
    location=example.location,
    sku="Premium",
    admin_enabled=False,
    georeplications=[
        {
            "location": "East US",
            "zone_redundancy_enabled": True,
            "tags": {},
        },
        {
            "location": "North Europe",
            "zone_redundancy_enabled": True,
            "tags": {},
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
			Name:              pulumi.String("containerRegistry1"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Sku:               pulumi.String("Premium"),
			AdminEnabled:      pulumi.Bool(false),
			Georeplications: containerservice.RegistryGeoreplicationArray{
				&containerservice.RegistryGeoreplicationArgs{
					Location:              pulumi.String("East US"),
					ZoneRedundancyEnabled: pulumi.Bool(true),
					Tags:                  pulumi.StringMap{},
				},
				&containerservice.RegistryGeoreplicationArgs{
					Location:              pulumi.String("North Europe"),
					ZoneRedundancyEnabled: pulumi.Bool(true),
					Tags:                  pulumi.StringMap{},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var acr = new Azure.ContainerService.Registry("acr", new()
    {
        Name = "containerRegistry1",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Sku = "Premium",
        AdminEnabled = false,
        Georeplications = new[]
        {
            new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
            {
                Location = "East US",
                ZoneRedundancyEnabled = true,
                Tags = null,
            },
            new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
            {
                Location = "North Europe",
                ZoneRedundancyEnabled = true,
                Tags = null,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.inputs.RegistryGeoreplicationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var acr = new Registry("acr", RegistryArgs.builder()
            .name("containerRegistry1")
            .resourceGroupName(example.name())
            .location(example.location())
            .sku("Premium")
            .adminEnabled(false)
            .georeplications(            
                RegistryGeoreplicationArgs.builder()
                    .location("East US")
                    .zoneRedundancyEnabled(true)
                    .tags()
                    .build(),
                RegistryGeoreplicationArgs.builder()
                    .location("North Europe")
                    .zoneRedundancyEnabled(true)
                    .tags()
                    .build())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  acr:
    type: azure:containerservice:Registry
    properties:
      name: containerRegistry1
      resourceGroupName: ${example.name}
      location: ${example.location}
      sku: Premium
      adminEnabled: false
      georeplications:
        - location: East US
          zoneRedundancyEnabled: true
          tags: {}
        - location: North Europe
          zoneRedundancyEnabled: true
          tags: {}
Encryption)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("example", {
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    name: "registry-uai",
});
const example = azure.keyvault.getKey({
    name: "super-secret",
    keyVaultId: existing.id,
});
const acr = new azure.containerservice.Registry("acr", {
    name: "containerRegistry1",
    resourceGroupName: exampleResourceGroup.name,
    location: exampleResourceGroup.location,
    sku: "Premium",
    identity: {
        type: "UserAssigned",
        identityIds: [exampleUserAssignedIdentity.id],
    },
    encryption: {
        keyVaultKeyId: example.then(example => example.id),
        identityClientId: exampleUserAssignedIdentity.clientId,
    },
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_user_assigned_identity = azure.authorization.UserAssignedIdentity("example",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    name="registry-uai")
example = azure.keyvault.get_key(name="super-secret",
    key_vault_id=existing["id"])
acr = azure.containerservice.Registry("acr",
    name="containerRegistry1",
    resource_group_name=example_resource_group.name,
    location=example_resource_group.location,
    sku="Premium",
    identity={
        "type": "UserAssigned",
        "identity_ids": [example_user_assigned_identity.id],
    },
    encryption={
        "key_vault_key_id": example.id,
        "identity_client_id": example_user_assigned_identity.client_id,
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "example", &authorization.UserAssignedIdentityArgs{
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Name:              pulumi.String("registry-uai"),
		})
		if err != nil {
			return err
		}
		example, err := keyvault.LookupKey(ctx, &keyvault.LookupKeyArgs{
			Name:       "super-secret",
			KeyVaultId: existing.Id,
		}, nil)
		if err != nil {
			return err
		}
		_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
			Name:              pulumi.String("containerRegistry1"),
			ResourceGroupName: exampleResourceGroup.Name,
			Location:          exampleResourceGroup.Location,
			Sku:               pulumi.String("Premium"),
			Identity: &containerservice.RegistryIdentityArgs{
				Type: pulumi.String("UserAssigned"),
				IdentityIds: pulumi.StringArray{
					exampleUserAssignedIdentity.ID(),
				},
			},
			Encryption: &containerservice.RegistryEncryptionArgs{
				KeyVaultKeyId:    pulumi.String(example.Id),
				IdentityClientId: exampleUserAssignedIdentity.ClientId,
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("example", new()
    {
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Name = "registry-uai",
    });
    var example = Azure.KeyVault.GetKey.Invoke(new()
    {
        Name = "super-secret",
        KeyVaultId = existing.Id,
    });
    var acr = new Azure.ContainerService.Registry("acr", new()
    {
        Name = "containerRegistry1",
        ResourceGroupName = exampleResourceGroup.Name,
        Location = exampleResourceGroup.Location,
        Sku = "Premium",
        Identity = new Azure.ContainerService.Inputs.RegistryIdentityArgs
        {
            Type = "UserAssigned",
            IdentityIds = new[]
            {
                exampleUserAssignedIdentity.Id,
            },
        },
        Encryption = new Azure.ContainerService.Inputs.RegistryEncryptionArgs
        {
            KeyVaultKeyId = example.Apply(getKeyResult => getKeyResult.Id),
            IdentityClientId = exampleUserAssignedIdentity.ClientId,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.authorization.UserAssignedIdentity;
import com.pulumi.azure.authorization.UserAssignedIdentityArgs;
import com.pulumi.azure.keyvault.KeyvaultFunctions;
import com.pulumi.azure.keyvault.inputs.GetKeyArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.inputs.RegistryIdentityArgs;
import com.pulumi.azure.containerservice.inputs.RegistryEncryptionArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleUserAssignedIdentity = new UserAssignedIdentity("exampleUserAssignedIdentity", UserAssignedIdentityArgs.builder()
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .name("registry-uai")
            .build());
        final var example = KeyvaultFunctions.getKey(GetKeyArgs.builder()
            .name("super-secret")
            .keyVaultId(existing.id())
            .build());
        var acr = new Registry("acr", RegistryArgs.builder()
            .name("containerRegistry1")
            .resourceGroupName(exampleResourceGroup.name())
            .location(exampleResourceGroup.location())
            .sku("Premium")
            .identity(RegistryIdentityArgs.builder()
                .type("UserAssigned")
                .identityIds(exampleUserAssignedIdentity.id())
                .build())
            .encryption(RegistryEncryptionArgs.builder()
                .keyVaultKeyId(example.applyValue(getKeyResult -> getKeyResult.id()))
                .identityClientId(exampleUserAssignedIdentity.clientId())
                .build())
            .build());
    }
}
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    name: example
    properties:
      name: example-resources
      location: West Europe
  acr:
    type: azure:containerservice:Registry
    properties:
      name: containerRegistry1
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      sku: Premium
      identity:
        type: UserAssigned
        identityIds:
          - ${exampleUserAssignedIdentity.id}
      encryption:
        keyVaultKeyId: ${example.id}
        identityClientId: ${exampleUserAssignedIdentity.clientId}
  exampleUserAssignedIdentity:
    type: azure:authorization:UserAssignedIdentity
    name: example
    properties:
      resourceGroupName: ${exampleResourceGroup.name}
      location: ${exampleResourceGroup.location}
      name: registry-uai
variables:
  example:
    fn::invoke:
      function: azure:keyvault:getKey
      arguments:
        name: super-secret
        keyVaultId: ${existing.id}
Attaching A Container Registry To A Kubernetes Cluster)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleRegistry = new azure.containerservice.Registry("example", {
    name: "containerRegistry1",
    resourceGroupName: example.name,
    location: example.location,
    sku: "Premium",
});
const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("example", {
    name: "example-aks1",
    location: example.location,
    resourceGroupName: example.name,
    dnsPrefix: "exampleaks1",
    defaultNodePool: {
        name: "default",
        nodeCount: 1,
        vmSize: "Standard_D2_v2",
    },
    identity: {
        type: "SystemAssigned",
    },
    tags: {
        Environment: "Production",
    },
});
const exampleAssignment = new azure.authorization.Assignment("example", {
    principalId: exampleKubernetesCluster.kubeletIdentity.apply(kubeletIdentity => kubeletIdentity.objectId),
    roleDefinitionName: "AcrPull",
    scope: exampleRegistry.id,
    skipServicePrincipalAadCheck: true,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_registry = azure.containerservice.Registry("example",
    name="containerRegistry1",
    resource_group_name=example.name,
    location=example.location,
    sku="Premium")
example_kubernetes_cluster = azure.containerservice.KubernetesCluster("example",
    name="example-aks1",
    location=example.location,
    resource_group_name=example.name,
    dns_prefix="exampleaks1",
    default_node_pool={
        "name": "default",
        "node_count": 1,
        "vm_size": "Standard_D2_v2",
    },
    identity={
        "type": "SystemAssigned",
    },
    tags={
        "Environment": "Production",
    })
example_assignment = azure.authorization.Assignment("example",
    principal_id=example_kubernetes_cluster.kubelet_identity.object_id,
    role_definition_name="AcrPull",
    scope=example_registry.id,
    skip_service_principal_aad_check=True)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/authorization"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerservice"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleRegistry, err := containerservice.NewRegistry(ctx, "example", &containerservice.RegistryArgs{
			Name:              pulumi.String("containerRegistry1"),
			ResourceGroupName: example.Name,
			Location:          example.Location,
			Sku:               pulumi.String("Premium"),
		})
		if err != nil {
			return err
		}
		exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "example", &containerservice.KubernetesClusterArgs{
			Name:              pulumi.String("example-aks1"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			DnsPrefix:         pulumi.String("exampleaks1"),
			DefaultNodePool: &containerservice.KubernetesClusterDefaultNodePoolArgs{
				Name:      pulumi.String("default"),
				NodeCount: pulumi.Int(1),
				VmSize:    pulumi.String("Standard_D2_v2"),
			},
			Identity: &containerservice.KubernetesClusterIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("Production"),
			},
		})
		if err != nil {
			return err
		}
		_, err = authorization.NewAssignment(ctx, "example", &authorization.AssignmentArgs{
			PrincipalId: pulumi.String(exampleKubernetesCluster.KubeletIdentity.ApplyT(func(kubeletIdentity containerservice.KubernetesClusterKubeletIdentity) (*string, error) {
				return &kubeletIdentity.ObjectId, nil
			}).(pulumi.StringPtrOutput)),
			RoleDefinitionName:           pulumi.String("AcrPull"),
			Scope:                        exampleRegistry.ID(),
			SkipServicePrincipalAadCheck: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });
    var exampleRegistry = new Azure.ContainerService.Registry("example", new()
    {
        Name = "containerRegistry1",
        ResourceGroupName = example.Name,
        Location = example.Location,
        Sku = "Premium",
    });
    var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster("example", new()
    {
        Name = "example-aks1",
        Location = example.Location,
        ResourceGroupName = example.Name,
        DnsPrefix = "exampleaks1",
        DefaultNodePool = new Azure.ContainerService.Inputs.KubernetesClusterDefaultNodePoolArgs
        {
            Name = "default",
            NodeCount = 1,
            VmSize = "Standard_D2_v2",
        },
        Identity = new Azure.ContainerService.Inputs.KubernetesClusterIdentityArgs
        {
            Type = "SystemAssigned",
        },
        Tags = 
        {
            { "Environment", "Production" },
        },
    });
    var exampleAssignment = new Azure.Authorization.Assignment("example", new()
    {
        PrincipalId = exampleKubernetesCluster.KubeletIdentity.Apply(kubeletIdentity => kubeletIdentity.ObjectId),
        RoleDefinitionName = "AcrPull",
        Scope = exampleRegistry.Id,
        SkipServicePrincipalAadCheck = true,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.containerservice.Registry;
import com.pulumi.azure.containerservice.RegistryArgs;
import com.pulumi.azure.containerservice.KubernetesCluster;
import com.pulumi.azure.containerservice.KubernetesClusterArgs;
import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolArgs;
import com.pulumi.azure.containerservice.inputs.KubernetesClusterIdentityArgs;
import com.pulumi.azure.authorization.Assignment;
import com.pulumi.azure.authorization.AssignmentArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());
        var exampleRegistry = new Registry("exampleRegistry", RegistryArgs.builder()
            .name("containerRegistry1")
            .resourceGroupName(example.name())
            .location(example.location())
            .sku("Premium")
            .build());
        var exampleKubernetesCluster = new KubernetesCluster("exampleKubernetesCluster", KubernetesClusterArgs.builder()
            .name("example-aks1")
            .location(example.location())
            .resourceGroupName(example.name())
            .dnsPrefix("exampleaks1")
            .defaultNodePool(KubernetesClusterDefaultNodePoolArgs.builder()
                .name("default")
                .nodeCount(1)
                .vmSize("Standard_D2_v2")
                .build())
            .identity(KubernetesClusterIdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .tags(Map.of("Environment", "Production"))
            .build());
        var exampleAssignment = new Assignment("exampleAssignment", AssignmentArgs.builder()
            .principalId(exampleKubernetesCluster.kubeletIdentity().applyValue(kubeletIdentity -> kubeletIdentity.objectId()))
            .roleDefinitionName("AcrPull")
            .scope(exampleRegistry.id())
            .skipServicePrincipalAadCheck(true)
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleRegistry:
    type: azure:containerservice:Registry
    name: example
    properties:
      name: containerRegistry1
      resourceGroupName: ${example.name}
      location: ${example.location}
      sku: Premium
  exampleKubernetesCluster:
    type: azure:containerservice:KubernetesCluster
    name: example
    properties:
      name: example-aks1
      location: ${example.location}
      resourceGroupName: ${example.name}
      dnsPrefix: exampleaks1
      defaultNodePool:
        name: default
        nodeCount: 1
        vmSize: Standard_D2_v2
      identity:
        type: SystemAssigned
      tags:
        Environment: Production
  exampleAssignment:
    type: azure:authorization:Assignment
    name: example
    properties:
      principalId: ${exampleKubernetesCluster.kubeletIdentity.objectId}
      roleDefinitionName: AcrPull
      scope: ${exampleRegistry.id}
      skipServicePrincipalAadCheck: true
Create Registry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Registry(name: string, args: RegistryArgs, opts?: CustomResourceOptions);@overload
def Registry(resource_name: str,
             args: RegistryArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Registry(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             resource_group_name: Optional[str] = None,
             sku: Optional[str] = None,
             name: Optional[str] = None,
             public_network_access_enabled: Optional[bool] = None,
             export_policy_enabled: Optional[bool] = None,
             georeplications: Optional[Sequence[RegistryGeoreplicationArgs]] = None,
             identity: Optional[RegistryIdentityArgs] = None,
             location: Optional[str] = None,
             admin_enabled: Optional[bool] = None,
             network_rule_bypass_option: Optional[str] = None,
             network_rule_set: Optional[RegistryNetworkRuleSetArgs] = None,
             encryption: Optional[RegistryEncryptionArgs] = None,
             quarantine_policy_enabled: Optional[bool] = None,
             data_endpoint_enabled: Optional[bool] = None,
             retention_policy_in_days: Optional[int] = None,
             anonymous_pull_enabled: Optional[bool] = None,
             tags: Optional[Mapping[str, str]] = None,
             trust_policy_enabled: Optional[bool] = None,
             zone_redundancy_enabled: Optional[bool] = None)func NewRegistry(ctx *Context, name string, args RegistryArgs, opts ...ResourceOption) (*Registry, error)public Registry(string name, RegistryArgs args, CustomResourceOptions? opts = null)
public Registry(String name, RegistryArgs args)
public Registry(String name, RegistryArgs args, CustomResourceOptions options)
type: azure:containerservice:Registry
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 RegistryArgs
- 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 RegistryArgs
- 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 RegistryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RegistryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var registryResource = new Azure.ContainerService.Registry("registryResource", new()
{
    ResourceGroupName = "string",
    Sku = "string",
    Name = "string",
    PublicNetworkAccessEnabled = false,
    ExportPolicyEnabled = false,
    Georeplications = new[]
    {
        new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
        {
            Location = "string",
            RegionalEndpointEnabled = false,
            Tags = 
            {
                { "string", "string" },
            },
            ZoneRedundancyEnabled = false,
        },
    },
    Identity = new Azure.ContainerService.Inputs.RegistryIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    Location = "string",
    AdminEnabled = false,
    NetworkRuleBypassOption = "string",
    NetworkRuleSet = new Azure.ContainerService.Inputs.RegistryNetworkRuleSetArgs
    {
        DefaultAction = "string",
        IpRules = new[]
        {
            new Azure.ContainerService.Inputs.RegistryNetworkRuleSetIpRuleArgs
            {
                Action = "string",
                IpRange = "string",
            },
        },
    },
    Encryption = new Azure.ContainerService.Inputs.RegistryEncryptionArgs
    {
        IdentityClientId = "string",
        KeyVaultKeyId = "string",
    },
    QuarantinePolicyEnabled = false,
    DataEndpointEnabled = false,
    RetentionPolicyInDays = 0,
    AnonymousPullEnabled = false,
    Tags = 
    {
        { "string", "string" },
    },
    TrustPolicyEnabled = false,
    ZoneRedundancyEnabled = false,
});
example, err := containerservice.NewRegistry(ctx, "registryResource", &containerservice.RegistryArgs{
	ResourceGroupName:          pulumi.String("string"),
	Sku:                        pulumi.String("string"),
	Name:                       pulumi.String("string"),
	PublicNetworkAccessEnabled: pulumi.Bool(false),
	ExportPolicyEnabled:        pulumi.Bool(false),
	Georeplications: containerservice.RegistryGeoreplicationArray{
		&containerservice.RegistryGeoreplicationArgs{
			Location:                pulumi.String("string"),
			RegionalEndpointEnabled: pulumi.Bool(false),
			Tags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			ZoneRedundancyEnabled: pulumi.Bool(false),
		},
	},
	Identity: &containerservice.RegistryIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	Location:                pulumi.String("string"),
	AdminEnabled:            pulumi.Bool(false),
	NetworkRuleBypassOption: pulumi.String("string"),
	NetworkRuleSet: &containerservice.RegistryNetworkRuleSetArgs{
		DefaultAction: pulumi.String("string"),
		IpRules: containerservice.RegistryNetworkRuleSetIpRuleArray{
			&containerservice.RegistryNetworkRuleSetIpRuleArgs{
				Action:  pulumi.String("string"),
				IpRange: pulumi.String("string"),
			},
		},
	},
	Encryption: &containerservice.RegistryEncryptionArgs{
		IdentityClientId: pulumi.String("string"),
		KeyVaultKeyId:    pulumi.String("string"),
	},
	QuarantinePolicyEnabled: pulumi.Bool(false),
	DataEndpointEnabled:     pulumi.Bool(false),
	RetentionPolicyInDays:   pulumi.Int(0),
	AnonymousPullEnabled:    pulumi.Bool(false),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TrustPolicyEnabled:    pulumi.Bool(false),
	ZoneRedundancyEnabled: pulumi.Bool(false),
})
var registryResource = new Registry("registryResource", RegistryArgs.builder()
    .resourceGroupName("string")
    .sku("string")
    .name("string")
    .publicNetworkAccessEnabled(false)
    .exportPolicyEnabled(false)
    .georeplications(RegistryGeoreplicationArgs.builder()
        .location("string")
        .regionalEndpointEnabled(false)
        .tags(Map.of("string", "string"))
        .zoneRedundancyEnabled(false)
        .build())
    .identity(RegistryIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .location("string")
    .adminEnabled(false)
    .networkRuleBypassOption("string")
    .networkRuleSet(RegistryNetworkRuleSetArgs.builder()
        .defaultAction("string")
        .ipRules(RegistryNetworkRuleSetIpRuleArgs.builder()
            .action("string")
            .ipRange("string")
            .build())
        .build())
    .encryption(RegistryEncryptionArgs.builder()
        .identityClientId("string")
        .keyVaultKeyId("string")
        .build())
    .quarantinePolicyEnabled(false)
    .dataEndpointEnabled(false)
    .retentionPolicyInDays(0)
    .anonymousPullEnabled(false)
    .tags(Map.of("string", "string"))
    .trustPolicyEnabled(false)
    .zoneRedundancyEnabled(false)
    .build());
registry_resource = azure.containerservice.Registry("registryResource",
    resource_group_name="string",
    sku="string",
    name="string",
    public_network_access_enabled=False,
    export_policy_enabled=False,
    georeplications=[{
        "location": "string",
        "regional_endpoint_enabled": False,
        "tags": {
            "string": "string",
        },
        "zone_redundancy_enabled": False,
    }],
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    location="string",
    admin_enabled=False,
    network_rule_bypass_option="string",
    network_rule_set={
        "default_action": "string",
        "ip_rules": [{
            "action": "string",
            "ip_range": "string",
        }],
    },
    encryption={
        "identity_client_id": "string",
        "key_vault_key_id": "string",
    },
    quarantine_policy_enabled=False,
    data_endpoint_enabled=False,
    retention_policy_in_days=0,
    anonymous_pull_enabled=False,
    tags={
        "string": "string",
    },
    trust_policy_enabled=False,
    zone_redundancy_enabled=False)
const registryResource = new azure.containerservice.Registry("registryResource", {
    resourceGroupName: "string",
    sku: "string",
    name: "string",
    publicNetworkAccessEnabled: false,
    exportPolicyEnabled: false,
    georeplications: [{
        location: "string",
        regionalEndpointEnabled: false,
        tags: {
            string: "string",
        },
        zoneRedundancyEnabled: false,
    }],
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    location: "string",
    adminEnabled: false,
    networkRuleBypassOption: "string",
    networkRuleSet: {
        defaultAction: "string",
        ipRules: [{
            action: "string",
            ipRange: "string",
        }],
    },
    encryption: {
        identityClientId: "string",
        keyVaultKeyId: "string",
    },
    quarantinePolicyEnabled: false,
    dataEndpointEnabled: false,
    retentionPolicyInDays: 0,
    anonymousPullEnabled: false,
    tags: {
        string: "string",
    },
    trustPolicyEnabled: false,
    zoneRedundancyEnabled: false,
});
type: azure:containerservice:Registry
properties:
    adminEnabled: false
    anonymousPullEnabled: false
    dataEndpointEnabled: false
    encryption:
        identityClientId: string
        keyVaultKeyId: string
    exportPolicyEnabled: false
    georeplications:
        - location: string
          regionalEndpointEnabled: false
          tags:
            string: string
          zoneRedundancyEnabled: false
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    location: string
    name: string
    networkRuleBypassOption: string
    networkRuleSet:
        defaultAction: string
        ipRules:
            - action: string
              ipRange: string
    publicNetworkAccessEnabled: false
    quarantinePolicyEnabled: false
    resourceGroupName: string
    retentionPolicyInDays: 0
    sku: string
    tags:
        string: string
    trustPolicyEnabled: false
    zoneRedundancyEnabled: false
Registry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Registry resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- Sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- AdminEnabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- AnonymousPull boolEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- DataEndpoint boolEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- Encryption
RegistryEncryption 
- An encryptionblock as documented below.
- ExportPolicy boolEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- Georeplications
List<RegistryGeoreplication> 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- Identity
RegistryIdentity 
- An identityblock as defined below.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- NetworkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- NetworkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- PublicNetwork boolAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- QuarantinePolicy boolEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- RetentionPolicy intIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TrustPolicy boolEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- ResourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- Sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- AdminEnabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- AnonymousPull boolEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- DataEndpoint boolEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- Encryption
RegistryEncryption Args 
- An encryptionblock as documented below.
- ExportPolicy boolEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- Georeplications
[]RegistryGeoreplication Args 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- Identity
RegistryIdentity Args 
- An identityblock as defined below.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- NetworkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- NetworkRule RegistrySet Network Rule Set Args 
- A network_rule_setblock as documented below.
- PublicNetwork boolAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- QuarantinePolicy boolEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- RetentionPolicy intIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- map[string]string
- A mapping of tags to assign to the resource.
- TrustPolicy boolEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- resourceGroup StringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- sku String
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- adminEnabled Boolean
- Specifies whether the admin user is enabled. Defaults to false.
- anonymousPull BooleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint BooleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption 
- An encryptionblock as documented below.
- exportPolicy BooleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
List<RegistryGeoreplication> 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity 
- An identityblock as defined below.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule StringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- publicNetwork BooleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy BooleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- retentionPolicy IntegerIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Map<String,String>
- A mapping of tags to assign to the resource.
- trustPolicy BooleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- resourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- adminEnabled boolean
- Specifies whether the admin user is enabled. Defaults to false.
- anonymousPull booleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint booleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption 
- An encryptionblock as documented below.
- exportPolicy booleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
RegistryGeoreplication[] 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity 
- An identityblock as defined below.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- publicNetwork booleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy booleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- retentionPolicy numberIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- trustPolicy booleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy booleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- resource_group_ strname 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- sku str
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- admin_enabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- anonymous_pull_ boolenabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- data_endpoint_ boolenabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption Args 
- An encryptionblock as documented below.
- export_policy_ boolenabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
Sequence[RegistryGeoreplication Args] 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity Args 
- An identityblock as defined below.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- network_rule_ strbypass_ option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- network_rule_ Registryset Network Rule Set Args 
- A network_rule_setblock as documented below.
- public_network_ boolaccess_ enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantine_policy_ boolenabled 
- Boolean value that indicates whether quarantine policy is enabled.
- retention_policy_ intin_ days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- trust_policy_ boolenabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zone_redundancy_ boolenabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- resourceGroup StringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- sku String
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- adminEnabled Boolean
- Specifies whether the admin user is enabled. Defaults to false.
- anonymousPull BooleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint BooleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption Property Map
- An encryptionblock as documented below.
- exportPolicy BooleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications List<Property Map>
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity Property Map
- An identityblock as defined below.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name String
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule StringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule Property MapSet 
- A network_rule_setblock as documented below.
- publicNetwork BooleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy BooleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- retentionPolicy NumberIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Map<String>
- A mapping of tags to assign to the resource.
- trustPolicy BooleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
Outputs
All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:
- 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.
- LoginServer string
- The URL that can be used to log into the 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.
- LoginServer string
- The URL that can be used to log into the 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.
- loginServer String
- The URL that can be used to log into the 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.
- loginServer string
- The URL that can be used to log into the 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.
- login_server str
- The URL that can be used to log into the 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.
- loginServer String
- The URL that can be used to log into the container registry.
Look up Existing Registry Resource
Get an existing Registry 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?: RegistryState, opts?: CustomResourceOptions): Registry@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        admin_enabled: Optional[bool] = None,
        admin_password: Optional[str] = None,
        admin_username: Optional[str] = None,
        anonymous_pull_enabled: Optional[bool] = None,
        data_endpoint_enabled: Optional[bool] = None,
        encryption: Optional[RegistryEncryptionArgs] = None,
        export_policy_enabled: Optional[bool] = None,
        georeplications: Optional[Sequence[RegistryGeoreplicationArgs]] = None,
        identity: Optional[RegistryIdentityArgs] = None,
        location: Optional[str] = None,
        login_server: Optional[str] = None,
        name: Optional[str] = None,
        network_rule_bypass_option: Optional[str] = None,
        network_rule_set: Optional[RegistryNetworkRuleSetArgs] = None,
        public_network_access_enabled: Optional[bool] = None,
        quarantine_policy_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        retention_policy_in_days: Optional[int] = None,
        sku: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        trust_policy_enabled: Optional[bool] = None,
        zone_redundancy_enabled: Optional[bool] = None) -> Registryfunc GetRegistry(ctx *Context, name string, id IDInput, state *RegistryState, opts ...ResourceOption) (*Registry, error)public static Registry Get(string name, Input<string> id, RegistryState? state, CustomResourceOptions? opts = null)public static Registry get(String name, Output<String> id, RegistryState state, CustomResourceOptions options)resources:  _:    type: azure:containerservice:Registry    get:      id: ${id}- 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.
- AdminEnabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- AnonymousPull boolEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- DataEndpoint boolEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- Encryption
RegistryEncryption 
- An encryptionblock as documented below.
- ExportPolicy boolEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- Georeplications
List<RegistryGeoreplication> 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- Identity
RegistryIdentity 
- An identityblock as defined below.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LoginServer string
- The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- NetworkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- NetworkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- PublicNetwork boolAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- QuarantinePolicy boolEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- ResourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- RetentionPolicy intIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- TrustPolicy boolEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- AdminEnabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- AnonymousPull boolEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- DataEndpoint boolEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- Encryption
RegistryEncryption Args 
- An encryptionblock as documented below.
- ExportPolicy boolEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- Georeplications
[]RegistryGeoreplication Args 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- Identity
RegistryIdentity Args 
- An identityblock as defined below.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- LoginServer string
- The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- NetworkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- NetworkRule RegistrySet Network Rule Set Args 
- A network_rule_setblock as documented below.
- PublicNetwork boolAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- QuarantinePolicy boolEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- ResourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- RetentionPolicy intIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- Sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- map[string]string
- A mapping of tags to assign to the resource.
- TrustPolicy boolEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- adminEnabled Boolean
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- anonymousPull BooleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint BooleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption 
- An encryptionblock as documented below.
- exportPolicy BooleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
List<RegistryGeoreplication> 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity 
- An identityblock as defined below.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- loginServer String
- The URL that can be used to log into the container registry.
- name String
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule StringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- publicNetwork BooleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy BooleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- resourceGroup StringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retentionPolicy IntegerIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- sku String
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- Map<String,String>
- A mapping of tags to assign to the resource.
- trustPolicy BooleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- adminEnabled boolean
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- anonymousPull booleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint booleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption 
- An encryptionblock as documented below.
- exportPolicy booleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
RegistryGeoreplication[] 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity 
- An identityblock as defined below.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- loginServer string
- The URL that can be used to log into the container registry.
- name string
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule stringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule RegistrySet Network Rule Set 
- A network_rule_setblock as documented below.
- publicNetwork booleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy booleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- resourceGroup stringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retentionPolicy numberIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- sku string
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- trustPolicy booleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy booleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- admin_enabled bool
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- anonymous_pull_ boolenabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- data_endpoint_ boolenabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption
RegistryEncryption Args 
- An encryptionblock as documented below.
- export_policy_ boolenabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications
Sequence[RegistryGeoreplication Args] 
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity
RegistryIdentity Args 
- An identityblock as defined below.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- login_server str
- The URL that can be used to log into the container registry.
- name str
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- network_rule_ strbypass_ option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- network_rule_ Registryset Network Rule Set Args 
- A network_rule_setblock as documented below.
- public_network_ boolaccess_ enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantine_policy_ boolenabled 
- Boolean value that indicates whether quarantine policy is enabled.
- resource_group_ strname 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retention_policy_ intin_ days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- sku str
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- trust_policy_ boolenabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zone_redundancy_ boolenabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
- adminEnabled Boolean
- Specifies whether the admin user is enabled. Defaults to false.
- 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.
- anonymousPull BooleanEnabled 
- Whether allows anonymous (unauthenticated) pull access to this Container Registry? This is only supported on resources with the StandardorPremiumSKU.
- dataEndpoint BooleanEnabled 
- Whether to enable dedicated data endpoints for this Container Registry? This is only supported on resources with the PremiumSKU.
- encryption Property Map
- An encryptionblock as documented below.
- exportPolicy BooleanEnabled 
- Boolean value that indicates whether export policy is enabled. Defaults to - true. In order to set it to- false, make sure the- public_network_access_enabledis also set to- false.- NOTE: - quarantine_policy_enabled,- retention_policy_in_days,- trust_policy_enabled,- export_policy_enabledand- zone_redundancy_enabledare only supported on resources with the- PremiumSKU.
- georeplications List<Property Map>
- One or more - georeplicationsblocks as documented below.- NOTE: The - georeplicationsis only supported on new resources with the- PremiumSKU.- NOTE: The - georeplicationslist cannot contain the location where the Container Registry exists.- NOTE: If more than one - georeplicationsblock is specified, they are expected to follow the alphabetic order on the- locationproperty.
- identity Property Map
- An identityblock as defined below.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- loginServer String
- The URL that can be used to log into the container registry.
- name String
- Specifies the name of the Container Registry. Only Alphanumeric characters allowed. Changing this forces a new resource to be created.
- networkRule StringBypass Option 
- Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are NoneandAzureServices. Defaults toAzureServices.
- networkRule Property MapSet 
- A network_rule_setblock as documented below.
- publicNetwork BooleanAccess Enabled 
- Whether public network access is allowed for the container registry. Defaults to true.
- quarantinePolicy BooleanEnabled 
- Boolean value that indicates whether quarantine policy is enabled.
- resourceGroup StringName 
- The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retentionPolicy NumberIn Days 
- The number of days to retain and untagged manifest after which it gets purged. Defaults to 7.
- sku String
- The SKU name of the container registry. Possible values are Basic,StandardandPremium.
- Map<String>
- A mapping of tags to assign to the resource.
- trustPolicy BooleanEnabled 
- Boolean value that indicated whether trust policy is enabled. Defaults to false.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to false.
Supporting Types
RegistryEncryption, RegistryEncryptionArgs    
- IdentityClient stringId 
- The client ID of the managed identity associated with the encryption key.
- KeyVault stringKey Id 
- The ID of the Key Vault Key.
- IdentityClient stringId 
- The client ID of the managed identity associated with the encryption key.
- KeyVault stringKey Id 
- The ID of the Key Vault Key.
- identityClient StringId 
- The client ID of the managed identity associated with the encryption key.
- keyVault StringKey Id 
- The ID of the Key Vault Key.
- identityClient stringId 
- The client ID of the managed identity associated with the encryption key.
- keyVault stringKey Id 
- The ID of the Key Vault Key.
- identity_client_ strid 
- The client ID of the managed identity associated with the encryption key.
- key_vault_ strkey_ id 
- The ID of the Key Vault Key.
- identityClient StringId 
- The client ID of the managed identity associated with the encryption key.
- keyVault StringKey Id 
- The ID of the Key Vault Key.
RegistryGeoreplication, RegistryGeoreplicationArgs    
- Location string
- A location where the container registry should be geo-replicated.
- RegionalEndpoint boolEnabled 
- Whether regional endpoint is enabled for this Container Registry?
- Dictionary<string, string>
- A mapping of tags to assign to this replication location.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
- Location string
- A location where the container registry should be geo-replicated.
- RegionalEndpoint boolEnabled 
- Whether regional endpoint is enabled for this Container Registry?
- map[string]string
- A mapping of tags to assign to this replication location.
- ZoneRedundancy boolEnabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
- location String
- A location where the container registry should be geo-replicated.
- regionalEndpoint BooleanEnabled 
- Whether regional endpoint is enabled for this Container Registry?
- Map<String,String>
- A mapping of tags to assign to this replication location.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
- location string
- A location where the container registry should be geo-replicated.
- regionalEndpoint booleanEnabled 
- Whether regional endpoint is enabled for this Container Registry?
- {[key: string]: string}
- A mapping of tags to assign to this replication location.
- zoneRedundancy booleanEnabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
- location str
- A location where the container registry should be geo-replicated.
- regional_endpoint_ boolenabled 
- Whether regional endpoint is enabled for this Container Registry?
- Mapping[str, str]
- A mapping of tags to assign to this replication location.
- zone_redundancy_ boolenabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
- location String
- A location where the container registry should be geo-replicated.
- regionalEndpoint BooleanEnabled 
- Whether regional endpoint is enabled for this Container Registry?
- Map<String>
- A mapping of tags to assign to this replication location.
- zoneRedundancy BooleanEnabled 
- Whether zone redundancy is enabled for this replication location? Defaults to - false.- NOTE: Changing the - zone_redundancy_enabledforces the a underlying replication to be created.
RegistryIdentity, RegistryIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds List<string>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds []string
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- The Principal ID associated with this Managed Service Identity.
- TenantId string
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
- type string
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds string[]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId string
- The Principal ID associated with this Managed Service Identity.
- tenantId string
- The Tenant ID associated with this Managed Service Identity.
- type str
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identity_ids Sequence[str]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principal_id str
- The Principal ID associated with this Managed Service Identity.
- tenant_id str
- The Tenant ID associated with this Managed Service Identity.
- type String
- Specifies the type of Managed Service Identity that should be configured on this Container Registry. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this Container Registry. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- The Principal ID associated with this Managed Service Identity.
- tenantId String
- The Tenant ID associated with this Managed Service Identity.
RegistryNetworkRuleSet, RegistryNetworkRuleSetArgs        
- DefaultAction string
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- IpRules List<RegistryNetwork Rule Set Ip Rule> 
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
- DefaultAction string
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- IpRules []RegistryNetwork Rule Set Ip Rule 
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
- defaultAction String
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- ipRules List<RegistryNetwork Rule Set Ip Rule> 
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
- defaultAction string
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- ipRules RegistryNetwork Rule Set Ip Rule[] 
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
- default_action str
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- ip_rules Sequence[RegistryNetwork Rule Set Ip Rule] 
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
- defaultAction String
- The behaviour for requests matching no rules. Either AlloworDeny. Defaults toAllow
- ipRules List<Property Map>
- One or more - ip_ruleblocks as defined below.- NOTE: - network_rule_setis only supported with the- PremiumSKU at this time.- NOTE: Azure automatically configures Network Rules - to remove these you'll need to specify an - network_rule_setblock with- default_actionset to- Deny.
RegistryNetworkRuleSetIpRule, RegistryNetworkRuleSetIpRuleArgs            
Import
Container Registries can be imported using the resource id, e.g.
$ pulumi import azure:containerservice/registry:Registry example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ContainerRegistry/registries/myregistry1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.