Azure QuickStart ACR Geo Replication v0.0.3 published on Friday, Oct 15, 2021 by Ian Wahbe
Azure Quickstart ACR Geo Replication
Azure QuickStart ACR Geo Replication v0.0.3 published on Friday, Oct 15, 2021 by Ian Wahbe
Easily create Azure ACR Registries that are replicated across Azure locations as a package available in all Pulumi languages.
Example
import * as acr from "@pulumi/azure-quickstart-acr-geo-replication";
import * as resources from "@pulumi/azure-native/resources";
const resourceGroup = new resources.ResourceGroup("resourceGroup");
const registry = new acr.ReplicatedRegistry("registry", {
name: "registry",
replicationLocation: "westus",
resourceGroupName: resourceGroup.name,
});
export const login = registry.loginServer;
export const underlying_registry_id = registry.registry.id;
import pulumi
from pulumi_azure_native import resources
from pulumi_azure_quickstart_acr_geo_replication import Registry
# Create an Azure Resource Group
resource_group = resources.ResourceGroup('resource_group')
# Create an Azure resource (Storage Account)
registry = ReplicatedRegistry('registry',
name="registry",
resource_group_name=resource_group.name,
replication_location="westus")
pulumi.export("login", registry.login_server_out)
pulumi.export("underlying_registry_id", registry.registry.Id)
package main
import (
"github.com/pulumi/pulumi-azure-native/sdk/go/azure/resources"
acr "github.com/pulumi/pulumi-azure-quickstart-acr-geo-replication/sdk/go/azure"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
resourceGroup, err := resources.NewResourceGroup(ctx, "resourceGroup", nil)
if err != nil {
return err
}
registry, err := acr.NewReplicatedRegistry(ctx, "registry", &acr.ReplicatedRegistryArgs{
Name: "registry",
ReplicationLocation: "westus",
ResourceGroupName: resourceGroup.Name,
})
if err != nil {
return err
}
ctx.Export("login", registry.LoginServer)
return nil
})
}
Azure QuickStart ACR Geo Replication v0.0.3 published on Friday, Oct 15, 2021 by Ian Wahbe