Skip to content

Commit

Permalink
wip fixing arm template
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanIakovlev committed Oct 25, 2024
1 parent afd7418 commit 6022b70
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,36 @@ jobs:
with:
creds: ${{ secrets.VM_INT_AZURE_CREDENTIALS }}

- name: Print current directory
run: echo $PWD && ls -al

- name: Cleanup VM and Resources
uses: azure/[email protected]
with:
inlineScript: |
# Delete the VM first
az vm delete \
--resource-group integration-test-vm \
--name ${{ github.event.inputs.vm_name }} \
--yes
# Delete the NIC
az network nic delete \
--resource-group integration-test-vm \
--name ${{ github.event.inputs.vm_name }}-nic
# Delete the Public IP
az network public-ip delete \
--resource-group integration-test-vm \
--name ${{ github.event.inputs.vm_name }}-ip
# Delete the NSG
az network nsg delete \
--resource-group integration-test-vm \
--name ${{ github.event.inputs.vm_name }}-nsg
# Delete the VNet
az network vnet delete \
--resource-group integration-test-vm \
--name ${{ github.event.inputs.vm_name }}-vnet
- name: Create VM with NSG
id: create_vm
uses: azure/arm-deploy@v2
Expand Down

0 comments on commit 6022b70

Please sign in to comment.