Using this Setup you can:
- Deploy ACR
- Get ACR information
- Delete ACR
Requirements
- Azure subscription
- Landing Zone
- Azure CLI - az
- Environment Variables
# Required Environment Variables
# Define if not defined or override the values of required environments variables.
# You can write them in a file and run "source ${filename}" for reuse.
export RESOURCE_GROUP=demok8singress # AKS resource group
export REGION_NAME=westeurope
export ACR_NAME=acr123ZYX #
export RESOURCE_GROUP_ACR=${RESOURCE_GROUP}
#
# Set Azure login method
# Options: interactive, device, serviceprincipal, managedidentity
export AZLOGINTYPE=interactive
# If serviceprincipal is selected, then first create a service principal with proper role and set SP_APPID SP_PASSWD AADTENANT variables
# Reference: https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli
# export AZLOGINTYPE=serviceprincipal
# export SP_APPID=******
# export SP_PASSWD=******
# export AADTENANT=******
Reference
## Make setup.sh executable
chmod +x ./setup.sh
## To see available setup.sh options
./setup.sh help
## Deploy ACR
# Notice: Running deploy requires owner role for authentication identity which may require additional permissions for serviceprincipal azure login method. Try interactive login as a quick workaround with a owner user
./setup.sh deploy
## Review ACR info
./setup.sh status
## Delete ACR
./setup erase