azure-policy icon indicating copy to clipboard operation
azure-policy copied to clipboard

Alias Request: "Microsoft.CDN/profiles/endpoints/originHostHeader"

Open mylameaccount opened this issue 7 years ago • 1 comments

I am requesting that an alias be created for the “originHostHeader” property of the “Microsoft.CDN/profiles/endpoints” resource type.

The scenario we are looking to audit for is for any CND Profile resource that use specific origin types (Web Apps, Blob Storage, and Cloud Services) by inspecting the Origin Host Header. Note: We prefer to have the "Origin Host Name" but not sure if that is possible. Another request will be made for this.

Resource Provider: Microsoft.CDN/profiles Resource Type: profiles/endpoints Property: “originHostHeader” Alias Name: : Microsoft.CDN/profiles/endpoints/originHostHeader"

Example policy definition

  "policyRule": {
     "if": {
       "allOf": [
         {
           "field": "type",
           "equals": "Microsoft.CDN/profiles"
         }
       ]
     },
     "then": {
   "effect": "[parameters('effect')]",
   "details": {
     "type": "Microsoft.CDN/profiles/endpoints",
     "existenceCondition": {
       "allOf": [
         {
           "field": "Microsoft.CDN/profiles/endpoints/originHostHeader",
           "notContains": "blob"
         }
       ]
     }
   }

mylameaccount avatar May 09 '19 15:05 mylameaccount

Full set of aliases for Microsoft.Cdn has been published, including Microsoft.Cdn/profiles/endpoints/originHostHeader. Please try it out.

mentat9 avatar May 15 '19 23:05 mentat9