Microsoft.Cdn profiles/endpoints 2019-06-15

The profiles/endpoints resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Cdn/profiles/endpoints resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Cdn/profiles/endpoints@2019-06-15' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: parentSymbolicName
  properties: {
    contentTypesToCompress: [ 'string' ]
    deliveryPolicy: {
      description: 'string'
      rules: [
        {
          actions: [
            {
              name: 'string'
              // For remaining properties, see DeliveryRuleActionAutoGenerated objects
            }
          ]
          conditions: [
            {
              name: 'string'
              // For remaining properties, see DeliveryRuleCondition objects
            }
          ]
          name: 'string'
          order: int
        }
      ]
    }
    geoFilters: [
      {
        action: 'string'
        countryCodes: [ 'string' ]
        relativePath: 'string'
      }
    ]
    isCompressionEnabled: bool
    isHttpAllowed: bool
    isHttpsAllowed: bool
    optimizationType: 'string'
    originHostHeader: 'string'
    originPath: 'string'
    origins: [
      {
        name: 'string'
        properties: {
          hostName: 'string'
          httpPort: int
          httpsPort: int
        }
      }
    ]
    probePath: 'string'
    queryStringCachingBehavior: 'string'
    webApplicationFirewallPolicyLink: {
      id: 'string'
    }
  }
}

DeliveryRuleActionAutoGenerated objects

Set the name property to specify the type of object.

For CacheExpiration, use:

  name: 'CacheExpiration'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters'
    cacheBehavior: 'string'
    cacheDuration: 'string'
    cacheType: 'All'
  }

For CacheKeyQueryString, use:

  name: 'CacheKeyQueryString'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters'
    queryParameters: 'string'
    queryStringBehavior: 'string'
  }

For ModifyRequestHeader, use:

  name: 'ModifyRequestHeader'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters'
    headerAction: 'string'
    headerName: 'string'
    value: 'string'
  }

For ModifyResponseHeader, use:

  name: 'ModifyResponseHeader'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters'
    headerAction: 'string'
    headerName: 'string'
    value: 'string'
  }

For UrlRedirect, use:

  name: 'UrlRedirect'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters'
    customFragment: 'string'
    customHostname: 'string'
    customPath: 'string'
    customQueryString: 'string'
    destinationProtocol: 'string'
    redirectType: 'string'
  }

For UrlRewrite, use:

  name: 'UrlRewrite'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters'
    destination: 'string'
    preserveUnmatchedPath: bool
    sourcePattern: 'string'
  }

DeliveryRuleCondition objects

Set the name property to specify the type of object.

For Cookies, use:

  name: 'Cookies'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    selector: 'string'
    transforms: [ 'string' ]
  }

For HttpVersion, use:

  name: 'HttpVersion'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'Equal'
  }

For IsDevice, use:

  name: 'IsDevice'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'Equal'
    transforms: [ 'string' ]
  }

For PostArgs, use:

  name: 'PostArgs'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    selector: 'string'
    transforms: [ 'string' ]
  }

For QueryString, use:

  name: 'QueryString'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For RemoteAddress, use:

  name: 'RemoteAddress'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For RequestBody, use:

  name: 'RequestBody'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For RequestHeader, use:

  name: 'RequestHeader'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    selector: 'string'
    transforms: [ 'string' ]
  }

For RequestMethod, use:

  name: 'RequestMethod'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'Equal'
  }

For RequestScheme, use:

  name: 'RequestScheme'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'Equal'
  }

For RequestUri, use:

  name: 'RequestUri'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For UrlFileExtension, use:

  name: 'UrlFileExtension'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For UrlFileName, use:

  name: 'UrlFileName'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

For UrlPath, use:

  name: 'UrlPath'
  parameters: {
    @odata.type: '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters'
    matchValues: [ 'string' ]
    negateCondition: bool
    operator: 'string'
    transforms: [ 'string' ]
  }

Property values

profiles/endpoints

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Cdn/profiles/endpoints'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2019-06-15'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
location Resource location. string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
parentSymbolicName
properties The JSON object that contains the properties required to create an endpoint. EndpointProperties

EndpointProperties

