Viewing docs for Azure QuickStart ACR Geo Replication v0.0.3
published on Friday, Oct 15, 2021 by Ian Wahbe
published on Friday, Oct 15, 2021 by Ian Wahbe
Azure Quickstart ACR Geo Replication
I want to use the Pulumi Azure QuickStart ACR Geo Replication package (azure-quickstart-acr-geo-replication) in my project.
## Provider details
- Package: azure-quickstart-acr-geo-replication
- Version: v0.0.3
- Publisher: Ian Wahbe
- Source: pulumi
- Repository: https://github.com/pulumi/pulumi-azure-quickstart-acr-geo-replication
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/ian_wahbe/azure-quickstart-acr-geo-replication/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/ian_wahbe/azure-quickstart-acr-geo-replication/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/ian_wahbe/azure-quickstart-acr-geo-replication/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/ian_wahbe/azure-quickstart-acr-geo-replication/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Azure QuickStart ACR Geo Replication v0.0.3
published on Friday, Oct 15, 2021 by Ian Wahbe
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
})
}
Viewing docs for Azure QuickStart ACR Geo Replication v0.0.3
published on Friday, Oct 15, 2021 by Ian Wahbe
published on Friday, Oct 15, 2021 by Ian Wahbe
