title: Azure mandatory Tag
body: <p>help me to make the mandatory tag using azure policy and users are not allowed to give their own tag name. the below code mandatory the mentioned tags and not to control the disallowed other tags</p>
  <pre><code>{   
    &quot;mode&quot;: &quot;All&quot;,   
    &quot;policyRule&quot;: {   
      &quot;if&quot;: {  
        &quot;anyOf&quot;: [  
          {  
            &quot;field&quot;: &quot;tags['environment']&quot;,  
            &quot;exists&quot;: &quot;false&quot;  
          },  
          {  
            &quot;field&quot;: &quot;tags['Location']&quot;,  
            &quot;exists&quot;: &quot;false&quot;  
          }  
        ]  
      },  
      &quot;then&quot;: {  
        &quot;effect&quot;: &quot;deny&quot;  
      }  
    },  
    &quot;parameters&quot;: {}   
  }  
    
  </code></pre>