ConnectedRegistry

class ConnectedRegistry : KotlinCustomResource

An object that represents a connected registry for a container registry. Uses Azure REST API version 2024-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-01-01-preview. Other available API versions: 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview, 2023-01-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-11-01-preview, 2025-03-01-preview, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ConnectedRegistryCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var connectedRegistry = new AzureNative.ContainerRegistry.ConnectedRegistry("connectedRegistry", new()
{
ClientTokenIds = new[]
{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token",
},
ConnectedRegistryName = "myConnectedRegistry",
GarbageCollection = new AzureNative.ContainerRegistry.Inputs.GarbageCollectionPropertiesArgs
{
Enabled = true,
Schedule = "0 5 * * *",
},
Mode = AzureNative.ContainerRegistry.ConnectedRegistryMode.ReadWrite,
NotificationsList = new[]
{
"hello-world:*:*",
"sample/repo/*:1.0:*",
},
Parent = new AzureNative.ContainerRegistry.Inputs.ParentPropertiesArgs
{
SyncProperties = new AzureNative.ContainerRegistry.Inputs.SyncPropertiesArgs
{
MessageTtl = "P2D",
Schedule = "0 9 * * *",
SyncWindow = "PT3H",
TokenId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken",
},
},
RegistryName = "myRegistry",
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := containerregistry.NewConnectedRegistry(ctx, "connectedRegistry", &containerregistry.ConnectedRegistryArgs{
ClientTokenIds: pulumi.StringArray{
pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token"),
},
ConnectedRegistryName: pulumi.String("myConnectedRegistry"),
GarbageCollection: &containerregistry.GarbageCollectionPropertiesArgs{
Enabled: pulumi.Bool(true),
Schedule: pulumi.String("0 5 * * *"),
},
Mode: pulumi.String(containerregistry.ConnectedRegistryModeReadWrite),
NotificationsList: pulumi.StringArray{
pulumi.String("hello-world:*:*"),
pulumi.String("sample/repo/*:1.0:*"),
},
Parent: &containerregistry.ParentPropertiesArgs{
SyncProperties: &containerregistry.SyncPropertiesArgs{
MessageTtl: pulumi.String("P2D"),
Schedule: pulumi.String("0 9 * * *"),
SyncWindow: pulumi.String("PT3H"),
TokenId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"),
},
},
RegistryName: pulumi.String("myRegistry"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.ConnectedRegistry;
import com.pulumi.azurenative.containerregistry.ConnectedRegistryArgs;
import com.pulumi.azurenative.containerregistry.inputs.GarbageCollectionPropertiesArgs;
import com.pulumi.azurenative.containerregistry.inputs.ParentPropertiesArgs;
import com.pulumi.azurenative.containerregistry.inputs.SyncPropertiesArgs;
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 connectedRegistry = new ConnectedRegistry("connectedRegistry", ConnectedRegistryArgs.builder()
.clientTokenIds("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")
.connectedRegistryName("myConnectedRegistry")
.garbageCollection(GarbageCollectionPropertiesArgs.builder()
.enabled(true)
.schedule("0 5 * * *")
.build())
.mode("ReadWrite")
.notificationsList(
"hello-world:*:*",
"sample/repo/*:1.0:*")
.parent(ParentPropertiesArgs.builder()
.syncProperties(SyncPropertiesArgs.builder()
.messageTtl("P2D")
.schedule("0 9 * * *")
.syncWindow("PT3H")
.tokenId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken")
.build())
.build())
.registryName("myRegistry")
.resourceGroupName("myResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerregistry:ConnectedRegistry myConnectedRegistry /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}

//*/

Properties

Link copied to clipboard

The activation properties of the connected registry.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val clientTokenIds: Output<List<String>>?

The list of the ACR token resource IDs used to authenticate clients to the connected registry.

Link copied to clipboard
val connectionState: Output<String>

The current connection state of the connected registry.

Link copied to clipboard

The garbage collection properties of the connected registry.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The last activity time of the connected registry.

Link copied to clipboard

The logging properties of the connected registry.

Link copied to clipboard

The login server properties of the connected registry.

Link copied to clipboard
val mode: Output<String>

The mode of the connected registry resource that indicates the permissions of the registry.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

The list of notifications subscription information for the connected registry.

Link copied to clipboard

The parent of the connected registry.

Link copied to clipboard

Provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The list of current statuses of the connected registry.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

The current version of ACR runtime on the connected registry.