1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. containerregistry
  6. Packages
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v1.103.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v1.103.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    An object that represents a container registry. API Version: 2019-05-01.

    Example Usage

    RegistryCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var registry = new AzureNative.ContainerRegistry.Registry("registry", new()
        {
            AdminUserEnabled = true,
            Location = "westus",
            RegistryName = "myRegistry",
            ResourceGroupName = "myResourceGroup",
            Sku = new AzureNative.ContainerRegistry.Inputs.SkuArgs
            {
                Name = "Standard",
            },
            Tags = 
            {
                { "key", "value" },
            },
        });
    
    });
    
    package main
    
    import (
    	containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerregistry.NewRegistry(ctx, "registry", &containerregistry.RegistryArgs{
    			AdminUserEnabled:  pulumi.Bool(true),
    			Location:          pulumi.String("westus"),
    			RegistryName:      pulumi.String("myRegistry"),
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			Sku: &containerregistry.SkuArgs{
    				Name: pulumi.String("Standard"),
    			},
    			Tags: pulumi.StringMap{
    				"key": pulumi.String("value"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.containerregistry.Registry;
    import com.pulumi.azurenative.containerregistry.RegistryArgs;
    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 registry = new Registry("registry", RegistryArgs.builder()        
                .adminUserEnabled(true)
                .location("westus")
                .registryName("myRegistry")
                .resourceGroupName("myResourceGroup")
                .sku(Map.of("name", "Standard"))
                .tags(Map.of("key", "value"))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const registry = new azure_native.containerregistry.Registry("registry", {
        adminUserEnabled: true,
        location: "westus",
        registryName: "myRegistry",
        resourceGroupName: "myResourceGroup",
        sku: {
            name: "Standard",
        },
        tags: {
            key: "value",
        },
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    registry = azure_native.containerregistry.Registry("registry",
        admin_user_enabled=True,
        location="westus",
        registry_name="myRegistry",
        resource_group_name="myResourceGroup",
        sku=azure_native.containerregistry.SkuArgs(
            name="Standard",
        ),
        tags={
            "key": "value",
        })
    
    resources:
      registry:
        type: azure-native:containerregistry:Registry
        properties:
          adminUserEnabled: true
          location: westus
          registryName: myRegistry
          resourceGroupName: myResourceGroup
          sku:
            name: Standard
          tags:
            key: value
    

    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[SkuArgs] = None,
                 admin_user_enabled: Optional[bool] = None,
                 location: Optional[str] = None,
                 network_rule_set: Optional[NetworkRuleSetArgs] = None,
                 policies: Optional[PoliciesArgs] = None,
                 registry_name: Optional[str] = None,
                 storage_account: Optional[StorageAccountPropertiesArgs] = None,
                 tags: Optional[Mapping[str, str]] = 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-native:containerregistry: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 AzureNative.ContainerRegistry.Registry("registryResource", new()
    {
        ResourceGroupName = "string",
        Sku = new AzureNative.ContainerRegistry.Inputs.SkuArgs
        {
            Name = "string",
        },
        AdminUserEnabled = false,
        Location = "string",
        NetworkRuleSet = new AzureNative.ContainerRegistry.Inputs.NetworkRuleSetArgs
        {
            DefaultAction = "string",
            IpRules = new[]
            {
                new AzureNative.ContainerRegistry.Inputs.IPRuleArgs
                {
                    IPAddressOrRange = "string",
                    Action = "string",
                },
            },
            VirtualNetworkRules = new[]
            {
                new AzureNative.ContainerRegistry.Inputs.VirtualNetworkRuleArgs
                {
                    VirtualNetworkResourceId = "string",
                    Action = "string",
                },
            },
        },
        Policies = new AzureNative.ContainerRegistry.Inputs.PoliciesArgs
        {
            QuarantinePolicy = new AzureNative.ContainerRegistry.Inputs.QuarantinePolicyArgs
            {
                Status = "string",
            },
            RetentionPolicy = new AzureNative.ContainerRegistry.Inputs.RetentionPolicyArgs
            {
                Days = 0,
                Status = "string",
            },
            TrustPolicy = new AzureNative.ContainerRegistry.Inputs.TrustPolicyArgs
            {
                Status = "string",
                Type = "string",
            },
        },
        RegistryName = "string",
        StorageAccount = new AzureNative.ContainerRegistry.Inputs.StorageAccountPropertiesArgs
        {
            Id = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := containerregistry.NewRegistry(ctx, "registryResource", &containerregistry.RegistryArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Sku: &containerregistry.SkuArgs{
    		Name: pulumi.String("string"),
    	},
    	AdminUserEnabled: pulumi.Bool(false),
    	Location:         pulumi.String("string"),
    	NetworkRuleSet: &containerregistry.NetworkRuleSetArgs{
    		DefaultAction: pulumi.String("string"),
    		IpRules: containerregistry.IPRuleArray{
    			&containerregistry.IPRuleArgs{
    				IPAddressOrRange: pulumi.String("string"),
    				Action:           pulumi.String("string"),
    			},
    		},
    		VirtualNetworkRules: containerregistry.VirtualNetworkRuleArray{
    			&containerregistry.VirtualNetworkRuleArgs{
    				VirtualNetworkResourceId: pulumi.String("string"),
    				Action:                   pulumi.String("string"),
    			},
    		},
    	},
    	Policies: &containerregistry.PoliciesArgs{
    		QuarantinePolicy: &containerregistry.QuarantinePolicyArgs{
    			Status: pulumi.String("string"),
    		},
    		RetentionPolicy: &containerregistry.RetentionPolicyArgs{
    			Days:   pulumi.Int(0),
    			Status: pulumi.String("string"),
    		},
    		TrustPolicy: &containerregistry.TrustPolicyArgs{
    			Status: pulumi.String("string"),
    			Type:   pulumi.String("string"),
    		},
    	},
    	RegistryName: pulumi.String("string"),
    	StorageAccount: &containerregistry.StorageAccountPropertiesArgs{
    		Id: pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var registryResource = new Registry("registryResource", RegistryArgs.builder()
        .resourceGroupName("string")
        .sku(SkuArgs.builder()
            .name("string")
            .build())
        .adminUserEnabled(false)
        .location("string")
        .networkRuleSet(NetworkRuleSetArgs.builder()
            .defaultAction("string")
            .ipRules(IPRuleArgs.builder()
                .iPAddressOrRange("string")
                .action("string")
                .build())
            .virtualNetworkRules(VirtualNetworkRuleArgs.builder()
                .virtualNetworkResourceId("string")
                .action("string")
                .build())
            .build())
        .policies(PoliciesArgs.builder()
            .quarantinePolicy(QuarantinePolicyArgs.builder()
                .status("string")
                .build())
            .retentionPolicy(RetentionPolicyArgs.builder()
                .days(0)
                .status("string")
                .build())
            .trustPolicy(TrustPolicyArgs.builder()
                .status("string")
                .type("string")
                .build())
            .build())
        .registryName("string")
        .storageAccount(StorageAccountPropertiesArgs.builder()
            .id("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    registry_resource = azure_native.containerregistry.Registry("registryResource",
        resource_group_name="string",
        sku={
            "name": "string",
        },
        admin_user_enabled=False,
        location="string",
        network_rule_set={
            "default_action": "string",
            "ip_rules": [{
                "i_p_address_or_range": "string",
                "action": "string",
            }],
            "virtual_network_rules": [{
                "virtual_network_resource_id": "string",
                "action": "string",
            }],
        },
        policies={
            "quarantine_policy": {
                "status": "string",
            },
            "retention_policy": {
                "days": 0,
                "status": "string",
            },
            "trust_policy": {
                "status": "string",
                "type": "string",
            },
        },
        registry_name="string",
        storage_account={
            "id": "string",
        },
        tags={
            "string": "string",
        })
    
    const registryResource = new azure_native.containerregistry.Registry("registryResource", {
        resourceGroupName: "string",
        sku: {
            name: "string",
        },
        adminUserEnabled: false,
        location: "string",
        networkRuleSet: {
            defaultAction: "string",
            ipRules: [{
                iPAddressOrRange: "string",
                action: "string",
            }],
            virtualNetworkRules: [{
                virtualNetworkResourceId: "string",
                action: "string",
            }],
        },
        policies: {
            quarantinePolicy: {
                status: "string",
            },
            retentionPolicy: {
                days: 0,
                status: "string",
            },
            trustPolicy: {
                status: "string",
                type: "string",
            },
        },
        registryName: "string",
        storageAccount: {
            id: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:containerregistry:Registry
    properties:
        adminUserEnabled: false
        location: string
        networkRuleSet:
            defaultAction: string
            ipRules:
                - action: string
                  iPAddressOrRange: string
            virtualNetworkRules:
                - action: string
                  virtualNetworkResourceId: string
        policies:
            quarantinePolicy:
                status: string
            retentionPolicy:
                days: 0
                status: string
            trustPolicy:
                status: string
                type: string
        registryName: string
        resourceGroupName: string
        sku:
            name: string
        storageAccount:
            id: string
        tags:
            string: string
    

    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:

    ResourceGroupName string
    The name of the resource group to which the container registry belongs.
    Sku Pulumi.AzureNative.ContainerRegistry.Inputs.Sku
    The SKU of the container registry.
    AdminUserEnabled bool
    The value that indicates whether the admin user is enabled.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    NetworkRuleSet Pulumi.AzureNative.ContainerRegistry.Inputs.NetworkRuleSet
    The network rule set for a container registry.
    Policies Pulumi.AzureNative.ContainerRegistry.Inputs.Policies
    The policies for a container registry.
    RegistryName string
    The name of the container registry.
    StorageAccount Pulumi.AzureNative.ContainerRegistry.Inputs.StorageAccountProperties
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    Tags Dictionary<string, string>
    The tags of the resource.
    ResourceGroupName string
    The name of the resource group to which the container registry belongs.
    Sku SkuArgs
    The SKU of the container registry.
    AdminUserEnabled bool
    The value that indicates whether the admin user is enabled.
    Location string
    The location of the resource. This cannot be changed after the resource is created.
    NetworkRuleSet NetworkRuleSetArgs
    The network rule set for a container registry.
    Policies PoliciesArgs
    The policies for a container registry.
    RegistryName string
    The name of the container registry.
    StorageAccount StorageAccountPropertiesArgs
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    Tags map[string]string
    The tags of the resource.
    resourceGroupName String
    The name of the resource group to which the container registry belongs.
    sku Sku
    The SKU of the container registry.
    adminUserEnabled Boolean
    The value that indicates whether the admin user is enabled.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    networkRuleSet NetworkRuleSet
    The network rule set for a container registry.
    policies Policies
    The policies for a container registry.
    registryName String
    The name of the container registry.
    storageAccount StorageAccountProperties
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    tags Map<String,String>
    The tags of the resource.
    resourceGroupName string
    The name of the resource group to which the container registry belongs.
    sku Sku
    The SKU of the container registry.
    adminUserEnabled boolean
    The value that indicates whether the admin user is enabled.
    location string
    The location of the resource. This cannot be changed after the resource is created.
    networkRuleSet NetworkRuleSet
    The network rule set for a container registry.
    policies Policies
    The policies for a container registry.
    registryName string
    The name of the container registry.
    storageAccount StorageAccountProperties
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    tags {[key: string]: string}
    The tags of the resource.
    resource_group_name str
    The name of the resource group to which the container registry belongs.
    sku SkuArgs
    The SKU of the container registry.
    admin_user_enabled bool
    The value that indicates whether the admin user is enabled.
    location str
    The location of the resource. This cannot be changed after the resource is created.
    network_rule_set NetworkRuleSetArgs
    The network rule set for a container registry.
    policies PoliciesArgs
    The policies for a container registry.
    registry_name str
    The name of the container registry.
    storage_account StorageAccountPropertiesArgs
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    tags Mapping[str, str]
    The tags of the resource.
    resourceGroupName String
    The name of the resource group to which the container registry belongs.
    sku Property Map
    The SKU of the container registry.
    adminUserEnabled Boolean
    The value that indicates whether the admin user is enabled.
    location String
    The location of the resource. This cannot be changed after the resource is created.
    networkRuleSet Property Map
    The network rule set for a container registry.
    policies Property Map
    The policies for a container registry.
    registryName String
    The name of the container registry.
    storageAccount Property Map
    The properties of the storage account for the container registry. Only applicable to Classic SKU.
    tags Map<String>
    The tags of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Registry resource produces the following output properties:

    CreationDate string
    The creation date of the container registry in ISO8601 format.
    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.
    Name string
    The name of the resource.
    ProvisioningState string
    The provisioning state of the container registry at the time the operation was called.
    Status Pulumi.AzureNative.ContainerRegistry.Outputs.StatusResponse
    The status of the container registry at the time the operation was called.
    Type string
    The type of the resource.
    CreationDate string
    The creation date of the container registry in ISO8601 format.
    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.
    Name string
    The name of the resource.
    ProvisioningState string
    The provisioning state of the container registry at the time the operation was called.
    Status StatusResponse
    The status of the container registry at the time the operation was called.
    Type string
    The type of the resource.
    creationDate String
    The creation date of the container registry in ISO8601 format.
    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.
    name String
    The name of the resource.
    provisioningState String
    The provisioning state of the container registry at the time the operation was called.
    status StatusResponse
    The status of the container registry at the time the operation was called.
    type String
    The type of the resource.
    creationDate string
    The creation date of the container registry in ISO8601 format.
    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.
    name string
    The name of the resource.
    provisioningState string
    The provisioning state of the container registry at the time the operation was called.
    status StatusResponse
    The status of the container registry at the time the operation was called.
    type string
    The type of the resource.
    creation_date str
    The creation date of the container registry in ISO8601 format.
    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.
    name str
    The name of the resource.
    provisioning_state str
    The provisioning state of the container registry at the time the operation was called.
    status StatusResponse
    The status of the container registry at the time the operation was called.
    type str
    The type of the resource.
    creationDate String
    The creation date of the container registry in ISO8601 format.
    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.
    name String
    The name of the resource.
    provisioningState String
    The provisioning state of the container registry at the time the operation was called.
    status Property Map
    The status of the container registry at the time the operation was called.
    type String
    The type of the resource.

    Supporting Types

    Action, ActionArgs

    Allow
    Allow
    ActionAllow
    Allow
    Allow
    Allow
    Allow
    Allow
    ALLOW
    Allow
    "Allow"
    Allow

    DefaultAction, DefaultActionArgs

    Allow
    Allow
    Deny
    Deny
    DefaultActionAllow
    Allow
    DefaultActionDeny
    Deny
    Allow
    Allow
    Deny
    Deny
    Allow
    Allow
    Deny
    Deny
    ALLOW
    Allow
    DENY
    Deny
    "Allow"
    Allow
    "Deny"
    Deny

    IPRule, IPRuleArgs

    IP rule with specific IP or IP range in CIDR format.
    IPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    Action string | Pulumi.AzureNative.ContainerRegistry.Action
    The action of IP ACL rule.
    IPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    Action string | Action
    The action of IP ACL rule.
    iPAddressOrRange String
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action String | Action
    The action of IP ACL rule.
    iPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action string | Action
    The action of IP ACL rule.
    i_p_address_or_range str
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action str | Action
    The action of IP ACL rule.
    iPAddressOrRange String
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action String | "Allow"
    The action of IP ACL rule.

    IPRuleResponse, IPRuleResponseArgs

    IP rule with specific IP or IP range in CIDR format.
    IPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    Action string
    The action of IP ACL rule.
    IPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    Action string
    The action of IP ACL rule.
    iPAddressOrRange String
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action String
    The action of IP ACL rule.
    iPAddressOrRange string
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action string
    The action of IP ACL rule.
    i_p_address_or_range str
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action str
    The action of IP ACL rule.
    iPAddressOrRange String
    Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
    action String
    The action of IP ACL rule.

    NetworkRuleSet, NetworkRuleSetArgs

    The network rule set for a container registry.
    DefaultAction string | DefaultAction
    The default action of allow or deny when no other rules match.
    IpRules []IPRule
    The IP ACL rules.
    VirtualNetworkRules []VirtualNetworkRule
    The virtual network rules.
    defaultAction String | DefaultAction
    The default action of allow or deny when no other rules match.
    ipRules List<IPRule>
    The IP ACL rules.
    virtualNetworkRules List<VirtualNetworkRule>
    The virtual network rules.
    defaultAction string | DefaultAction
    The default action of allow or deny when no other rules match.
    ipRules IPRule[]
    The IP ACL rules.
    virtualNetworkRules VirtualNetworkRule[]
    The virtual network rules.
    default_action str | DefaultAction
    The default action of allow or deny when no other rules match.
    ip_rules Sequence[IPRule]
    The IP ACL rules.
    virtual_network_rules Sequence[VirtualNetworkRule]
    The virtual network rules.
    defaultAction String | "Allow" | "Deny"
    The default action of allow or deny when no other rules match.
    ipRules List<Property Map>
    The IP ACL rules.
    virtualNetworkRules List<Property Map>
    The virtual network rules.

    NetworkRuleSetResponse, NetworkRuleSetResponseArgs

    The network rule set for a container registry.
    DefaultAction string
    The default action of allow or deny when no other rules match.
    IpRules []IPRuleResponse
    The IP ACL rules.
    VirtualNetworkRules []VirtualNetworkRuleResponse
    The virtual network rules.
    defaultAction String
    The default action of allow or deny when no other rules match.
    ipRules List<IPRuleResponse>
    The IP ACL rules.
    virtualNetworkRules List<VirtualNetworkRuleResponse>
    The virtual network rules.
    defaultAction string
    The default action of allow or deny when no other rules match.
    ipRules IPRuleResponse[]
    The IP ACL rules.
    virtualNetworkRules VirtualNetworkRuleResponse[]
    The virtual network rules.
    default_action str
    The default action of allow or deny when no other rules match.
    ip_rules Sequence[IPRuleResponse]
    The IP ACL rules.
    virtual_network_rules Sequence[VirtualNetworkRuleResponse]
    The virtual network rules.
    defaultAction String
    The default action of allow or deny when no other rules match.
    ipRules List<Property Map>
    The IP ACL rules.
    virtualNetworkRules List<Property Map>
    The virtual network rules.

    Policies, PoliciesArgs

    The policies for a container registry.
    QuarantinePolicy Pulumi.AzureNative.ContainerRegistry.Inputs.QuarantinePolicy
    The quarantine policy for a container registry.
    RetentionPolicy Pulumi.AzureNative.ContainerRegistry.Inputs.RetentionPolicy
    The retention policy for a container registry.
    TrustPolicy Pulumi.AzureNative.ContainerRegistry.Inputs.TrustPolicy
    The content trust policy for a container registry.
    QuarantinePolicy QuarantinePolicy
    The quarantine policy for a container registry.
    RetentionPolicy RetentionPolicy
    The retention policy for a container registry.
    TrustPolicy TrustPolicy
    The content trust policy for a container registry.
    quarantinePolicy QuarantinePolicy
    The quarantine policy for a container registry.
    retentionPolicy RetentionPolicy
    The retention policy for a container registry.
    trustPolicy TrustPolicy
    The content trust policy for a container registry.
    quarantinePolicy QuarantinePolicy
    The quarantine policy for a container registry.
    retentionPolicy RetentionPolicy
    The retention policy for a container registry.
    trustPolicy TrustPolicy
    The content trust policy for a container registry.
    quarantine_policy QuarantinePolicy
    The quarantine policy for a container registry.
    retention_policy RetentionPolicy
    The retention policy for a container registry.
    trust_policy TrustPolicy
    The content trust policy for a container registry.
    quarantinePolicy Property Map
    The quarantine policy for a container registry.
    retentionPolicy Property Map
    The retention policy for a container registry.
    trustPolicy Property Map
    The content trust policy for a container registry.

    PoliciesResponse, PoliciesResponseArgs

    The policies for a container registry.
    QuarantinePolicy QuarantinePolicyResponse
    The quarantine policy for a container registry.
    RetentionPolicy RetentionPolicyResponse
    The retention policy for a container registry.
    TrustPolicy TrustPolicyResponse
    The content trust policy for a container registry.
    quarantinePolicy QuarantinePolicyResponse
    The quarantine policy for a container registry.
    retentionPolicy RetentionPolicyResponse
    The retention policy for a container registry.
    trustPolicy TrustPolicyResponse
    The content trust policy for a container registry.
    quarantinePolicy QuarantinePolicyResponse
    The quarantine policy for a container registry.
    retentionPolicy RetentionPolicyResponse
    The retention policy for a container registry.
    trustPolicy TrustPolicyResponse
    The content trust policy for a container registry.
    quarantine_policy QuarantinePolicyResponse
    The quarantine policy for a container registry.
    retention_policy RetentionPolicyResponse
    The retention policy for a container registry.
    trust_policy TrustPolicyResponse
    The content trust policy for a container registry.
    quarantinePolicy Property Map
    The quarantine policy for a container registry.
    retentionPolicy Property Map
    The retention policy for a container registry.
    trustPolicy Property Map
    The content trust policy for a container registry.

    PolicyStatus, PolicyStatusArgs

    Enabled
    enabled
    Disabled
    disabled
    PolicyStatusEnabled
    enabled
    PolicyStatusDisabled
    disabled
    Enabled
    enabled
    Disabled
    disabled
    Enabled
    enabled
    Disabled
    disabled
    ENABLED
    enabled
    DISABLED
    disabled
    "enabled"
    enabled
    "disabled"
    disabled

    QuarantinePolicy, QuarantinePolicyArgs

    The quarantine policy for a container registry.
    Status string | Pulumi.AzureNative.ContainerRegistry.PolicyStatus
    The value that indicates whether the policy is enabled or not.
    Status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    status String | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    status str | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    status String | "enabled" | "disabled"
    The value that indicates whether the policy is enabled or not.

    QuarantinePolicyResponse, QuarantinePolicyResponseArgs

    The quarantine policy for a container registry.
    Status string
    The value that indicates whether the policy is enabled or not.
    Status string
    The value that indicates whether the policy is enabled or not.
    status String
    The value that indicates whether the policy is enabled or not.
    status string
    The value that indicates whether the policy is enabled or not.
    status str
    The value that indicates whether the policy is enabled or not.
    status String
    The value that indicates whether the policy is enabled or not.

    RetentionPolicy, RetentionPolicyArgs

    The retention policy for a container registry.
    Days int
    The number of days to retain an untagged manifest after which it gets purged.
    Status string | Pulumi.AzureNative.ContainerRegistry.PolicyStatus
    The value that indicates whether the policy is enabled or not.
    Days int
    The number of days to retain an untagged manifest after which it gets purged.
    Status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    days Integer
    The number of days to retain an untagged manifest after which it gets purged.
    status String | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    days number
    The number of days to retain an untagged manifest after which it gets purged.
    status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    days int
    The number of days to retain an untagged manifest after which it gets purged.
    status str | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    days Number
    The number of days to retain an untagged manifest after which it gets purged.
    status String | "enabled" | "disabled"
    The value that indicates whether the policy is enabled or not.

    RetentionPolicyResponse, RetentionPolicyResponseArgs

    The retention policy for a container registry.
    LastUpdatedTime string
    The timestamp when the policy was last updated.
    Days int
    The number of days to retain an untagged manifest after which it gets purged.
    Status string
    The value that indicates whether the policy is enabled or not.
    LastUpdatedTime string
    The timestamp when the policy was last updated.
    Days int
    The number of days to retain an untagged manifest after which it gets purged.
    Status string
    The value that indicates whether the policy is enabled or not.
    lastUpdatedTime String
    The timestamp when the policy was last updated.
    days Integer
    The number of days to retain an untagged manifest after which it gets purged.
    status String
    The value that indicates whether the policy is enabled or not.
    lastUpdatedTime string
    The timestamp when the policy was last updated.
    days number
    The number of days to retain an untagged manifest after which it gets purged.
    status string
    The value that indicates whether the policy is enabled or not.
    last_updated_time str
    The timestamp when the policy was last updated.
    days int
    The number of days to retain an untagged manifest after which it gets purged.
    status str
    The value that indicates whether the policy is enabled or not.
    lastUpdatedTime String
    The timestamp when the policy was last updated.
    days Number
    The number of days to retain an untagged manifest after which it gets purged.
    status String
    The value that indicates whether the policy is enabled or not.

    Sku, SkuArgs

    The SKU of a container registry.
    Name string | Pulumi.AzureNative.ContainerRegistry.SkuName
    The SKU name of the container registry. Required for registry creation.
    Name string | SkuName
    The SKU name of the container registry. Required for registry creation.
    name String | SkuName
    The SKU name of the container registry. Required for registry creation.
    name string | SkuName
    The SKU name of the container registry. Required for registry creation.
    name str | SkuName
    The SKU name of the container registry. Required for registry creation.
    name String | "Classic" | "Basic" | "Standard" | "Premium"
    The SKU name of the container registry. Required for registry creation.

    SkuName, SkuNameArgs

    Classic
    Classic
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    SkuNameClassic
    Classic
    SkuNameBasic
    Basic
    SkuNameStandard
    Standard
    SkuNamePremium
    Premium
    Classic
    Classic
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    Classic
    Classic
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    CLASSIC
    Classic
    BASIC
    Basic
    STANDARD
    Standard
    PREMIUM
    Premium
    "Classic"
    Classic
    "Basic"
    Basic
    "Standard"
    Standard
    "Premium"
    Premium

    SkuResponse, SkuResponseArgs

    The SKU of a container registry.
    Name string
    The SKU name of the container registry. Required for registry creation.
    Tier string
    The SKU tier based on the SKU name.
    Name string
    The SKU name of the container registry. Required for registry creation.
    Tier string
    The SKU tier based on the SKU name.
    name String
    The SKU name of the container registry. Required for registry creation.
    tier String
    The SKU tier based on the SKU name.
    name string
    The SKU name of the container registry. Required for registry creation.
    tier string
    The SKU tier based on the SKU name.
    name str
    The SKU name of the container registry. Required for registry creation.
    tier str
    The SKU tier based on the SKU name.
    name String
    The SKU name of the container registry. Required for registry creation.
    tier String
    The SKU tier based on the SKU name.

    StatusResponse, StatusResponseArgs

    The status of an Azure resource at the time the operation was called.
    DisplayStatus string
    The short label for the status.
    Message string
    The detailed message for the status, including alerts and error messages.
    Timestamp string
    The timestamp when the status was changed to the current value.
    DisplayStatus string
    The short label for the status.
    Message string
    The detailed message for the status, including alerts and error messages.
    Timestamp string
    The timestamp when the status was changed to the current value.
    displayStatus String
    The short label for the status.
    message String
    The detailed message for the status, including alerts and error messages.
    timestamp String
    The timestamp when the status was changed to the current value.
    displayStatus string
    The short label for the status.
    message string
    The detailed message for the status, including alerts and error messages.
    timestamp string
    The timestamp when the status was changed to the current value.
    display_status str
    The short label for the status.
    message str
    The detailed message for the status, including alerts and error messages.
    timestamp str
    The timestamp when the status was changed to the current value.
    displayStatus String
    The short label for the status.
    message String
    The detailed message for the status, including alerts and error messages.
    timestamp String
    The timestamp when the status was changed to the current value.

    StorageAccountProperties, StorageAccountPropertiesArgs

    The properties of a storage account for a container registry. Only applicable to Classic SKU.
    Id string
    The resource ID of the storage account.
    Id string
    The resource ID of the storage account.
    id String
    The resource ID of the storage account.
    id string
    The resource ID of the storage account.
    id str
    The resource ID of the storage account.
    id String
    The resource ID of the storage account.

    StorageAccountPropertiesResponse, StorageAccountPropertiesResponseArgs

    The properties of a storage account for a container registry. Only applicable to Classic SKU.
    Id string
    The resource ID of the storage account.
    Id string
    The resource ID of the storage account.
    id String
    The resource ID of the storage account.
    id string
    The resource ID of the storage account.
    id str
    The resource ID of the storage account.
    id String
    The resource ID of the storage account.

    TrustPolicy, TrustPolicyArgs

    The content trust policy for a container registry.
    Status string | Pulumi.AzureNative.ContainerRegistry.PolicyStatus
    The value that indicates whether the policy is enabled or not.
    Type string | Pulumi.AzureNative.ContainerRegistry.TrustPolicyType
    The type of trust policy.
    Status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    Type string | TrustPolicyType
    The type of trust policy.
    status String | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    type String | TrustPolicyType
    The type of trust policy.
    status string | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    type string | TrustPolicyType
    The type of trust policy.
    status str | PolicyStatus
    The value that indicates whether the policy is enabled or not.
    type str | TrustPolicyType
    The type of trust policy.
    status String | "enabled" | "disabled"
    The value that indicates whether the policy is enabled or not.
    type String | "Notary"
    The type of trust policy.

    TrustPolicyResponse, TrustPolicyResponseArgs

    The content trust policy for a container registry.
    Status string
    The value that indicates whether the policy is enabled or not.
    Type string
    The type of trust policy.
    Status string
    The value that indicates whether the policy is enabled or not.
    Type string
    The type of trust policy.
    status String
    The value that indicates whether the policy is enabled or not.
    type String
    The type of trust policy.
    status string
    The value that indicates whether the policy is enabled or not.
    type string
    The type of trust policy.
    status str
    The value that indicates whether the policy is enabled or not.
    type str
    The type of trust policy.
    status String
    The value that indicates whether the policy is enabled or not.
    type String
    The type of trust policy.

    TrustPolicyType, TrustPolicyTypeArgs

    Notary
    Notary
    TrustPolicyTypeNotary
    Notary
    Notary
    Notary
    Notary
    Notary
    NOTARY
    Notary
    "Notary"
    Notary

    VirtualNetworkRule, VirtualNetworkRuleArgs

    Virtual network rule.
    VirtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    Action string | Pulumi.AzureNative.ContainerRegistry.Action
    The action of virtual network rule.
    VirtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    Action string | Action
    The action of virtual network rule.
    virtualNetworkResourceId String
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action String | Action
    The action of virtual network rule.
    virtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action string | Action
    The action of virtual network rule.
    virtual_network_resource_id str
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action str | Action
    The action of virtual network rule.
    virtualNetworkResourceId String
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action String | "Allow"
    The action of virtual network rule.

    VirtualNetworkRuleResponse, VirtualNetworkRuleResponseArgs

    Virtual network rule.
    VirtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    Action string
    The action of virtual network rule.
    VirtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    Action string
    The action of virtual network rule.
    virtualNetworkResourceId String
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action String
    The action of virtual network rule.
    virtualNetworkResourceId string
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action string
    The action of virtual network rule.
    virtual_network_resource_id str
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action str
    The action of virtual network rule.
    virtualNetworkResourceId String
    Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
    action String
    The action of virtual network rule.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:containerregistry:Registry myRegistry /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v1.103.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.