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/.
Module version | Terraform version | AzureRM version |
---|---|---|
>= 1.x.x | 0.13.x | >= 2.3.0 |
Name | Version |
---|---|
terraform | >= 0.13 |
azurerm | >= 2.30.0 |
Name | Version |
---|---|
azuread | n/a |
azurerm | >= 2.30.0 |
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 |
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 |
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
terraform init
terraform plan -out acr-01.tfplan
terraform apply acr-01.tfplan