【发布时间】:2021-11-12 10:33:54
【问题描述】:
尝试使用我在 VSCode 中从 PowerShell 调用的二头肌模板部署到 Azure,如下所示:
New-AzResourceGroupDeployment -Name Deployment1 -ResourceGroupName $resourceGroupName -TemplateFile $templateFile -TemplateParameterFile $parameterFile
这一直很好,但是当我添加以下行(以创建 blob 容器)时
resource callDataContainer 'Microsoft.Storage/storageAccounts/blobServices/containers@2021-04-01' = {
name: '${storageAccountName}/default/call-data'
}
它失败了:
Cannot find path 'C:\Users\<user>\AppData\Local\Temp\<guid>\<template>.json
我已经证明二头肌模板可以:
az bicep build --file .\<template>.bicep
这编译成一个 json arm 模板 ok
由于“找不到路径”错误消息有点无用,我还能做些什么来找出原因?
【问题讨论】:
-
你是直接部署二头肌文件还是生成的手臂?如果您删除容器创建,您能否确认它正在工作?
标签: azure azure-storage azure-resource-manager azure-bicep