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 SKUβs 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.
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 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 SKU's 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β
This needs to be audited by Azure Policy (one for each resource type) and denied for each artifact that is production.
From 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.
From 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.
From PowerShellβ
Get-AzResource | ?{ $_.Sku -EQ "Basic"}
Ensure that no production artifacts are returned.
Default Valueβ
Policy should enforce standard SKUs for the following artifacts:
- Public IP Addresses
- Network Load Balancers
- REDIS Cache
- SQL PaaS Databases
- VPN Gateways