Skip to content

Commit

Permalink
DRIVERS-2411 delete Azure Virtual Network
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs committed Aug 21, 2023
1 parent ce04f21 commit 3ff0274
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .evergreen/csfle/azurekms/create-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ az vm create \
--public-ip-address "$AZUREKMS_VMNAME-PUBLIC-IP" \
--nsg "$AZUREKMS_VMNAME-NSG" \
--assign-identity $AZUREKMS_IDENTITY \
--vnet-name "$AZUREKMS_VNAME-VNET" \
>/dev/null
echo "Creating a Virtual Machine ($AZUREKMS_VMNAME) ... end"
6 changes: 6 additions & 0 deletions .evergreen/csfle/azurekms/delete-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ az network nsg delete \
--resource-group "$AZUREKMS_RESOURCEGROUP" \
-n "$AZUREKMS_VMNAME-NSG"
echo "Delete Network Security Group $AZUREKMS_VMNAME-NSG ... end"

echo "Delete Virtual Network $AZUREKMS_VMNAME-VNET ... begin"
az network vnet delete \
--resource-group "$AZUREKMS_RESOURCEGROUP" \
-n "$AZUREKMS_VMNAME-VNET"
echo "Delete Virtual Network $AZUREKMS_VMNAME-VNET ... end"

0 comments on commit 3ff0274

Please sign in to comment.