We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages an Azure Container Registry.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var acr = new Azure.ContainerService.Registry("acr", new Azure.ContainerService.RegistryArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
Sku = "Premium",
AdminEnabled = false,
Georeplications =
{
new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
{
Location = "East US",
ZoneRedundancyEnabled = true,
Tags = ,
},
new Azure.ContainerService.Inputs.RegistryGeoreplicationArgs
{
Location = "westeurope",
ZoneRedundancyEnabled = true,
Tags = ,
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
ResourceGroupName: rg.Name,
Location: rg.Location,
Sku: pulumi.String("Premium"),
AdminEnabled: pulumi.Bool(false),
Georeplications: containerservice.RegistryGeoreplicationArray{
&containerservice.RegistryGeoreplicationArgs{
Location: pulumi.String("East US"),
ZoneRedundancyEnabled: pulumi.Bool(true),
Tags: nil,
},
&containerservice.RegistryGeoreplicationArgs{
Location: pulumi.String("westeurope"),
ZoneRedundancyEnabled: pulumi.Bool(true),
Tags: nil,
},
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const rg = new azure.core.ResourceGroup("rg", {location: "West Europe"});
const acr = new azure.containerservice.Registry("acr", {
resourceGroupName: rg.name,
location: rg.location,
sku: "Premium",
adminEnabled: false,
georeplications: [
{
location: "East US",
zoneRedundancyEnabled: true,
tags: {},
},
{
location: "westeurope",
zoneRedundancyEnabled: true,
tags: {},
},
],
});
import pulumi
import pulumi_azure as azure
rg = azure.core.ResourceGroup("rg", location="West Europe")
acr = azure.containerservice.Registry("acr",
resource_group_name=rg.name,
location=rg.location,
sku="Premium",
admin_enabled=False,
georeplications=[
azure.containerservice.RegistryGeoreplicationArgs(
location="East US",
zone_redundancy_enabled=True,
tags={},
),
azure.containerservice.RegistryGeoreplicationArgs(
location="westeurope",
zone_redundancy_enabled=True,
tags={},
),
])
Example coming soon!
Encryption)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleUserAssignedIdentity = new Azure.Authorization.UserAssignedIdentity("exampleUserAssignedIdentity", new Azure.Authorization.UserAssignedIdentityArgs
{
ResourceGroupName = azurerm_resource_group.Example.Name,
Location = azurerm_resource_group.Example.Location,
});
var exampleKey = Output.Create(Azure.KeyVault.GetKey.InvokeAsync(new Azure.KeyVault.GetKeyArgs
{
Name = "super-secret",
KeyVaultId = data.Azurerm_key_vault.Existing.Id,
}));
var acr = new Azure.ContainerService.Registry("acr", new Azure.ContainerService.RegistryArgs
{
ResourceGroupName = rg.Name,
Location = rg.Location,
Sku = "Premium",
Identity = new Azure.ContainerService.Inputs.RegistryIdentityArgs
{
Type = "UserAssigned",
IdentityIds =
{
exampleUserAssignedIdentity.Id,
},
},
Encryption = new Azure.ContainerService.Inputs.RegistryEncryptionArgs
{
Enabled = true,
KeyVaultKeyId = exampleKey.Apply(exampleKey => exampleKey.Id),
IdentityClientId = exampleUserAssignedIdentity.ClientId,
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/keyvault"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
rg, err := core.NewResourceGroup(ctx, "rg", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleUserAssignedIdentity, err := authorization.NewUserAssignedIdentity(ctx, "exampleUserAssignedIdentity", &authorization.UserAssignedIdentityArgs{
ResourceGroupName: pulumi.Any(azurerm_resource_group.Example.Name),
Location: pulumi.Any(azurerm_resource_group.Example.Location),
})
if err != nil {
return err
}
exampleKey, err := keyvault.LookupKey(ctx, &keyvault.LookupKeyArgs{
Name: "super-secret",
KeyVaultId: data.Azurerm_key_vault.Existing.Id,
}, nil)
if err != nil {
return err
}
_, err = containerservice.NewRegistry(ctx, "acr", &containerservice.RegistryArgs{
ResourceGroupName: rg.Name,
Location: rg.Location,
Sku: pulumi.String("Premium"),
Identity: &containerservice.RegistryIdentityArgs{
Type: pulumi.String("UserAssigned"),
IdentityIds: pulumi.StringArray{
exampleUserAssignedIdentity.ID(),
},
},
Encryption: &containerservice.RegistryEncryptionArgs{
Enabled: pulumi.Bool(true),
KeyVaultKeyId: pulumi.String(exampleKey.Id),
IdentityClientId: exampleUserAssignedIdentity.ClientId,
},
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const rg = new azure.core.ResourceGroup("rg", {location: "West Europe"});
const exampleUserAssignedIdentity = new azure.authorization.UserAssignedIdentity("exampleUserAssignedIdentity", {
resourceGroupName: azurerm_resource_group.example.name,
location: azurerm_resource_group.example.location,
});
const exampleKey = azure.keyvault.getKey({
name: "super-secret",
keyVaultId: data.azurerm_key_vault.existing.id,
});
const acr = new azure.containerservice.Registry("acr", {
resourceGroupName: rg.name,
location: rg.location,
sku: "Premium",
identity: {
type: "UserAssigned",
identityIds: [exampleUserAssignedIdentity.id],
},
encryption: {
enabled: true,
keyVaultKeyId: exampleKey.then(exampleKey => exampleKey.id),
identityClientId: exampleUserAssignedIdentity.clientId,
},
});
import pulumi
import pulumi_azure as azure
rg = azure.core.ResourceGroup("rg", location="West Europe")
example_user_assigned_identity = azure.authorization.UserAssignedIdentity("exampleUserAssignedIdentity",
resource_group_name=azurerm_resource_group["example"]["name"],
location=azurerm_resource_group["example"]["location"])
example_key = azure.keyvault.get_key(name="super-secret",
key_vault_id=data["azurerm_key_vault"]["existing"]["id"])
acr = azure.containerservice.Registry("acr",
resource_group_name=rg.name,
location=rg.location,
sku="Premium",
identity=azure.containerservice.RegistryIdentityArgs(
type="UserAssigned",
identity_ids=[example_user_assigned_identity.id],
),
encryption=azure.containerservice.RegistryEncryptionArgs(
enabled=True,
key_vault_key_id=example_key.id,
identity_client_id=example_user_assigned_identity.client_id,
))
Example coming soon!
Attaching A Container Registry To A Kubernetes Cluster)
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleRegistry = new Azure.ContainerService.Registry("exampleRegistry", new Azure.ContainerService.RegistryArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleKubernetesCluster = new Azure.ContainerService.KubernetesCluster("exampleKubernetesCluster", new Azure.ContainerService.KubernetesClusterArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.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("exampleAssignment", new Azure.Authorization.AssignmentArgs
{
PrincipalId = exampleKubernetesCluster.KubeletIdentities.Apply(kubeletIdentities => kubeletIdentities[0].ObjectId),
RoleDefinitionName = "AcrPull",
Scope = exampleRegistry.Id,
SkipServicePrincipalAadCheck = true,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/authorization"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/containerservice"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleRegistry, err := containerservice.NewRegistry(ctx, "exampleRegistry", &containerservice.RegistryArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
exampleKubernetesCluster, err := containerservice.NewKubernetesCluster(ctx, "exampleKubernetesCluster", &containerservice.KubernetesClusterArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.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, "exampleAssignment", &authorization.AssignmentArgs{
PrincipalId: exampleKubernetesCluster.KubeletIdentities.ApplyT(func(kubeletIdentities []containerservice.KubernetesClusterKubeletIdentity) (string, error) {
return kubeletIdentities[0].ObjectId, nil
}).(pulumi.StringOutput),
RoleDefinitionName: pulumi.String("AcrPull"),
Scope: exampleRegistry.ID(),
SkipServicePrincipalAadCheck: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleRegistry = new azure.containerservice.Registry("exampleRegistry", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleKubernetesCluster = new azure.containerservice.KubernetesCluster("exampleKubernetesCluster", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
dnsPrefix: "exampleaks1",
defaultNodePool: {
name: "default",
nodeCount: 1,
vmSize: "Standard_D2_v2",
},
identity: {
type: "SystemAssigned",
},
tags: {
Environment: "Production",
},
});
const exampleAssignment = new azure.authorization.Assignment("exampleAssignment", {
principalId: exampleKubernetesCluster.kubeletIdentities.apply(kubeletIdentities => kubeletIdentities[0].objectId),
roleDefinitionName: "AcrPull",
scope: exampleRegistry.id,
skipServicePrincipalAadCheck: true,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_registry = azure.containerservice.Registry("exampleRegistry",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_kubernetes_cluster = azure.containerservice.KubernetesCluster("exampleKubernetesCluster",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
dns_prefix="exampleaks1",
default_node_pool=azure.containerservice.KubernetesClusterDefaultNodePoolArgs(
name="default",
node_count=1,
vm_size="Standard_D2_v2",
),
identity=azure.containerservice.KubernetesClusterIdentityArgs(
type="SystemAssigned",
),
tags={
"Environment": "Production",
})
example_assignment = azure.authorization.Assignment("exampleAssignment",
principal_id=example_kubernetes_cluster.kubelet_identities[0].object_id,
role_definition_name="AcrPull",
scope=example_registry.id,
skip_service_principal_aad_check=True)
Example coming soon!
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,
network_rule_bypass_option: Optional[str] = None,
data_endpoint_enabled: Optional[bool] = None,
encryption: Optional[RegistryEncryptionArgs] = None,
export_policy_enabled: Optional[bool] = None,
georeplication_locations: Optional[Sequence[str]] = None,
georeplications: Optional[Sequence[RegistryGeoreplicationArgs]] = None,
identity: Optional[RegistryIdentityArgs] = None,
location: Optional[str] = None,
admin_enabled: Optional[bool] = None,
name: Optional[str] = None,
quarantine_policy_enabled: Optional[bool] = None,
public_network_access_enabled: Optional[bool] = None,
network_rule_set: Optional[RegistryNetworkRuleSetArgs] = None,
anonymous_pull_enabled: Optional[bool] = None,
retention_policy: Optional[RegistryRetentionPolicyArgs] = None,
sku: Optional[str] = None,
storage_account_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
trust_policy: Optional[RegistryTrustPolicyArgs] = 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",
NetworkRuleBypassOption = "string",
DataEndpointEnabled = false,
Encryption = new Azure.ContainerService.Inputs.RegistryEncryptionArgs
{
IdentityClientId = "string",
KeyVaultKeyId = "string",
Enabled = 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,
Name = "string",
QuarantinePolicyEnabled = false,
PublicNetworkAccessEnabled = false,
NetworkRuleSet = new Azure.ContainerService.Inputs.RegistryNetworkRuleSetArgs
{
DefaultAction = "string",
IpRules = new[]
{
new Azure.ContainerService.Inputs.RegistryNetworkRuleSetIpRuleArgs
{
Action = "string",
IpRange = "string",
},
},
VirtualNetworks = new[]
{
new Azure.ContainerService.Inputs.RegistryNetworkRuleSetVirtualNetworkArgs
{
Action = "string",
SubnetId = "string",
},
},
},
AnonymousPullEnabled = false,
RetentionPolicy = new Azure.ContainerService.Inputs.RegistryRetentionPolicyArgs
{
Days = 0,
Enabled = false,
},
Sku = "string",
Tags =
{
{ "string", "string" },
},
TrustPolicy = new Azure.ContainerService.Inputs.RegistryTrustPolicyArgs
{
Enabled = false,
},
ZoneRedundancyEnabled = false,
});
example, err := containerservice.NewRegistry(ctx, "registryResource", &containerservice.RegistryArgs{
ResourceGroupName: pulumi.String("string"),
NetworkRuleBypassOption: pulumi.String("string"),
DataEndpointEnabled: pulumi.Bool(false),
Encryption: &containerservice.RegistryEncryptionArgs{
IdentityClientId: pulumi.String("string"),
KeyVaultKeyId: pulumi.String("string"),
Enabled: 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),
Name: pulumi.String("string"),
QuarantinePolicyEnabled: pulumi.Bool(false),
PublicNetworkAccessEnabled: pulumi.Bool(false),
NetworkRuleSet: &containerservice.RegistryNetworkRuleSetArgs{
DefaultAction: pulumi.String("string"),
IpRules: containerservice.RegistryNetworkRuleSetIpRuleArray{
&containerservice.RegistryNetworkRuleSetIpRuleArgs{
Action: pulumi.String("string"),
IpRange: pulumi.String("string"),
},
},
VirtualNetworks: containerservice.RegistryNetworkRuleSetVirtualNetworkArray{
&containerservice.RegistryNetworkRuleSetVirtualNetworkArgs{
Action: pulumi.String("string"),
SubnetId: pulumi.String("string"),
},
},
},
AnonymousPullEnabled: pulumi.Bool(false),
RetentionPolicy: &containerservice.RegistryRetentionPolicyArgs{
Days: pulumi.Int(0),
Enabled: pulumi.Bool(false),
},
Sku: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TrustPolicy: &containerservice.RegistryTrustPolicyArgs{
Enabled: pulumi.Bool(false),
},
ZoneRedundancyEnabled: pulumi.Bool(false),
})
var registryResource = new Registry("registryResource", RegistryArgs.builder()
.resourceGroupName("string")
.networkRuleBypassOption("string")
.dataEndpointEnabled(false)
.encryption(RegistryEncryptionArgs.builder()
.identityClientId("string")
.keyVaultKeyId("string")
.enabled(false)
.build())
.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)
.name("string")
.quarantinePolicyEnabled(false)
.publicNetworkAccessEnabled(false)
.networkRuleSet(RegistryNetworkRuleSetArgs.builder()
.defaultAction("string")
.ipRules(RegistryNetworkRuleSetIpRuleArgs.builder()
.action("string")
.ipRange("string")
.build())
.virtualNetworks(RegistryNetworkRuleSetVirtualNetworkArgs.builder()
.action("string")
.subnetId("string")
.build())
.build())
.anonymousPullEnabled(false)
.retentionPolicy(RegistryRetentionPolicyArgs.builder()
.days(0)
.enabled(false)
.build())
.sku("string")
.tags(Map.of("string", "string"))
.trustPolicy(RegistryTrustPolicyArgs.builder()
.enabled(false)
.build())
.zoneRedundancyEnabled(false)
.build());
registry_resource = azure.containerservice.Registry("registryResource",
resource_group_name="string",
network_rule_bypass_option="string",
data_endpoint_enabled=False,
encryption={
"identity_client_id": "string",
"key_vault_key_id": "string",
"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,
name="string",
quarantine_policy_enabled=False,
public_network_access_enabled=False,
network_rule_set={
"default_action": "string",
"ip_rules": [{
"action": "string",
"ip_range": "string",
}],
"virtual_networks": [{
"action": "string",
"subnet_id": "string",
}],
},
anonymous_pull_enabled=False,
retention_policy={
"days": 0,
"enabled": False,
},
sku="string",
tags={
"string": "string",
},
trust_policy={
"enabled": False,
},
zone_redundancy_enabled=False)
const registryResource = new azure.containerservice.Registry("registryResource", {
resourceGroupName: "string",
networkRuleBypassOption: "string",
dataEndpointEnabled: false,
encryption: {
identityClientId: "string",
keyVaultKeyId: "string",
enabled: 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,
name: "string",
quarantinePolicyEnabled: false,
publicNetworkAccessEnabled: false,
networkRuleSet: {
defaultAction: "string",
ipRules: [{
action: "string",
ipRange: "string",
}],
virtualNetworks: [{
action: "string",
subnetId: "string",
}],
},
anonymousPullEnabled: false,
retentionPolicy: {
days: 0,
enabled: false,
},
sku: "string",
tags: {
string: "string",
},
trustPolicy: {
enabled: false,
},
zoneRedundancyEnabled: false,
});
type: azure:containerservice:Registry
properties:
adminEnabled: false
anonymousPullEnabled: false
dataEndpointEnabled: false
encryption:
enabled: false
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
virtualNetworks:
- action: string
subnetId: string
publicNetworkAccessEnabled: false
quarantinePolicyEnabled: false
resourceGroupName: string
retentionPolicy:
days: 0
enabled: false
sku: string
tags:
string: string
trustPolicy:
enabled: 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:
- Resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- 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? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - Data
Endpoint boolEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - Encryption
Registry
Encryption - 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - Georeplication
Locations List<string> - A list of Azure locations where the container registry should be geo-replicated.
- Georeplications
List<Registry
Georeplication> - A
georeplicationsblock as documented below. - Identity
Registry
Identity - 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. Changing this forces a new resource to be created.
- Network
Rule stringBypass 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 - 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. Defaults to
false. - Retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - Sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - Storage
Account stringId - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - Zone
Redundancy boolEnabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- Resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- 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? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - Data
Endpoint boolEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - Encryption
Registry
Encryption 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - Georeplication
Locations []string - A list of Azure locations where the container registry should be geo-replicated.
- Georeplications
[]Registry
Georeplication Args - A
georeplicationsblock as documented below. - Identity
Registry
Identity 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. Changing this forces a new resource to be created.
- Network
Rule stringBypass 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. Defaults to
false. - Retention
Policy RegistryRetention Policy Args - A
retention_policyblock as documented below. - Sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - Storage
Account stringId - map[string]string
- A mapping of tags to assign to the resource.
- Trust
Policy RegistryTrust Policy Args - A
trust_policyblock as documented below. - Zone
Redundancy boolEnabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- resource
Group StringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- admin
Enabled Boolean - Specifies whether the admin user is enabled. Defaults to
false. - anonymous
Pull BooleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint BooleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption - An
encryptionblock as documented below. - export
Policy BooleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations List<String> - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
List<Registry
Georeplication> - A
georeplicationsblock as documented below. - identity
Registry
Identity - 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. Changing this forces a new resource to be created.
- network
Rule StringBypass 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 - A
network_rule_setblock as documented below. - public
Network BooleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy BooleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - sku String
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account StringId - Map<String,String>
- A mapping of tags to assign to the resource.
- trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - zone
Redundancy BooleanEnabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- admin
Enabled boolean - Specifies whether the admin user is enabled. Defaults to
false. - anonymous
Pull booleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint booleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption - An
encryptionblock as documented below. - export
Policy booleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations string[] - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
Registry
Georeplication[] - A
georeplicationsblock as documented below. - identity
Registry
Identity - 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. Changing this forces a new resource to be created.
- network
Rule stringBypass 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 - A
network_rule_setblock as documented below. - public
Network booleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy booleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account stringId - {[key: string]: string}
- A mapping of tags to assign to the resource.
- trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - zone
Redundancy 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.
- 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? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data_
endpoint_ boolenabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication_
locations Sequence[str] - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
Sequence[Registry
Georeplication Args] - A
georeplicationsblock as documented below. - identity
Registry
Identity 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. 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. Defaults to
false. - retention_
policy RegistryRetention Policy Args - A
retention_policyblock as documented below. - sku str
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage_
account_ strid - Mapping[str, str]
- A mapping of tags to assign to the resource.
- trust_
policy RegistryTrust Policy Args - A
trust_policyblock as documented below. - zone_
redundancy_ boolenabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- resource
Group StringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- admin
Enabled Boolean - Specifies whether the admin user is enabled. Defaults to
false. - anonymous
Pull BooleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint BooleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption Property Map
- An
encryptionblock as documented below. - export
Policy BooleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations List<String> - A list of Azure locations where the container registry should be geo-replicated.
- georeplications List<Property Map>
- A
georeplicationsblock as documented below. - 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. Changing this forces a new resource to be created.
- network
Rule StringBypass Option - Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are
NoneandAzureServices. Defaults toAzureServices. - network
Rule Property MapSet - A
network_rule_setblock as documented below. - public
Network BooleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy BooleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - retention
Policy Property Map - A
retention_policyblock as documented below. - sku String
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account StringId - Map<String>
- A mapping of tags to assign to the resource.
- trust
Policy Property Map - A
trust_policyblock as documented below. - zone
Redundancy 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:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Server string - The URL that can be used to log into the 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.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Server String - The URL that can be used to log into the 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.
- id string
- The provider-assigned unique ID for this managed resource.
- login
Server 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.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Server 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,
georeplication_locations: Optional[Sequence[str]] = 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: Optional[RegistryRetentionPolicyArgs] = None,
sku: Optional[str] = None,
storage_account_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
trust_policy: Optional[RegistryTrustPolicyArgs] = 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.
- Admin
Enabled bool - Specifies whether the admin user is enabled. Defaults to
false. - 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.
- Anonymous
Pull boolEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - Data
Endpoint boolEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - Encryption
Registry
Encryption - 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - Georeplication
Locations List<string> - A list of Azure locations where the container registry should be geo-replicated.
- Georeplications
List<Registry
Georeplication> - A
georeplicationsblock as documented below. - Identity
Registry
Identity - 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.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the Container Registry. Changing this forces a new resource to be created.
- Network
Rule stringBypass 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 - 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. Defaults to
false. - Resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- Retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - Sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - Storage
Account stringId - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - Zone
Redundancy boolEnabled - 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 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.
- Anonymous
Pull boolEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - Data
Endpoint boolEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - Encryption
Registry
Encryption 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - Georeplication
Locations []string - A list of Azure locations where the container registry should be geo-replicated.
- Georeplications
[]Registry
Georeplication Args - A
georeplicationsblock as documented below. - Identity
Registry
Identity 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.
- Login
Server string - The URL that can be used to log into the container registry.
- Name string
- Specifies the name of the Container Registry. Changing this forces a new resource to be created.
- Network
Rule stringBypass 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. Defaults to
false. - Resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- Retention
Policy RegistryRetention Policy Args - A
retention_policyblock as documented below. - Sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - Storage
Account stringId - map[string]string
- A mapping of tags to assign to the resource.
- Trust
Policy RegistryTrust Policy Args - A
trust_policyblock as documented below. - Zone
Redundancy boolEnabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- admin
Enabled Boolean - Specifies whether the admin user is enabled. Defaults to
false. - 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.
- anonymous
Pull BooleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint BooleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption - An
encryptionblock as documented below. - export
Policy BooleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations List<String> - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
List<Registry
Georeplication> - A
georeplicationsblock as documented below. - identity
Registry
Identity - 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.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- Specifies the name of the Container Registry. Changing this forces a new resource to be created.
- network
Rule StringBypass 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 - A
network_rule_setblock as documented below. - public
Network BooleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy BooleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - resource
Group StringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - sku String
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account StringId - Map<String,String>
- A mapping of tags to assign to the resource.
- trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - zone
Redundancy BooleanEnabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- admin
Enabled boolean - Specifies whether the admin user is enabled. Defaults to
false. - 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.
- anonymous
Pull booleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint booleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption - An
encryptionblock as documented below. - export
Policy booleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations string[] - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
Registry
Georeplication[] - A
georeplicationsblock as documented below. - identity
Registry
Identity - 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.
- login
Server string - The URL that can be used to log into the container registry.
- name string
- Specifies the name of the Container Registry. Changing this forces a new resource to be created.
- network
Rule stringBypass 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 - A
network_rule_setblock as documented below. - public
Network booleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy booleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - resource
Group stringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retention
Policy RegistryRetention Policy - A
retention_policyblock as documented below. - sku string
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account stringId - {[key: string]: string}
- A mapping of tags to assign to the resource.
- trust
Policy RegistryTrust Policy - A
trust_policyblock as documented below. - zone
Redundancy 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? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data_
endpoint_ boolenabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption
Registry
Encryption 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 tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication_
locations Sequence[str] - A list of Azure locations where the container registry should be geo-replicated.
- georeplications
Sequence[Registry
Georeplication Args] - A
georeplicationsblock as documented below. - identity
Registry
Identity 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. 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. 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.
- retention_
policy RegistryRetention Policy Args - A
retention_policyblock as documented below. - sku str
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage_
account_ strid - Mapping[str, str]
- A mapping of tags to assign to the resource.
- trust_
policy RegistryTrust Policy Args - A
trust_policyblock as documented below. - zone_
redundancy_ boolenabled - Whether zone redundancy is enabled for this Container Registry? Changing this forces a new resource to be created. Defaults to
false.
- admin
Enabled Boolean - Specifies whether the admin user is enabled. Defaults to
false. - 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.
- anonymous
Pull BooleanEnabled - Whether allows anonymous (unauthenticated) pull access to this Container Registry? Defaults to
false. This is only supported on resources with theStandardorPremiumSKU. - data
Endpoint BooleanEnabled - Whether to enable dedicated data endpoints for this Container Registry? Defaults to
false. This is only supported on resources with thePremiumSKU. - encryption Property Map
- An
encryptionblock as documented below. - export
Policy BooleanEnabled - Boolean value that indicates whether export policy is enabled. Defaults to
true. In order to set it tofalse, make sure thepublic_network_access_enabledis also set tofalse. - georeplication
Locations List<String> - A list of Azure locations where the container registry should be geo-replicated.
- georeplications List<Property Map>
- A
georeplicationsblock as documented below. - 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.
- login
Server String - The URL that can be used to log into the container registry.
- name String
- Specifies the name of the Container Registry. Changing this forces a new resource to be created.
- network
Rule StringBypass Option - Whether to allow trusted Azure services to access a network restricted Container Registry? Possible values are
NoneandAzureServices. Defaults toAzureServices. - network
Rule Property MapSet - A
network_rule_setblock as documented below. - public
Network BooleanAccess Enabled - Whether public network access is allowed for the container registry. Defaults to
true. - quarantine
Policy BooleanEnabled - Boolean value that indicates whether quarantine policy is enabled. Defaults to
false. - resource
Group StringName - The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.
- retention
Policy Property Map - A
retention_policyblock as documented below. - sku String
- The SKU name of the container registry. Possible values are
Basic,StandardandPremium.Classic(which was previouslyBasic) is supported only for existing resources. - storage
Account StringId - Map<String>
- A mapping of tags to assign to the resource.
- trust
Policy Property Map - A
trust_policyblock as documented below. - zone
Redundancy 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
- Identity
Client stringId - The client ID of the managed identity associated with the encryption key.
- Key
Vault stringKey Id - The ID of the Key Vault Key.
- Enabled bool
- Boolean value that indicates whether encryption is enabled.
- Identity
Client stringId - The client ID of the managed identity associated with the encryption key.
- Key
Vault stringKey Id - The ID of the Key Vault Key.
- Enabled bool
- Boolean value that indicates whether encryption is enabled.
- identity
Client StringId - The client ID of the managed identity associated with the encryption key.
- key
Vault StringKey Id - The ID of the Key Vault Key.
- enabled Boolean
- Boolean value that indicates whether encryption is enabled.
- identity
Client stringId - The client ID of the managed identity associated with the encryption key.
- key
Vault stringKey Id - The ID of the Key Vault Key.
- enabled boolean
- Boolean value that indicates whether encryption is enabled.
- 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.
- enabled bool
- Boolean value that indicates whether encryption is enabled.
- identity
Client StringId - The client ID of the managed identity associated with the encryption key.
- key
Vault StringKey Id - The ID of the Key Vault Key.
- enabled Boolean
- Boolean value that indicates whether encryption is enabled.
RegistryGeoreplication, RegistryGeoreplicationArgs
- Location string
- A location where the container registry should be geo-replicated.
- Regional
Endpoint boolEnabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - Dictionary<string, string>
- 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.
- Location string
- A location where the container registry should be geo-replicated.
- Regional
Endpoint boolEnabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - map[string]string
- 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.
- location String
- A location where the container registry should be geo-replicated.
- regional
Endpoint BooleanEnabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - Map<String,String>
- A mapping of tags to assign to this replication location.
- zone
Redundancy BooleanEnabled - Whether zone redundancy is enabled for this replication location? Defaults to
false.
- location string
- A location where the container registry should be geo-replicated.
- regional
Endpoint booleanEnabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - {[key: string]: string}
- A mapping of tags to assign to this replication location.
- zone
Redundancy booleanEnabled - Whether zone redundancy is enabled for this replication location? Defaults to
false.
- location str
- A location where the container registry should be geo-replicated.
- regional_
endpoint_ boolenabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - 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.
- location String
- A location where the container registry should be geo-replicated.
- regional
Endpoint BooleanEnabled - Whether regional endpoint is enabled for this Container Registry? Defaults to
false. - Map<String>
- A mapping of tags to assign to this replication location.
- zone
Redundancy BooleanEnabled - Whether zone redundancy is enabled for this replication location? Defaults to
false.
RegistryIdentity, RegistryIdentityArgs
- Type string
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - Identity
Ids List<string> - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- Type string
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - Identity
Ids []string - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- Principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- type String
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - identity
Ids List<String> - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- type string
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - identity
Ids string[] - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- principal
Id string - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- tenant
Id string - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- type str
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - identity_
ids Sequence[str] - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- principal_
id str - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- tenant_
id str - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- type String
- The type of Managed Identity which should be assigned to the Container Registry. Possible values are
SystemAssigned,UserAssignedandSystemAssigned, UserAssigned. - identity
Ids List<String> - A list of User Managed Identity ID's which should be assigned to the Container Registry.
- principal
Id String - The Principal ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Managed Service Identity of this Container Registry.
RegistryNetworkRuleSet, RegistryNetworkRuleSetArgs
- Default
Action string - The behaviour for requests matching no rules. Either
AlloworDeny. Defaults toAllow - Ip
Rules List<RegistryNetwork Rule Set Ip Rule> - One or more
ip_ruleblocks as defined below. - Virtual
Networks List<RegistryNetwork Rule Set Virtual Network> - One or more
virtual_networkblocks as defined below.
- Default
Action string - The behaviour for requests matching no rules. Either
AlloworDeny. Defaults toAllow - Ip
Rules []RegistryNetwork Rule Set Ip Rule - One or more
ip_ruleblocks as defined below. - Virtual
Networks []RegistryNetwork Rule Set Virtual Network - One or more
virtual_networkblocks as defined below.
- default
Action String - The behaviour for requests matching no rules. Either
AlloworDeny. Defaults toAllow - ip
Rules List<RegistryNetwork Rule Set Ip Rule> - One or more
ip_ruleblocks as defined below. - virtual
Networks List<RegistryNetwork Rule Set Virtual Network> - One or more
virtual_networkblocks as defined below.
- default
Action string - The behaviour for requests matching no rules. Either
AlloworDeny. Defaults toAllow - ip
Rules RegistryNetwork Rule Set Ip Rule[] - One or more
ip_ruleblocks as defined below. - virtual
Networks RegistryNetwork Rule Set Virtual Network[] - One or more
virtual_networkblocks as defined below.
- 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. - virtual_
networks Sequence[RegistryNetwork Rule Set Virtual Network] - One or more
virtual_networkblocks as defined below.
- default
Action String - The behaviour for requests matching no rules. Either
AlloworDeny. Defaults toAllow - ip
Rules List<Property Map> - One or more
ip_ruleblocks as defined below. - virtual
Networks List<Property Map> - One or more
virtual_networkblocks as defined below.
RegistryNetworkRuleSetIpRule, RegistryNetworkRuleSetIpRuleArgs
RegistryNetworkRuleSetVirtualNetwork, RegistryNetworkRuleSetVirtualNetworkArgs
RegistryRetentionPolicy, RegistryRetentionPolicyArgs
RegistryTrustPolicy, RegistryTrustPolicyArgs
- Enabled bool
- Boolean value that indicates whether the policy is enabled.
- Enabled bool
- Boolean value that indicates whether the policy is enabled.
- enabled Boolean
- Boolean value that indicates whether the policy is enabled.
- enabled boolean
- Boolean value that indicates whether the policy is enabled.
- enabled bool
- Boolean value that indicates whether the policy is enabled.
- enabled Boolean
- Boolean value that indicates whether the policy is enabled.
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.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
