Last active
May 21, 2019 19:06
-
-
Save dbafromthecold/3d95722bd82b647e0d35b5780a85cbc9 to your computer and use it in GitHub Desktop.
Azure Container Instance - Virtual Network Deployment
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
# 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