Azure Policy | How do i configure according to my need?

Ishtiaque Ahmed Rafin 186 Reputation points
2024-03-02T09:05:26.24+00:00

How can i make azure that i can only access the always free services and dont go beyond the quota. is it possible to make a policy for it and so how do i???

I want to just use the free services of azure that are available for free and dont cost anything.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,013 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sedat SALMAN 14,180 Reputation points MVP
    2024-03-02T09:41:30.0333333+00:00

    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"
        }
      }
    }
    
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.