I have applied deletion lock on my subscription level so that all the resource will get the locks, while revoked the access from virtual machines, azure deletion lock is preventing the IAM role deletion, Is there any way to fix it?
Asked
Active
Viewed 382 times
1 Answers
1
the only way to fix it - remove the lock, delete the assignment, reestablish the lock. Assignment is really just another resource in the ARM model. nothing you can do about it.

4c74356b41
- 69,186
- 6
- 100
- 141
-
I was thinking there should be another way, I know that will work if you delete the lock, but it is tedious to do every time – Vineesha.C Jul 03 '19 at 09:17
-
script it. there is no other way – 4c74356b41 Jul 03 '19 at 09:23
-
i suggest you accept this answer as it clearly answers your question ;) – 4c74356b41 Jul 08 '19 at 05:12