Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Remove the need for NSG #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion byos/containers/deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,16 @@ then
fi

# Create VM
az vm create -n internal-vm -g $teamRG --admin-username azureuser --generate-ssh-keys --public-ip-address "" --image UbuntuLTS --vnet-name vnet --subnet vm-subnet
az vm create -n internal-vm -g $teamRG --admin-username azureuser --generate-ssh-keys --public-ip-address "" --image UbuntuLTS --vnet-name vnet --subnet vm-subnet --nsg-rule NONE

if [ $? == 0 ];
then
echo "VM created successfully in subnet"
fi

# Deallocate the VM as it is only used in Challenge 3
az vm deallocate -n internal-vm -g $teamRG

# Create Azure SQL Server instance
echo "Creating Azure SQL Server instance..."
az sql server create -l $region -g $teamRG -n $sqlServerName -u $sqlServerUsername -p $sqlServerPassword
Expand Down