Skip to content

Latest commit

 

History

History

registry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Terraform for creating a Microsoft Registry

Sometimes you need a place to put your container images. Why not use Microsoft Azure's registry?

Starts with the assumption that you will use a service principals's credentials that has appropriate role/permissions to create/destroy a Microsoft Azure Container Registry. (Note: destroying this resource does not destroy the backing bucket).

Copy sample configuration

cp terraform.tfvars.sample terraform.tfvars

Edit terraform.tfvars

Amend the values for

  • registry_name
  • location
  • resource_group_name
  • az_subscription_id
  • az_client_id
  • az_client_secret
  • az_tenant_id

Note: A resource group with resource_group_name should already exist.

Create

./create-registry.sh

Destroy

To tear it down

./destroy-registry.sh