Registry
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" },
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The value that indicates whether the admin user is enabled.
Link copied to clipboard
The creation date of the container registry in ISO8601 format.
Link copied to clipboard
The URL that can be used to log into the container registry.
Link copied to clipboard
The network rule set for a container registry.
Link copied to clipboard
The policies for a container registry.
Link copied to clipboard
The provisioning state of the container registry at the time the operation was called.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The SKU of the container registry.
Link copied to clipboard
The status of the container registry at the time the operation was called.
Link copied to clipboard
The properties of the storage account for the container registry. Only applicable to Classic SKU.