From a4c8513f90ed995cd9a9dac3dce48e34538c7c68 Mon Sep 17 00:00:00 2001 From: Anthony Nixon Date: Mon, 25 Mar 2024 20:05:58 +0000 Subject: [PATCH] update create instructions to force standard security type for overriding the base image and matching current deployments. delete current image step added. --- .github/workflows/runner-scripts/create-vm.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/runner-scripts/create-vm.txt b/.github/workflows/runner-scripts/create-vm.txt index e1a7bfe128..914fd1778b 100644 --- a/.github/workflows/runner-scripts/create-vm.txt +++ b/.github/workflows/runner-scripts/create-vm.txt @@ -5,6 +5,7 @@ az vm create \ --resource-group Testnet \ --name MakeImageVM \ --image Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:20.04.202206220 \ + --security-type 'Standard' \ --admin-username obscurouser --admin-password 'PWD' ssh obscurouser@IPADDRESS @@ -18,9 +19,10 @@ exit az vm deallocate --resource-group Testnet --name MakeImageVM az vm generalize --resource-group Testnet --name MakeImageVM +az image delete --resource-group Testnet --name ObscuroConfUbuntu az image create --resource-group Testnet --name ObscuroConfUbuntu --source MakeImageVM --hyper-v-generation V2 az vm delete --resource-group Testnet --name MakeImageVM --yes -az disk delete --resource-group Testnet --name MakeImageVM_OSDisk --yes -az network nic delete --resource-group Testnet --name MakeImageVM_NIC +az disk delete --resource-group Testnet --name MakeImageVM_OsDisk- --yes --no-wait +az network nic delete --resource-group Testnet --name MakeImageVMVMNIC --no-wait