Skip to content

Commit 25a25e5

Browse files
rut31337rut31337
andauthored
cannot delete tags now, need to reinit instead (#7784)
* cannot delete tags now * remove spaces --------- Co-authored-by: rut31337 <[email protected]>
1 parent 5db35ea commit 25a25e5

File tree

1 file changed

+2
-2
lines changed
  • ansible/roles/open-env-azure-remove-user-from-subscription/tasks

1 file changed

+2
-2
lines changed

ansible/roles/open-env-azure-remove-user-from-subscription/tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
set_fact:
121121
subscriptionfqid: "{{ assignedsubscription.subscriptions[0].fqid }}"
122122

123-
- name: Clean up all Tags on the Subscription
123+
- name: Initialize all tags we care about on the Subscription
124124
command: >
125-
az tag delete --resource-id {{ subscriptionfqid }} --yes
125+
az tag create --resource-id {{ subscriptionfqid }} --tags GUID="" EMAIL="" cost-center=""
126126
127127
- name: Get facts for management subscription by pool ID
128128
azure.azcollection.azure_rm_subscription_info:

0 commit comments

Comments
 (0)