Skip to content

Instantly share code, notes, and snippets.

@dbafromthecold
Last active May 21, 2019 19:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbafromthecold/3d95722bd82b647e0d35b5780a85cbc9 to your computer and use it in GitHub Desktop.
Save dbafromthecold/3d95722bd82b647e0d35b5780a85cbc9 to your computer and use it in GitHub Desktop.
Azure Container Instance - Virtual Network Deployment
# create a resource group
az group create --name containers1 --location westeurope
# create a virtual network
az network vnet create --resource-group containers1 --name aci_vnet1
# list available delegations
az network vnet subnet list-available-delegations --resource-group containers1
# create a subnet
az network vnet subnet create --resource-group container1 \
--vnet-name aci_vnet1 --name aci_subnet1 \
--address-prefix 10.0.0.0/24 \
--delegation
# deploy ACI
az container create \
--resource-group containers1 \
--image mcr.microsoft.com/mssql/server:vNext-CTP2.0-ubuntu \
--name testcontainer1 \
--ports 1433 \
--vnet-name aci_vnet1 \
--subnet aci_subnet1 \
--environment-variables ACCEPT_EULA=Y SA_PASSWORD=Testing1122
# confirm ACI deployed successfully
az container show --name testcontainer1 --resource-group containers1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment