you can use Azure Policy to establish controls and ensure you stay within the boundaries of the Azure free tier. you can use Azure Policy to create custom policies that might indirectly help manage costs by enforcing restrictions on resource types, locations, or sizes that are known to be within the free services scope.
here is a sample
{
"mode": "All",
"policyRule": {
"if": {
"not": {
"field": "type",
"in": [
"Microsoft.Compute/virtualMachines",
"Microsoft.Storage/storageAccounts",
"Microsoft.Web/sites",
"Microsoft.Sql/servers/databases"
/* Add other always-free service types here */
]
}
},
"then": {
"effect": "deny"
}
}
}