From 6324cd46c62931cf1fbaab978bacafd6a6024536 Mon Sep 17 00:00:00 2001 From: Markus Heiliger Date: Wed, 13 Jan 2021 15:11:22 -0800 Subject: [PATCH] .... --- sonarqubeVM/reset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarqubeVM/reset.sh b/sonarqubeVM/reset.sh index 7ad0b30..df6b33d 100755 --- a/sonarqubeVM/reset.sh +++ b/sonarqubeVM/reset.sh @@ -16,7 +16,7 @@ if [ ! -z "$ComponentResourceGroup" ]; then echo "$(az vm list --subscription $ComponentSubscription -g $ComponentResourceGroup --query "[].name" -o tsv)" | while read VMNAME; do az vm extension list --subscription $ComponentSubscription -g $ComponentResourceGroup --vm-name $VMNAME - IDS=$(az vm extension list --subscription $ComponentSubscription -g $ComponentResourceGroup --vm-name $VMNAME --query '[?typePropertiesType == "CustomScript"].id' -o tsv) + IDS="$(az vm extension list --subscription $ComponentSubscription -g $ComponentResourceGroup --vm-name $VMNAME --query "[?typePropertiesType == 'CustomScript'].id" -o tsv)" echo "- VM: $VMNAME ($IDS)" [ ! -z "$IDS" ] && az vm extension delete --ids ${IDS} # delete all custom script extensions so we can rerun out deployment template with failing because of conflicts