published on Monday, Mar 9, 2026 by Pulumi
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:
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Sku
Pulumi.
Azure Native. Container Registry. Inputs. Sku - The SKU of the container registry.
- Admin
User boolEnabled - 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.
- Network
Rule Pulumi.Set Azure Native. Container Registry. Inputs. Network Rule Set - The network rule set for a container registry.
- Policies
Pulumi.
Azure Native. Container Registry. Inputs. Policies - The policies for a container registry.
- Registry
Name string - The name of the container registry.
- Storage
Account Pulumi.Azure Native. Container Registry. Inputs. Storage Account Properties - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- Dictionary<string, string>
- The tags of the resource.
- Resource
Group stringName - The name of the resource group to which the container registry belongs.
- Sku
Sku
Args - The SKU of the container registry.
- Admin
User boolEnabled - 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.
- Network
Rule NetworkSet Rule Set Args - The network rule set for a container registry.
- Policies
Policies
Args - The policies for a container registry.
- Registry
Name string - The name of the container registry.
- Storage
Account StorageAccount Properties Args - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- map[string]string
- The tags of the resource.
- resource
Group StringName - The name of the resource group to which the container registry belongs.
- sku Sku
- The SKU of the container registry.
- admin
User BooleanEnabled - 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.
- network
Rule NetworkSet Rule Set - The network rule set for a container registry.
- policies Policies
- The policies for a container registry.
- registry
Name String - The name of the container registry.
- storage
Account StorageAccount Properties - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- Map<String,String>
- The tags of the resource.
- resource
Group stringName - The name of the resource group to which the container registry belongs.
- sku Sku
- The SKU of the container registry.
- admin
User booleanEnabled - 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.
- network
Rule NetworkSet Rule Set - The network rule set for a container registry.
- policies Policies
- The policies for a container registry.
- registry
Name string - The name of the container registry.
- storage
Account StorageAccount Properties - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- {[key: string]: string}
- The tags of the resource.
- resource_
group_ strname - The name of the resource group to which the container registry belongs.
- sku
Sku
Args - The SKU of the container registry.
- admin_
user_ boolenabled - 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_ Networkset Rule Set Args - The network rule set for a container registry.
- policies
Policies
Args - The policies for a container registry.
- registry_
name str - The name of the container registry.
- storage_
account StorageAccount Properties Args - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- Mapping[str, str]
- The tags of the resource.
- resource
Group StringName - The name of the resource group to which the container registry belongs.
- sku Property Map
- The SKU of the container registry.
- admin
User BooleanEnabled - 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.
- network
Rule Property MapSet - The network rule set for a container registry.
- policies Property Map
- The policies for a container registry.
- registry
Name String - The name of the container registry.
- storage
Account Property Map - The properties of the storage account for the container registry. Only applicable to Classic SKU.
- 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:
- Creation
Date string - The creation date of the container registry in ISO8601 format.
- 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.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- Status
Pulumi.
Azure Native. Container Registry. Outputs. Status Response - The status of the container registry at the time the operation was called.
- Type string
- The type of the resource.
- Creation
Date string - The creation date of the container registry in ISO8601 format.
- 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.
- Name string
- The name of the resource.
- Provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- Status
Status
Response - The status of the container registry at the time the operation was called.
- Type string
- The type of the resource.
- creation
Date String - The creation date of the container registry in ISO8601 format.
- 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.
- name String
- The name of the resource.
- provisioning
State String - The provisioning state of the container registry at the time the operation was called.
- status
Status
Response - The status of the container registry at the time the operation was called.
- type String
- The type of the resource.
- creation
Date string - The creation date of the container registry in ISO8601 format.
- 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.
- name string
- The name of the resource.
- provisioning
State string - The provisioning state of the container registry at the time the operation was called.
- status
Status
Response - 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
Status
Response - The status of the container registry at the time the operation was called.
- type str
- The type of the resource.
- creation
Date String - The creation date of the container registry in ISO8601 format.
- 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.
- name String
- The name of the resource.
- provisioning
State 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
- Action
Allow Allow
- Allow
Allow
- Allow
Allow
- ALLOW
Allow
- "Allow"
Allow
DefaultAction, DefaultActionArgs
- Allow
Allow- Deny
Deny
- Default
Action Allow Allow- Default
Action Deny 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.- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action
string | Pulumi.
Azure Native. Container Registry. Action - The action of IP ACL rule.
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string | Action
- The action of IP ACL rule.
- i
PAddress StringOr Range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action String | Action
- The action of IP ACL rule.
- i
PAddress stringOr Range - 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_ straddress_ or_ range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action str | Action
- The action of IP ACL rule.
- i
PAddress StringOr Range - 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.- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string
- The action of IP ACL rule.
- IPAddress
Or stringRange - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- Action string
- The action of IP ACL rule.
- i
PAddress StringOr Range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action String
- The action of IP ACL rule.
- i
PAddress stringOr Range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action string
- The action of IP ACL rule.
- i_
p_ straddress_ or_ range - Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
- action str
- The action of IP ACL rule.
- i
PAddress StringOr Range - 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.- Default
Action string | Pulumi.Azure Native. Container Registry. Default Action - The default action of allow or deny when no other rules match.
- Ip
Rules List<Pulumi.Azure Native. Container Registry. Inputs. IPRule> - The IP ACL rules.
- Virtual
Network List<Pulumi.Rules Azure Native. Container Registry. Inputs. Virtual Network Rule> - The virtual network rules.
- Default
Action string | DefaultAction - The default action of allow or deny when no other rules match.
- Ip
Rules []IPRule - The IP ACL rules.
- Virtual
Network []VirtualRules Network Rule - The virtual network rules.
- default
Action String | DefaultAction - The default action of allow or deny when no other rules match.
- ip
Rules List<IPRule> - The IP ACL rules.
- virtual
Network List<VirtualRules Network Rule> - The virtual network rules.
- default
Action string | DefaultAction - The default action of allow or deny when no other rules match.
- ip
Rules IPRule[] - The IP ACL rules.
- virtual
Network VirtualRules Network Rule[] - 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_ Sequence[Virtualrules Network Rule] - The virtual network rules.
- default
Action String | "Allow" | "Deny" - The default action of allow or deny when no other rules match.
- ip
Rules List<Property Map> - The IP ACL rules.
- virtual
Network List<Property Map>Rules - The virtual network rules.
NetworkRuleSetResponse, NetworkRuleSetResponseArgs
The network rule set for a container registry.- Default
Action string - The default action of allow or deny when no other rules match.
- Ip
Rules List<Pulumi.Azure Native. Container Registry. Inputs. IPRule Response> - The IP ACL rules.
- Virtual
Network List<Pulumi.Rules Azure Native. Container Registry. Inputs. Virtual Network Rule Response> - The virtual network rules.
- Default
Action string - The default action of allow or deny when no other rules match.
- Ip
Rules []IPRuleResponse - The IP ACL rules.
- Virtual
Network []VirtualRules Network Rule Response - The virtual network rules.
- default
Action String - The default action of allow or deny when no other rules match.
- ip
Rules List<IPRuleResponse> - The IP ACL rules.
- virtual
Network List<VirtualRules Network Rule Response> - The virtual network rules.
- default
Action string - The default action of allow or deny when no other rules match.
- ip
Rules IPRuleResponse[] - The IP ACL rules.
- virtual
Network VirtualRules Network Rule Response[] - 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_ Sequence[Virtualrules Network Rule Response] - The virtual network rules.
- default
Action String - The default action of allow or deny when no other rules match.
- ip
Rules List<Property Map> - The IP ACL rules.
- virtual
Network List<Property Map>Rules - The virtual network rules.
Policies, PoliciesArgs
The policies for a container registry.- Quarantine
Policy Pulumi.Azure Native. Container Registry. Inputs. Quarantine Policy - The quarantine policy for a container registry.
- Retention
Policy Pulumi.Azure Native. Container Registry. Inputs. Retention Policy - The retention policy for a container registry.
- Trust
Policy Pulumi.Azure Native. Container Registry. Inputs. Trust Policy - 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.
- 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.
- 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.
- 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.
- quarantine
Policy Property Map - The quarantine policy for a container registry.
- retention
Policy Property Map - The retention policy for a container registry.
- trust
Policy Property Map - The content trust policy for a container registry.
PoliciesResponse, PoliciesResponseArgs
The policies for a container registry.- Quarantine
Policy Pulumi.Azure Native. Container Registry. Inputs. Quarantine Policy Response - The quarantine policy for a container registry.
- Retention
Policy Pulumi.Azure Native. Container Registry. Inputs. Retention Policy Response - The retention policy for a container registry.
- Trust
Policy Pulumi.Azure Native. Container Registry. Inputs. Trust Policy Response - The content trust policy for a container registry.
- Quarantine
Policy QuarantinePolicy Response - The quarantine policy for a container registry.
- Retention
Policy RetentionPolicy Response - The retention policy for a container registry.
- Trust
Policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine
Policy QuarantinePolicy Response - The quarantine policy for a container registry.
- retention
Policy RetentionPolicy Response - The retention policy for a container registry.
- trust
Policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine
Policy QuarantinePolicy Response - The quarantine policy for a container registry.
- retention
Policy RetentionPolicy Response - The retention policy for a container registry.
- trust
Policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine_
policy QuarantinePolicy Response - The quarantine policy for a container registry.
- retention_
policy RetentionPolicy Response - The retention policy for a container registry.
- trust_
policy TrustPolicy Response - The content trust policy for a container registry.
- quarantine
Policy Property Map - The quarantine policy for a container registry.
- retention
Policy Property Map - The retention policy for a container registry.
- trust
Policy Property Map - The content trust policy for a container registry.
PolicyStatus, PolicyStatusArgs
- Enabled
enabled- Disabled
disabled
- Policy
Status Enabled enabled- Policy
Status Disabled 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.
Azure Native. Container Registry. Policy Status - The value that indicates whether the policy is enabled or not.
- Status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- status
String | Policy
Status - The value that indicates whether the policy is enabled or not.
- status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- status
str | Policy
Status - 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.
Azure Native. Container Registry. Policy Status - 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 | Policy
Status - 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 | Policy
Status - 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 | Policy
Status - 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 | Policy
Status - 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.- Last
Updated stringTime - 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.
- Last
Updated stringTime - 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.
- last
Updated StringTime - 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.
- last
Updated stringTime - 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_ strtime - 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.
- last
Updated StringTime - 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.
Azure Native. Container Registry. Sku Name - 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
- Sku
Name Classic Classic- Sku
Name Basic Basic- Sku
Name Standard Standard- Sku
Name 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
- "Classic"
Classic- "Basic"
Basic- "Standard"
Standard- "Premium"
Premium
SkuResponse, SkuResponseArgs
The SKU of a container registry.StatusResponse, StatusResponseArgs
The status of an Azure resource at the time the operation was called.- Display
Status 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 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 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 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.
- display
Status 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.
Azure Native. Container Registry. Policy Status - The value that indicates whether the policy is enabled or not.
- Type
string | Pulumi.
Azure Native. Container Registry. Trust Policy Type - The type of trust policy.
- Status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- Type
string | Trust
Policy Type - The type of trust policy.
- status
String | Policy
Status - The value that indicates whether the policy is enabled or not.
- type
String | Trust
Policy Type - The type of trust policy.
- status
string | Policy
Status - The value that indicates whether the policy is enabled or not.
- type
string | Trust
Policy Type - The type of trust policy.
- status
str | Policy
Status - The value that indicates whether the policy is enabled or not.
- type
str | Trust
Policy Type - 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.TrustPolicyType, TrustPolicyTypeArgs
- Notary
Notary
- Trust
Policy Type Notary Notary
- Notary
Notary
- Notary
Notary
- NOTARY
Notary
- "Notary"
Notary
VirtualNetworkRule, VirtualNetworkRuleArgs
Virtual network rule.- Virtual
Network stringResource Id - Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- Action
string | Pulumi.
Azure Native. Container Registry. Action - The action of virtual network rule.
- Virtual
Network stringResource Id - 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 StringResource Id - 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 stringResource Id - 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_ strresource_ id - 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.
- virtual
Network StringResource Id - 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.- Virtual
Network stringResource Id - 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 stringResource Id - 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 StringResource Id - 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 stringResource Id - 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_ strresource_ id - 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.
- virtual
Network StringResource Id - 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
published on Monday, Mar 9, 2026 by Pulumi