Name Description Value
contentTypesToCompress List of content types on which compression applies. The value should be a valid MIME type. string[]
deliveryPolicy A policy that specifies the delivery rules to be used for an endpoint. EndpointPropertiesUpdateParametersDeliveryPolicy
geoFilters List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/ GeoFilter[]
isCompressionEnabled Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB. bool
isHttpAllowed Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. bool
isHttpsAllowed Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed. bool
optimizationType Specifies what scenario the customer wants this CDN endpoint to optimize, e.g. Download, Media services. With this information we can apply scenario driven optimization. 'DynamicSiteAcceleration'
'GeneralMediaStreaming'
'GeneralWebDelivery'
'LargeFileDownload'
'VideoOnDemandMediaStreaming'
originHostHeader The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. string
originPath A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. string
origins The source of the content being delivered via CDN. DeepCreatedOrigin[] (required)
probePath Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. string
queryStringCachingBehavior Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. 'BypassCaching'
'IgnoreQueryString'
'NotSet'
'UseQueryString'
webApplicationFirewallPolicyLink Defines the Web Application Firewall policy for the endpoint (if applicable) EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink

EndpointPropertiesUpdateParametersDeliveryPolicy

Name Description Value
description User-friendly description of the policy. string
rules A list of the delivery rules. DeliveryRule[] (required)

DeliveryRule

Name Description Value
actions A list of actions that are executed when all the conditions of a rule are satisfied. DeliveryRuleActionAutoGenerated[] (required)
conditions A list of conditions that must be matched for the actions to be executed DeliveryRuleCondition[]
name Name of the rule string
order The order in which the rules are applied for the endpoint. Possible values {0,1,2,3,………}. A rule with a lesser order will be applied before a rule with a greater order. Rule with order 0 is a special rule. It does not require any condition and actions listed in it will always be applied. int (required)

DeliveryRuleActionAutoGenerated

Name Description Value
name Set the object type CacheExpiration
CacheKeyQueryString
ModifyRequestHeader
ModifyResponseHeader
UrlRedirect
UrlRewrite

DeliveryRuleCacheExpirationAction

Name Description Value
name The name of the action for the delivery rule. 'CacheExpiration'
parameters Defines the parameters for the cache expiration action. CacheExpirationActionParameters (required)

CacheExpirationActionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheExpirationActionParameters'
cacheBehavior Caching behavior for the requests 'BypassCache'
'Override'
'SetIfMissing'
cacheDuration The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss string
cacheType The level at which the content needs to be cached. 'All'

DeliveryRuleCacheKeyQueryStringAction

Name Description Value
name The name of the action for the delivery rule. 'CacheKeyQueryString'
parameters Defines the parameters for the cache-key query string action. CacheKeyQueryStringActionParameters (required)

CacheKeyQueryStringActionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleCacheKeyQueryStringBehaviorActionParameters'
queryParameters query parameters to include or exclude (comma separated). string
queryStringBehavior Caching behavior for the requests 'Exclude'
'ExcludeAll'
'Include'
'IncludeAll'

DeliveryRuleRequestHeaderAction

Name Description Value
name The name of the action for the delivery rule. 'ModifyRequestHeader'
parameters Defines the parameters for the request header action. HeaderActionParameters (required)

HeaderActionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleHeaderActionParameters'
headerAction Action to perform 'Append'
'Delete'
'Overwrite'
headerName Name of the header to modify string (required)
value Value for the specified action string

DeliveryRuleResponseHeaderAction

Name Description Value
name The name of the action for the delivery rule. 'ModifyResponseHeader'
parameters Defines the parameters for the request header action. HeaderActionParameters (required)

UrlRedirectAction

Name Description Value
name The name of the action for the delivery rule. 'UrlRedirect'
parameters Defines the parameters for the url redirect action. UrlRedirectActionParameters (required)

UrlRedirectActionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRedirectActionParameters'
customFragment Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #. string
customHostname Host to redirect. Leave empty to use the incoming host as the destination host. string
customPath The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path. string
customQueryString The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in {key}={value} format. ? and & will be added automatically so do not include them. string
destinationProtocol Protocol to use for the redirect. The default value is MatchRequest 'Http'
'Https'
'MatchRequest'
redirectType The redirect type the rule will use when redirecting traffic. 'Found'
'Moved'
'PermanentRedirect'
'TemporaryRedirect'

UrlRewriteAction

Name Description Value
name The name of the action for the delivery rule. 'UrlRewrite'
parameters Defines the parameters for the url rewrite action. UrlRewriteActionParameters (required)

UrlRewriteActionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlRewriteActionParameters'
destination Define the destination path for be used in the rewrite. This will overwrite the source pattern string (required)
preserveUnmatchedPath If True, the remaining path after the source pattern will be appended to the new destination path. bool
sourcePattern define a request URI pattern that identifies the type of requests that may be rewritten. Currently, source pattern uses a prefix-based match. To match all URL paths, use "/" as the source pattern value. To match only the root directory and re-write this path, use the origin path field string (required)

DeliveryRuleCondition

Name Description Value
name Set the object type Cookies
HttpVersion
IsDevice
PostArgs
QueryString
RemoteAddress
RequestBody
RequestHeader
RequestMethod
RequestScheme
RequestUri
UrlFileExtension
UrlFileName
UrlPath

DeliveryRuleCookiesCondition

Name Description Value
name The name of the condition for the delivery rule. 'Cookies'
parameters Defines the parameters for Cookies match conditions CookiesMatchConditionParameters (required)

CookiesMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
selector Name of Cookies to be matched string
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleHttpVersionCondition

Name Description Value
name The name of the condition for the delivery rule. 'HttpVersion'
parameters Defines the parameters for HttpVersion match conditions HttpVersionMatchConditionParameters (required)

HttpVersionMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Equal'

DeliveryRuleIsDeviceCondition

Name Description Value
name The name of the condition for the delivery rule. 'IsDevice'
parameters Defines the parameters for IsDevice match conditions IsDeviceMatchConditionParameters (required)

IsDeviceMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleIsDeviceConditionParameters'
matchValues The match value for the condition of the delivery rule String array containing any of:
'Desktop'
'Mobile'
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Equal'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRulePostArgsCondition

Name Description Value
name The name of the condition for the delivery rule. 'PostArgs'
parameters Defines the parameters for PostArgs match conditions PostArgsMatchConditionParameters (required)

PostArgsMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRulePostArgsConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
selector Name of PostArg to be matched string
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleQueryStringCondition

Name Description Value
name The name of the condition for the delivery rule. 'QueryString'
parameters Defines the parameters for QueryString match conditions QueryStringMatchConditionParameters (required)

QueryStringMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleQueryStringConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleRemoteAddressCondition

Name Description Value
name The name of the condition for the delivery rule. 'RemoteAddress'
parameters Defines the parameters for RemoteAddress match conditions RemoteAddressMatchConditionParameters (required)

RemoteAddressMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRemoteAddressConditionParameters'
matchValues Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match. string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'GeoMatch'
'IPMatch'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleRequestBodyCondition

Name Description Value
name The name of the condition for the delivery rule. 'RequestBody'
parameters Defines the parameters for RequestBody match conditions RequestBodyMatchConditionParameters (required)

RequestBodyMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestBodyConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleRequestHeaderCondition

Name Description Value
name The name of the condition for the delivery rule. 'RequestHeader'
parameters Defines the parameters for RequestHeader match conditions RequestHeaderMatchConditionParameters (required)

RequestHeaderMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestHeaderConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
selector Name of Header to be matched string
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleRequestMethodCondition

Name Description Value
name The name of the condition for the delivery rule. 'RequestMethod'
parameters Defines the parameters for RequestMethod match conditions RequestMethodMatchConditionParameters (required)

RequestMethodMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestMethodConditionParameters'
matchValues The match value for the condition of the delivery rule String array containing any of:
'DELETE'
'GET'
'HEAD'
'OPTIONS'
'POST'
'PUT'
'TRACE'
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Equal'

DeliveryRuleRequestSchemeCondition

Name Description Value
name The name of the condition for the delivery rule. 'RequestScheme'
parameters Defines the parameters for RequestScheme match conditions RequestSchemeMatchConditionParameters (required)

RequestSchemeMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestSchemeConditionParameters'
matchValues The match value for the condition of the delivery rule String array containing any of:
'HTTP'
'HTTPS'
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Equal'

DeliveryRuleRequestUriCondition

Name Description Value
name The name of the condition for the delivery rule. 'RequestUri'
parameters Defines the parameters for RequestUri match conditions RequestUriMatchConditionParameters (required)

RequestUriMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleRequestUriConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleUrlFileExtensionCondition

Name Description Value
name The name of the condition for the delivery rule. 'UrlFileExtension'
parameters Defines the parameters for UrlFileExtension match conditions UrlFileExtensionMatchConditionParameters (required)

UrlFileExtensionMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFileExtensionMatchConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleUrlFileNameCondition

Name Description Value
name The name of the condition for the delivery rule. 'UrlFileName'
parameters Defines the parameters for UrlFilename match conditions UrlFileNameMatchConditionParameters (required)

UrlFileNameMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlFilenameConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

DeliveryRuleUrlPathCondition

Name Description Value
name The name of the condition for the delivery rule. 'UrlPath'
parameters Defines the parameters for UrlPath match conditions UrlPathMatchConditionParameters (required)

UrlPathMatchConditionParameters

Name Description Value
@odata.type '#Microsoft.Azure.Cdn.Models.DeliveryRuleUrlPathMatchConditionParameters'
matchValues The match value for the condition of the delivery rule string[]
negateCondition Describes if this is negate condition or not bool
operator Describes operator to be matched 'Any'
'BeginsWith'
'Contains'
'EndsWith'
'Equal'
'GreaterThan'
'GreaterThanOrEqual'
'LessThan'
'LessThanOrEqual'
'Wildcard'
transforms List of transforms String array containing any of:
'Lowercase'
'Uppercase'

GeoFilter

Name Description Value
action Action of the geo filter, i.e. allow or block access. 'Allow'
'Block'
countryCodes Two letter country codes defining user country access in a geo filter, e.g. AU, MX, US. string[] (required)
relativePath Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.) string (required)

DeepCreatedOrigin

Name Description Value
name Origin name string (required)
properties Properties of the origin created on the CDN endpoint. DeepCreatedOriginProperties

DeepCreatedOriginProperties

Name Description Value
hostName The address of the origin. It can be a domain name, IPv4 address, or IPv6 address. string (required)
httpPort The value of the HTTP port. Must be between 1 and 65535 int
httpsPort The value of the HTTPS port. Must be between 1 and 65535 int
Name Description Value
id Resource ID. string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
eShop Website with ILB ASE

Deploy to Azure
An App Service Environment is a Premium service plan option of Azure App Service that provides a fully isolated and dedicated environment for securely running Azure App Service apps at high scale, including Web Apps, Mobile Apps, and API Apps.
Create a CDN Profile and a CDN Endpoint with parameters

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with parameterized configuration settings
Create a CDN Profile and a CDN Endpoint with custom origin

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN.
Create a CDN Endpoint with cache override through Rules

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also configures rules engine with a path based rule and overrides cache expiration.
Create a CDN Endpoint with response header addition

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also configures rules engine with Remote address based match and adds corresponding response headers.
Create a CDN Endpoint with rewrite and redirect rules

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also configures rules engine device based path rewrite and request scheme based redirect.
Create a CDN Endpoint with UrlSigning action

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also configures rules engine UrlSigning action for default and override parameters.
Create a CDN Profile, Endpoint and a Storage Account

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with origin as a Storage Account. Note that user needs to create a public container in the Storage Account in order for CDN Endpoint to serve content from the Storage Account.
Apply a WAF Policy with custom rules to a CDN Endpoint

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also links a CDN WAF Policy to the Endpoint which applies example custom rules for blocking and redirecting requests based on geo-location, ip address, and SESSIONID header.
Apply a WAF Policy for the OWASP top 10 to a CDN Endpoint

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also links a CDN WAF Policy to the Endpoint which applies the managed rule set DefaultRuleSet_1.0.
Apply a WAF Policy with rate limit rules to a CDN Endpoint

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a user specified origin and all of our most commonly used settings on CDN. This template also links a CDN WAF Policy to the Endpoint which applies example rate limit rules for blocking and redirecting rate-limited requests.
Create a CDN Profile, a CDN Endpoint and a Web App

Deploy to Azure
This template creates a CDN Profile and a CDN Endpoint with a Web App as the origin