Show / Hide Table of Contents

Class Registry

Manages an Azure Container Registry.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
    {
        Location = "West US",
    });
    var acr = new Azure.ContainerService.Registry("acr", new Azure.ContainerService.RegistryArgs
    {
        ResourceGroupName = rg.Name,
        Location = rg.Location,
        Sku = "Premium",
        AdminEnabled = false,
        GeoreplicationLocations = 
        {
            "East US",
            "West Europe",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Registry
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.ContainerService
Assembly: Pulumi.Azure.dll
Syntax
public class Registry : CustomResource

Constructors

View Source

Registry(String, RegistryArgs, CustomResourceOptions)

Create a Registry resource with the given unique name, arguments, and options.

Declaration
public Registry(string name, RegistryArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RegistryArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdminEnabled

Specifies whether the admin user is enabled. Defaults to false.

Declaration
public Output<bool?> AdminEnabled { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

AdminPassword

The Password associated with the Container Registry Admin account - if the admin account is enabled.

Declaration
public Output<string> AdminPassword { get; }
Property Value
Type Description
Output<System.String>
View Source

AdminUsername

The Username associated with the Container Registry Admin account - if the admin account is enabled.

Declaration
public Output<string> AdminUsername { get; }
Property Value
Type Description
Output<System.String>
View Source

GeoreplicationLocations

A list of Azure locations where the container registry should be geo-replicated.

Declaration
public Output<ImmutableArray<string>> GeoreplicationLocations { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Location

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

LoginServer

The URL that can be used to log into the container registry.

Declaration
public Output<string> LoginServer { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

Specifies the name of the Container Registry. Changing this forces a new resource to be created.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

NetworkRuleSet

A network_rule_set block as documented below.

Declaration
public Output<RegistryNetworkRuleSet> NetworkRuleSet { get; }
Property Value
Type Description
Output<RegistryNetworkRuleSet>
View Source

ResourceGroupName

The name of the resource group in which to create the Container Registry. Changing this forces a new resource to be created.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>
View Source

Sku

The SKU name of the container registry. Possible values are Basic, Standard and Premium. Classic (which was previously Basic) is supported only for existing resources.

Declaration
public Output<string> Sku { get; }
Property Value
Type Description
Output<System.String>
View Source

StorageAccountId

The ID of a Storage Account which must be located in the same Azure Region as the Container Registry.

Declaration
public Output<string> StorageAccountId { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A mapping of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>

Methods

View Source

Get(String, Input<String>, RegistryState, CustomResourceOptions)

Get an existing Registry resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Registry Get(string name, Input<string> id, RegistryState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RegistryState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Registry
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.