Skip to content

Commit

Permalink
Updated CDN template and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
asudbring committed Jun 11, 2020
1 parent 5aa3449 commit 2663a33
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 13 deletions.
19 changes: 18 additions & 1 deletion 101-cdn-with-custom-origin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@

[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cdn-with-custom-origin%2Fazuredeploy.json) [![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-cdn-with-custom-origin%2Fazuredeploy.json)

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 creates a **CDN Profile** and a **CDN Endpoint** with a user specified origin and all of our most commonly used settings on CDN.

## Overview and deployed resources

This template is a resource manager implementation of a quickstart for deploying a CDN endpoint and profile.

For more information on **Azure CDN**:

* [What is a content delivery network on Azure?](https://docs.microsoft.com/azure/cdn/cdn-overview)

The following resources are deployed as part of the solution

### Microsoft.Cdn

Description

+ **profiles**: Profile for CDN service and endpoint/origin.


`Tags: cdn`
56 changes: 47 additions & 9 deletions 101-cdn-with-custom-origin/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"parameters": {
"profileName": {
"type": "string",
"defaultValue": "myCDNProfile",
"metadata": {
"description": "Name of the CDN Profile"
}
},
"endpointName": {
"type": "string",
"metadata": {
"description": "Name of the CDN Endpoint"
"description": "Name of the CDN Endpoint, must be unique"
}
},
"originUrl": {
Expand All @@ -25,9 +26,10 @@
"metadata": {
"description": "CDN SKU names"
},
"defaultValue": "Standard_Akamai",
"defaultValue": "Standard_Microsoft",
"allowedValues": [
"Standard_Akamai",
"Standard_Microsoft",
"Standard_Verizon",
"Premium_Verizon"
]
Expand All @@ -45,13 +47,13 @@
"name": "[parameters('profileName')]",
"type": "Microsoft.Cdn/profiles",
"location": "[parameters('location')]",
"apiVersion": "2016-04-02",
"apiVersion": "2019-12-31",
"sku": {
"name": "[parameters('CDNSku')]"
},
"resources": [
{
"apiVersion": "2016-04-02",
"apiVersion": "2019-12-31",
"dependsOn": [
"[resourceId('Microsoft.Cdn/profiles', parameters('profileName'))]"
],
Expand All @@ -64,11 +66,47 @@
"isHttpsAllowed": true,
"queryStringCachingBehavior": "IgnoreQueryString",
"contentTypesToCompress": [
"text/plain",
"text/html",
"text/css",
"application/x-javascript",
"text/javascript"
"application/eot",
"application/font",
"application/font-sfnt",
"application/javascript",
"application/json",
"application/opentype",
"application/otf",
"application/pkcs7-mime",
"application/truetype",
"application/ttf",
"application/vnd.ms-fontobject",
"application/xhtml+xml",
"application/xml",
"application/xml+rss",
"application/x-font-opentype",
"application/x-font-truetype",
"application/x-font-ttf",
"application/x-httpd-cgi",
"application/x-javascript",
"application/x-mpegurl",
"application/x-opentype",
"application/x-otf",
"application/x-perl",
"application/x-ttf",
"font/eot",
"font/ttf",
"font/otf",
"font/opentype",
"image/svg+xml",
"text/css",
"text/csv",
"text/html",
"text/javascript",
"text/js",
"text/plain",
"text/richtext",
"text/tab-separated-values",
"text/xml",
"text/x-script",
"text/x-component",
"text/x-java-source"
],
"isCompressionEnabled": true,
"origins": [
Expand Down
2 changes: 1 addition & 1 deletion 101-cdn-with-custom-origin/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"value": "GEN-UNIQUE"
},
"originUrl": {
"value": "www.microsoft.com"
"value": "cdndemo.azurewebsites.net"
}
}
}
4 changes: 2 additions & 2 deletions 101-cdn-with-custom-origin/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"itemDisplayName": "Create a CDN Profile and a CDN Endpoint with custom origin",
"description": "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.",
"summary": "Create a CDN Profile, a CDN Endpoint with a user defined origin and recommended settings",
"githubUsername": "kuangweizhang",
"dateUpdated": "2015-10-22"
"githubUsername": "asudbring",
"dateUpdated": "2020-06-20"
}

0 comments on commit 2663a33

Please sign in to comment.