From ac78f1f902657336022282c2dc7020d757de02fc Mon Sep 17 00:00:00 2001 From: Kien Do <67518620+kienmarkdo@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:21:22 -0500 Subject: [PATCH] Update T1078.004.yaml (#2991) Update cleanup section --- atomics/T1078.004/T1078.004.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atomics/T1078.004/T1078.004.yaml b/atomics/T1078.004/T1078.004.yaml index db03142cc7..ce318ae359 100644 --- a/atomics/T1078.004/T1078.004.yaml +++ b/atomics/T1078.004/T1078.004.yaml @@ -117,8 +117,8 @@ atomic_tests: elevation_required: false cleanup_command: | Remove-AzAutomationRunbook -AutomationAccountName #{automation_account_name} -Name #{runbook_name} -ResourceGroupName #{resource_group} -Force - Remove-AzAutomationAccount -ResourceGroupName "MarkResourceGroup" -Name "MarkAutomationAccountName" -Force - Remove-AzResourceGroup -Name "MarkResourceGroup" -Force + Remove-AzAutomationAccount -ResourceGroupName #{resource_group} -Name #{automation_account_name} -Force + Remove-AzResourceGroup -Name #{resource_group} -Force echo "Cleanup should be completed. Run 'terraform destroy` to ensure remaining resources are also deleted." cd "$PathToAtomicsFolder/T1078.004/src/T1078.004-2/" terraform destroy -auto-approve