Skip to content

tlhumphrey2/terraform-azurerm-container-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Container Registry

This repo contains an example Terraform configuration that deploys an Azure Container Registry. For more info, please see https://docs.microsoft.com/en-us/azure/container-registry/.

Version compatibility

Module version Terraform version AzureRM version
>= 1.x.x 0.13.x >= 2.3.0

Example Usage

Requirements

Name Version
terraform >= 0.13
azurerm >= 2.30.0

Providers

Name Version
azuread n/a
azurerm >= 2.30.0

Inputs

Name Description Type Default Required
ad_groups The ad groups of the resource. map(list(string)) {} no
admin_enabled Specifies whether the admin user is enabled. bool true no
georeplication_locations A list of Azure locations where the container registry should be geo-replicated. The georeplication_locations is only supported on new resources with the Premium SKU. list(string) null no
location Location for all resources string n/a yes
names Names to be applied to resources map(string) n/a yes
resource_group_name Resource group name string n/a yes
sku The SKU name of the container registry. Possible values are Basic, Standard and Premium string "Basic" no
tags Tags to be applied to resources map(string) n/a yes

Outputs

Name Description
acr_id ID of azure container registry
acr_name Name of azure container registry
admin_password Password for azure container registry
admin_username Username for azure container registry
login_server Login server for azure container registry

Quick start

1.Install Terraform.
2.Sign into your Azure Account

# Login with the Azure CLI/bash terminal/powershell by running
az login

# Verify access by running
az account show --output jsonc

# Confirm you are running required/pinned version of terraform
terraform version

Deploy the code

terraform init
terraform plan -out acr-01.tfplan
terraform apply acr-01.tfplan

About

creates a ACR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages