【发布时间】:2021-09-18 20:39:15
【问题描述】:
我正在尝试使用 Azure 部署模板来创建具有特定 deliveryPolicy 的端点。我跑:
az deployment sub create --location UKSouth --template-file azuredeploy.json
--parameters azuredeploy.parameters.json
哪些错误:
"The Resource 'Microsoft.Cdn/profiles/GEN-UNIQUE' under resource group '<null>'
was not found.
我的部署文件如下所示:
..."resources": [
{
"type": "Microsoft.Cdn/profiles",
"apiVersion": "2020-09-01",
"name": "[parameters('profileName')]",
"location": "[parameters('location')]",
"sku": {
"name": "[parameters('CDNSku')]"
},
"resources": [
{
"type": "endpoints",...
我的参数文件看起来像:
"profileName": {
"value": "GEN-UNIQUE"
}
那么如何正确设置资源(和/或资源组)? (我只尝试创建配置文件,因为没有这一步我找不到创建端点的示例)
【问题讨论】:
标签: azure azure-template