Public/PaaS/web-static/New-CmAzPaasWebStatic.Cdn.json
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "contentTypesToCompress": { "type": "array", "defaultValue": [ "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" ] }, "endpointName": { "type": "string" }, "location": { "type": "string", "defaultValue": "global" }, "profileName": { "type": "string" }, "storageName": { "type": "string" }, "ServiceContainer": { "type": "Object" } }, "variables" : { "hostSuffix" : ".z33.web.core.windows.net" }, "resources": [ { "apiVersion": "2019-04-15", "name": "[parameters('profileName')]", "location": "[parameters('location')]", "sku": { "name": "Standard_Microsoft" }, "tags": { "cm-service": "[parameters('ServiceContainer').cdn]" }, "properties": {}, "type": "microsoft.cdn/profiles" }, { "apiVersion": "2019-04-15", "dependsOn": [ "[concat('Microsoft.Cdn/profiles/', parameters('profileName'))]" ], "name": "[concat(parameters('profileName'),'/',parameters('endpointName'))]", "location": "[parameters('location')]", "tags": { "cm-service": "[parameters('ServiceContainer').endpoint]" }, "properties": { "isHttpAllowed": true, "isHttpsAllowed": true, "originHostHeader": "[concat(parameters('storageName'), variables('hostSuffix'))]", "origins": [ { "name": "[concat(parameters('storageName'), '-z33-web-core-windows-net')]", "properties": { "hostName": "[concat(parameters('storageName'), variables('hostSuffix'))]", "httpPort": 80, "httpsPort": 443 } } ], "isCompressionEnabled": true, "contentTypesToCompress": "[parameters('contentTypesToCompress')]" }, "type": "microsoft.cdn/profiles/endpoints" } ] } |