Skip to content

Instantly share code, notes, and snippets.

@adriennetacke
Created July 27, 2020 22:53
Show Gist options
  • Save adriennetacke/9bbfd4e88e839d3d7f40a3005ade5b3f to your computer and use it in GitHub Desktop.
Save adriennetacke/9bbfd4e88e839d3d7f40a3005ade5b3f to your computer and use it in GitHub Desktop.
Create an Azure Container Registry via Azure CLI - Demo 1 from Adrienne Tacke's talk "Containers and You: The Azure Edition"
# Login via azure CLI
az login
# It's a good idea to dedicate a resource group to a container registry
# so that you can share images or delete containers without deleting images accidentally
# Create a resource group for your container registry
az group create --location <REPLACE-WITH-AZURE-LOCATION>
--name <REPLACE-WITH-RESOURCE-GROUP-NAME>
--subscription <REPLACE-WITH-YOUR-SUBSCRIPTION-NAME>
# Create the actual container registry
az acr create --resource-group <REPLACE-WITH-RESOURCE-GROUP-NAME-YOU-JUST-CREATED-ABOVE>
--name <REPLACE-WITH-CONTAINER-REGISTRY-NAME>
--sku <REPLACE-WITH-CHOSEN-TIER> # Choose from Basic, Classic, Premium, Standard
# When successful, you'll receive a large JSON response.
# Find and keep note of the loginServer value; this is the fully qualified registry name you'll need later on.
# Example: vacddemoregistry.azurecr.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment