Skip to content

Commit

Permalink
update create instructions to force standard security type for overri…
Browse files Browse the repository at this point in the history
…ding the base image and matching current deployments. delete current image step added.
  • Loading branch information
anixon604 committed Mar 26, 2024
1 parent 07d3b4a commit a4c8513
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/runner-scripts/create-vm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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-<get uuid from azure> --yes --no-wait
az network nic delete --resource-group Testnet --name MakeImageVMVMNIC --no-wait

0 comments on commit a4c8513

Please sign in to comment.