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",
},
});
}
}
Inherited Members
Namespace: Pulumi.Azure.ContainerService
Assembly: Pulumi.Azure.dll
Syntax
public class Registry : CustomResource
Constructors
View SourceRegistry(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 SourceAdminEnabled
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>> |
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> |
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> |
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>> |
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> |
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> |
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> |
NetworkRuleSet
A network_rule_set block as documented below.
Declaration
public Output<RegistryNetworkRuleSet> NetworkRuleSet { get; }
Property Value
| Type | Description |
|---|---|
| Output<RegistryNetworkRuleSet> |
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> |
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> |
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> |
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 SourceGet(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 |