我想告诉 Azure CDN 我的来源位于特定路径,例如mydomain.com/cdn
. 此选项可通过 Azure 门户获得(CDN 配置文件 > 端点 > 配置 > 源路径)
我正在使用资源管理器 API 和 Json 模板部署我的 Azure 资源。但是,我在此处的模板中找不到此设置:https ://github.com/Azure/azure-quickstart-templates/tree/master/201-cdn-customize
这是不可用还是我错过了什么?
更新
使用资源浏览器,我在端点节点上找到了带有null
. 即使我尝试设置该值(并且 API 接受它),该值也未设置。
{
"value": [
{
"name": "<hidden>",
"id": "/subscriptions/<hidden>/resourcegroups/<hidden>/providers/Microsoft.Cdn/profiles/<hidden>/endpoints/<hidden>",
"type": "Microsoft.Cdn/profiles/endpoints",
"tags": {},
"location": "NorthEurope",
"properties": {
"hostName": "<hidden>",
"originHostHeader": "<hidden>",
"provisioningState": "Succeeded",
"resourceState": "Running",
"isHttpAllowed": true,
"isHttpsAllowed": true,
"queryStringCachingBehavior": "UseQueryString",
"originPath": null,
"origins": [
{
"name": "<hidden>",
"properties": {
"hostName": "<hidden>",
"httpPort": null,
"httpsPort": null
}
}
],
"contentTypesToCompress": [
"application/x-javascript",
"text/css",
"text/html",
"text/javascript",
"text/plain"
],
"isCompressionEnabled": false
}
}
]
}