azure::cdn-profile

Creates a cdn profile.

Example

azure::cdn-profile cdn-profile-example
    name: "cdn-profile-example"
    resource-group: $(azure::resource-group resource-group-cdn-profile-example)
    sku: "Standard_Akamai"
    tags: {
        Name: "cdn-profile-example"
    }
end

Attributes

Attribute Description
name The name of the CDN Profile. (Required)
resource-group The resource group where the CDN Profile is found. (Required)
sku The sku of the CDN Profile. Valid values are Premium_Verizon, Standard_Verizon, Standard_Akamai or Standard_Microsoft. (Required)
tags map The tags associated with the CDN Profile.
endpoint set subresource

A set of endpoints for the CDN Profile.

compression-enabled
Determines whether compression is enabled.
content-types-to-compress set
Determines what content types to be compressed. Used if compression is enabled. (Conditional)
custom-domains set
Determines what custom domains are associated with the endpoint.
geo-filter set subresource

The set of geo-filters associated with the endpoint.

action
The action to be taken. Valid values are ALLOW or BLOCK. (Required)
country-codes set
The country codes that will either be allowed content or be blocked. (Required)
relative-path
The relative path of the content. (Required)
host-header
The host header of the endpoint.
http-enabled
Determines whether http protocol is enabled. Defaults to false.
http-port
The http port. Required if http protocol is enabled.
https-enabled
Determines whether https protocol is enabled. Defaults to false.
https-port
The https port. Required if https port is allowed.
origin-path
The origin path.
name
The name of the endpoint. (Required)
origin-hostname
The origin hostname. (Required)
query-caching-behavior
Determines the query caching behavior. Valid values are IGNORE_QUERY_STRING, BYPASS_CACHING or USE_QUERY_STRING.
tags map
The tags associated with the endpoint.
type
The type of the endpoint. Defaults to Standard. Valid values are Standard or Premium.

Outputs

Attribute Description
id The ID of the CDN Profile.