From 25a25e545696dc013e9a51fd9352b519b103d9c0 Mon Sep 17 00:00:00 2001 From: "Patrick T. Rutledge III" Date: Wed, 3 Apr 2024 07:47:17 -0500 Subject: [PATCH] cannot delete tags now, need to reinit instead (#7784) * cannot delete tags now * remove spaces --------- Co-authored-by: rut31337 --- .../tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/open-env-azure-remove-user-from-subscription/tasks/main.yml b/ansible/roles/open-env-azure-remove-user-from-subscription/tasks/main.yml index 1d953ccdb24..d0a2af9f56f 100644 --- a/ansible/roles/open-env-azure-remove-user-from-subscription/tasks/main.yml +++ b/ansible/roles/open-env-azure-remove-user-from-subscription/tasks/main.yml @@ -120,9 +120,9 @@ set_fact: subscriptionfqid: "{{ assignedsubscription.subscriptions[0].fqid }}" - - name: Clean up all Tags on the Subscription + - name: Initialize all tags we care about on the Subscription command: > - az tag delete --resource-id {{ subscriptionfqid }} --yes + az tag create --resource-id {{ subscriptionfqid }} --tags GUID="" EMAIL="" cost-center="" - name: Get facts for management subscription by pool ID azure.azcollection.azure_rm_subscription_info: