diff --git a/101-cdn-with-custom-origin/README.md b/101-cdn-with-custom-origin/README.md index e418d02e2025..d90d096b3c4a 100644 --- a/101-cdn-with-custom-origin/README.md +++ b/101-cdn-with-custom-origin/README.md @@ -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` diff --git a/101-cdn-with-custom-origin/azuredeploy.json b/101-cdn-with-custom-origin/azuredeploy.json index 93d50ccb550f..9b27372a4859 100644 --- a/101-cdn-with-custom-origin/azuredeploy.json +++ b/101-cdn-with-custom-origin/azuredeploy.json @@ -4,6 +4,7 @@ "parameters": { "profileName": { "type": "string", + "defaultValue": "myCDNProfile", "metadata": { "description": "Name of the CDN Profile" } @@ -11,7 +12,7 @@ "endpointName": { "type": "string", "metadata": { - "description": "Name of the CDN Endpoint" + "description": "Name of the CDN Endpoint, must be unique" } }, "originUrl": { @@ -25,9 +26,10 @@ "metadata": { "description": "CDN SKU names" }, - "defaultValue": "Standard_Akamai", + "defaultValue": "Standard_Microsoft", "allowedValues": [ "Standard_Akamai", + "Standard_Microsoft", "Standard_Verizon", "Premium_Verizon" ] @@ -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'))]" ], @@ -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": [ diff --git a/101-cdn-with-custom-origin/azuredeploy.parameters.json b/101-cdn-with-custom-origin/azuredeploy.parameters.json index 83dffc479c5c..a8197c36c901 100644 --- a/101-cdn-with-custom-origin/azuredeploy.parameters.json +++ b/101-cdn-with-custom-origin/azuredeploy.parameters.json @@ -9,7 +9,7 @@ "value": "GEN-UNIQUE" }, "originUrl": { - "value": "www.microsoft.com" + "value": "cdndemo.azurewebsites.net" } } } \ No newline at end of file diff --git a/101-cdn-with-custom-origin/metadata.json b/101-cdn-with-custom-origin/metadata.json index 6f71200e2a31..2588b5ccc481 100644 --- a/101-cdn-with-custom-origin/metadata.json +++ b/101-cdn-with-custom-origin/metadata.json @@ -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" }