Skip to content

Instantly share code, notes, and snippets.

View jeffnelson1's full-sized avatar

Jeffrey Nelson jeffnelson1

  • Greater Chicago Area
View GitHub Profile
@jeffnelson1
jeffnelson1 / aci-container-az-cli.sh
Last active February 25, 2022 02:57
Deploy a contain via Azure Container Instance
az container create \
--resource-group container-rg \
--name acitest01 \
--image $ACR_NAME.azurecr.io/helloacrtasks:v1 \
--registry-login-server $ACR_NAME.azurecr.io \
--ip-address Public \
--location eastus \
--registry-username "user1" \
--registry-password "pass"
@jeffnelson1
jeffnelson1 / ubuntu-vm-az-cli.sh
Last active February 25, 2022 02:52
Deploy Ubuntu VM via Az CLI
az vm create -n "ubuntu-2" \
-g "rg-linuxvms-test" \
--location "centralus" \
--image "ubuntu-LTS" \
--vnet-name "vnet-lab-01" \
--subnet "app" \
--ssh-key-name "linux-lab" \
--size "Standard_B1s" \
--public-ip-sku "Standard" \
--admin-username "azureuser"
@jeffnelson1
jeffnelson1 / centos-vm-az-cli.sh
Created February 25, 2022 02:49
Deploy CentOS VM via Az CLI
vm create -n "centos-2" \
-g "rg-linuxvms-test" \
--location "centralus" \
--image "CentOS" \
--vnet-name "vnet-lab-01" \
--subnet "app" \
--ssh-key-name "linux-lab" \
--size "Standard_B1s" \
--public-ip-sku "Standard" \
--admin-username "azureuser"