Policy scripts do not trigger when performing operations against a Deprovisioned object
说明
When an operation is performed against a Deprovisioned object which is expected to trigger a policy script, instead, the policy is not triggered. There are no errors and no mention of the Policy in the object's Change History.
原因
Operations performed on Deprovisioned objects will not trigger anything configured in a Provisioning Policy as a script module. This is by design.
解决办法
Add the script to a Deprovisoning Policy as a script module.