Created
July 27, 2020 22:53
-
-
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"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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