| name | cis-azure-foundations-6.1.5 |
| description | Ensure that SKU Basic/Consumption is not used on artifacts that need to be monitored |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","logging","monitoring","sku","production-workloads"] |
| cis_id | 6.1.5 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that SKU Basic/Consumption is not used on artifacts that need to be monitored (Particularly for Production Workloads)
Description
The use of Basic or Free SKUs in Azure whilst cost effective have significant limitations in terms of what can be monitored and what support can be realized from Microsoft. Typically, these SKUs do not have a service SLA and Microsoft may refuse to provide support for them. Consequently Basic/Free SKUs should never be used for production workloads.
While an automated assessment procedure exists for this recommendation, the assessment status remains manual. Determining appropriate SKUs depends on the context and requirements of each organization and environment.
Rationale
Typically, production workloads need to be monitored and should have an SLA with Microsoft, using Basic SKUs for any deployed product will mean that these capabilities do not exist.
The following resource types should use standard SKUs as a minimum:
- Public IP Addresses
- Network Load Balancers
- REDIS Cache
- SQL PaaS Databases
- VPN Gateways
Impact
The impact of enforcing Standard SKUs is twofold:
- There will be a cost increase.
- The monitoring and service level agreements will be available and will support the production service.
All resources should be either tagged or in separate Management Groups/Subscriptions.
Audit Procedure
Using Azure Portal
- Open
Azure Resource Graph Explorer.
- Click
New query.
- Paste the following into the query window:
Resources
| where sku contains 'Basic' or sku contains 'consumption'
| order by type
- Click
Run query then evaluate the results in the results window.
- Ensure that no production artifacts are returned.
Using Azure CLI
az graph query -q "Resources | where sku contains 'Basic' or sku contains 'consumption' | order by type"
Alternatively, to filter on a specific resource group:
az graph query -q "Resources | where resourceGroup == '<resourceGroupName>' | where sku contains 'Basic' or sku contains 'consumption' | order by type"
Ensure that no production artifacts are returned.
Using PowerShell
Get-AzResource | ?{ $_.Sku -EQ "Basic"}