Registry

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

Example Usage

RegistryCreate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var registry = new AzureNative.ContainerRegistry.Registry("registry", new AzureNative.ContainerRegistry.RegistryArgs
        {
            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/go/azure/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
	})
}

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",
    })

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",
    },
});

Create a Registry Resource

new Registry(name: string, args: RegistryArgs, opts?: CustomResourceOptions);
@overload
def Registry(resource_name: str,
             opts: Optional[ResourceOptions] = 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,
             resource_group_name: Optional[str] = None,
             sku: Optional[SkuArgs] = None,
             storage_account: Optional[StorageAccountPropertiesArgs] = None,
             tags: Optional[Mapping[str, str]] = None)
@overload
def Registry(resource_name: str,
             args: RegistryArgs,
             opts: Optional[ResourceOptions] = None)
func NewRegistry(ctx *Context, name string, args RegistryArgs, opts ...ResourceOption) (*Registry, error)
public Registry(string name, RegistryArgs args, CustomResourceOptions? opts = null)
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.

Registry Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

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.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 Pulumi.AzureNative.ContainerRegistry.Inputs.NetworkRuleSetArgs
The network rule set for a container registry.
Policies Pulumi.AzureNative.ContainerRegistry.Inputs.PoliciesArgs
The policies for a container registry.
RegistryName string
The name of the container registry.
StorageAccount Pulumi.AzureNative.ContainerRegistry.Inputs.StorageAccountPropertiesArgs
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 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 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 SkuArgs
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 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 {[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.

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.
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.

Supporting Types

Action

Allow
Allow
ActionAllow
Allow
Allow
Allow
ALLOW
Allow

DefaultAction

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

IPRule

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.
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.

IPRuleResponse

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.

NetworkRuleSet

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 IPRuleArgs[]
The IP ACL rules.
virtualNetworkRules VirtualNetworkRuleArgs[]
The virtual network rules.
default_action str | DefaultAction
The default action of allow or deny when no other rules match.
ip_rules Sequence[IPRuleArgs]
The IP ACL rules.
virtual_network_rules Sequence[VirtualNetworkRuleArgs]
The virtual network rules.

NetworkRuleSetResponse

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 IPRuleResponseArgs[]
The IP ACL rules.
virtualNetworkRules VirtualNetworkRuleResponseArgs[]
The virtual network rules.
default_action str
The default action of allow or deny when no other rules match.
ip_rules Sequence[IPRuleResponseArgs]
The IP ACL rules.
virtual_network_rules Sequence[VirtualNetworkRuleResponseArgs]
The virtual network rules.

Policies

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 QuarantinePolicyArgs
The quarantine policy for a container registry.
retentionPolicy RetentionPolicyArgs
The retention policy for a container registry.
trustPolicy TrustPolicyArgs
The content trust policy for a container registry.
quarantine_policy QuarantinePolicyArgs
The quarantine policy for a container registry.
retention_policy RetentionPolicyArgs
The retention policy for a container registry.
trust_policy TrustPolicyArgs
The content trust policy for a container registry.

PoliciesResponse

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 QuarantinePolicyResponseArgs
The quarantine policy for a container registry.
retentionPolicy RetentionPolicyResponseArgs
The retention policy for a container registry.
trustPolicy TrustPolicyResponseArgs
The content trust policy for a container registry.
quarantine_policy QuarantinePolicyResponseArgs
The quarantine policy for a container registry.
retention_policy RetentionPolicyResponseArgs
The retention policy for a container registry.
trust_policy TrustPolicyResponseArgs
The content trust policy for a container registry.

PolicyStatus

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

QuarantinePolicy

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 str | PolicyStatus
The value that indicates whether the policy is enabled or not.

QuarantinePolicyResponse

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.

RetentionPolicy

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 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.

RetentionPolicyResponse

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 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.

Sku

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 str | SkuName
The SKU name of the container registry. Required for registry creation.

SkuName

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

SkuResponse

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.

StatusResponse

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.

StorageAccountProperties

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.

StorageAccountPropertiesResponse

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.

TrustPolicy

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 str | PolicyStatus
The value that indicates whether the policy is enabled or not.
type str | TrustPolicyType
The type of trust policy.

TrustPolicyResponse

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.

TrustPolicyType

Notary
Notary
TrustPolicyTypeNotary
Notary
Notary
Notary
NOTARY
Notary

VirtualNetworkRule

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.
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.

VirtualNetworkRuleResponse

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.

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 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0