CloudWiki
Resource

CDN Profile

Microsoft Azure
App Services
Azure CDN (Content Delivery Network) profile is a configuration layer that allows you to manage and optimize content delivery across various networks, including the internet, private networks, and Azure. It provides a set of rules, policies, and configurations that control how content is delivered to end-users. An Azure CDN profile consists of one or more endpoints, each of which represents a specific CDN distribution point for your content. Each endpoint is associated with a set of rules that define how the content should be delivered, such as caching policies, compression settings, and load balancing rules.‍
Terraform Name
terraform
azurerm_cdn_profile
CDN Profile
attributes:

The following arguments are supported:

  • name - (Required) Specifies the name of the CDN Profile. Changing this forces a new resource to be created.
  • resource_group_name - (Required) The name of the resource group in which to create the CDN Profile. Changing this forces a new resource to be created.
  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
  • sku - (Required) The pricing related information of current CDN profile. Accepted values are Standard_Akamai, Standard_ChinaCdn, Standard_Microsoft, Standard_Verizon or Premium_Verizon. Changing this forces a new resource to be created.
  • tags - (Optional) A mapping of tags to assign to the resource.

Associating resources with a
CDN Profile
Resources do not "belong" to a
CDN Profile
Rather, one or more Security Groups are associated to a resource.
Create
CDN Profile
via Terraform:
The following HCL manages a CDN Profile to create a collection of CDN Endpoints
Syntax:

resource "azurerm_resource_group" "example" {
 name     = "example-resources"
 location = "West Europe"
}

resource "azurerm_cdn_profile" "example" {
 name                = "exampleCdnProfile"
 location            = azurerm_resource_group.example.location
 resource_group_name = azurerm_resource_group.example.name
 sku                 = "Standard_Verizon"

 tags = {
   environment = "Production"
   cost_center = "MSFT"
 }
}

Create
CDN Profile
via CLI:
Parameters:

az cdn profile create --name
                     --resource-group
                     [--location]
                     [--sku {Custom_Verizon, Premium_Verizon, StandardPlus_955BandWidth_ChinaCdn, StandardPlus_AvgBandWidth_ChinaCdn, StandardPlus_ChinaCdn, Standard_955BandWidth_ChinaCdn, Standard_Akamai, Standard_AvgBandWidth_ChinaCdn, Standard_ChinaCdn, Standard_Microsoft, Standard_Verizon}]
                     [--tags]

Example:

az cdn profile create -g group -n profile --sku Premium_Verizon

aws cost
Costs
Direct Cost
Indirect Cost
No items found.
Best Practices for
CDN Profile

Categorized by Availability, Security & Compliance and Cost

Low
Access allowed from VPN
No items found.
Low
Auto Scaling Group not in use
No items found.
Medium
Connections towards DynamoDB should be via VPC endpoints
No items found.
Medium
Container in CrashLoopBackOff state
No items found.
Low
EC2 with GPU capabilities
No items found.
Medium
EC2 with high privileged policies
No items found.
Medium
ECS cluster delete alarm
No items found.
Critical
ECS task with Admin access (*:*)
Medium
ECS task with high privileged policies
No items found.
Critical
EKS cluster delete alarm
No items found.
Medium
ElastiCache cluster delete alarm
No items found.
Medium
Ensure Container liveness probe is configured
No items found.
Medium
Ensure ECS task definition has memory limit
No items found.
Critical
Ensure EMR cluster master nodes are not publicly accessible
No items found.
More from
Microsoft Azure