These actions can be applied to a specific resource type, such as
azure.vm, or they can be
applied to all Azure resources by using
azure.armresource as the resource type.
Perform delete operation on any ARM resource. Can be used with generic resource type armresource or on any other more specific ARM resource type supported by Cloud Custodian.Schema:
- policies: - name: delete-test-resources description: | Deletes any ARM resource with 'test' in the name resource: azure.armresource filters: - type: value name: test op: in actions: - type: delete The delete action also works with a specified resource type: .. code-block:: yaml - policies: - name: delete-test-nsg description: | Deletes any Network Security Group with 'test' in the name resource: azure.networksecuritygroup filters: - type: value name: test op: in actions: - type: delete