Open tomarv2 opened 5 years ago
I think in resourcepolicy.py
there should be a try and catch somewhere herein:
def _process_resource(self, group):
self.manager.log.info('Removing resource group ' + group['name'])
self.manager.get_client().resource_groups.delete(group['name'])
Trying this policy: https://cloudcustodian.io/docs/azure/examples/resourcegroupsremoveempty-general.html
Running a policy to remove empty resource group. I except it to continue and ignore what does not exist.