Skip to content

Instantly share code, notes, and snippets.

@neidiom
Forked from jonahgeorge/01-azure-cli.sh
Created April 5, 2018 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neidiom/5332c18fb8f8317e54008bb51038afcf to your computer and use it in GitHub Desktop.
Save neidiom/5332c18fb8f8317e54008bb51038afcf to your computer and use it in GitHub Desktop.
Azure Kubernetes
# Install Azure CLI
brew update
brew install azure-cli
# Authenticate cli client
az login
# Register providers
az provider register -n Microsoft.ContainerService
az provider register -n Microsoft.Compute
az provider register -n Microsoft.Storage
az provider register -n Microsoft.Network
# Wait for providers to finish registering
az provider list --query "[].{Provider:namespace, Status:registrationState}" --out table
# List locations
az account list-locations
# Create ResourceGroup
az group create -l eastus -g forge
# Create Kubernetes Cluster
az aks create \
--resource-group forge \
--name forge \
--node-vm-size Standard_A0 \
--kubernetes-version 1.9.2
# Get
az aks get-credentials --resource-group forge --name forge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment