This policy will look at a list of storage accounts and determine if lifecycle policies are enabled.
This policy checks all the Storage Accounts for a Azure Subscription. If a storage account does not have lifecycle management policies enabled it will create and incident for it.
This policy has the following input parameters required when launching the policy.
- Exclusion Tag Key - Cloud native tag key to ignore instances. Example: exclude_utilization
- Email addresses - Email addresses of the recipients you wish to notify
- Azure Endpoint - Azure Endpoint to access resources
- Subscription Whitelist - Whitelisted Subscriptions, if empty, all subscriptions will be checked
- Azure API Wait Time - Amount of time to wait between Azure API requests to avoid throttling (seconds)
- Sends an email notification
This policy uses credentials for connecting to the cloud -- in order to apply this policy you must have a credential registered in the system that is compatible with this policy. If there are no credentials listed when you apply the policy, please contact your cloud admin and ask them to register a credential that is compatible with this policy. The information below should be consulted when creating the credential.
For administrators creating and managing credentials to use with this policy, the following information is needed:
Provider tag value to match this policy: azure_rm
Required permissions in the provider:
- Microsoft.Storage/storageAccounts/read
- Azure
This Policy Template does not incur any cloud costs.