Skip to content

Update destroy.yml

Update destroy.yml #7

Workflow file for this run

name: Delete AVD Resource Groups
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Log into Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure CLI script
uses: azure/cli@v2
with:

Check failure on line 21 in .github/workflows/destroy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/destroy.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
azcliversion: 2.30.0
inlineScript: |
# az vm deallocate --no-wait --ids $(az vm list --query "[].id" -o tsv --resource-group rg-avd-avdn-test-use2-pool-compute)
az group delete --yes --name rg-avd-avdn-test-use2-pool-compute
az group delete --yes --name rg-avd-avdn-test-use2-service-objects
az group delete --yes --name rg-avd-avdn-test-use2-network
az group delete --yes --name rg-avd-avdn-test-use2-storage
az group delete --yes --name rg-avd-test-use2-monitoring