2016-01-19 11:11:37 +01:00
---
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_cdn_profile"
sidebar_current: "docs-azurerm-resource-cdn-profile"
description: |-
Create a CDN Profile to create a collection of CDN Endpoints.
---
# azurerm\_cdn\_profile
Create a CDN Profile to create a collection of CDN Endpoints.
## Example Usage
2017-04-17 12:17:54 +02:00
```hcl
2016-01-19 11:11:37 +01:00
resource "azurerm_resource_group" "test" {
2017-02-18 23:48:50 +01:00
name = "resourceGroup1"
location = "West US"
2016-01-19 11:11:37 +01:00
}
resource "azurerm_cdn_profile" "test" {
2017-02-18 23:48:50 +01:00
name = "acceptanceTestCdnProfile1"
location = "West US"
resource_group_name = "${azurerm_resource_group.test.name}"
sku = "Standard_Verizon"
tags {
environment = "Production"
cost_center = "MSFT"
}
2016-01-19 11:11:37 +01:00
}
```
## Argument Reference
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.
* `location` - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
2016-06-30 16:36:08 +02:00
* `sku` - (Required) The pricing related information of current CDN profile. Accepted values are `Standard_Verizon` , `Standard_Akamai` or `Premium_Verizon` .
2016-01-19 11:11:37 +01:00
2017-01-02 15:37:45 +01:00
* `tags` - (Optional) A mapping of tags to assign to the resource.
2016-01-19 11:11:37 +01:00
## Attributes Reference
The following attributes are exported:
2016-11-22 13:13:11 +01:00
* `id` - The CDN Profile ID.
## Import
2017-01-02 15:37:45 +01:00
CDN Profiles can be imported using the `resource id` , e.g.
2016-11-22 13:13:11 +01:00
2017-04-17 12:17:54 +02:00
```hcl
2016-11-22 13:13:11 +01:00
terraform import azurerm_cdn_profile.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Cdn/profiles/myprofile1
2017-01-02 15:37:45 +01:00
```