Azure Bicep 部署 - 找不到路径“C :\Users\<user>\AppData\Local\Temp\<guid>\<template>. json”

标签 azure azure-storage azure-resource-manager azure-bicep

尝试使用我在 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 模板

由于“找不到路径”错误消息有点无济于事,我还能做些什么来找出原因?

最佳答案

周末过后,Juts 又回来了,效果很好🤔

关于Azure Bicep 部署 - 找不到路径“C :\Users\<user>\AppData\Local\Temp\<guid>\<template>. json”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69225260/

相关文章:

azure - 如何从 One VS 解决方案发布两个单独的 Azure 网站

azure - 将 Azure 托管构建代理 IP 地址添加到 Analysis Services 防火墙规则

c# - 验证 SWT token REST WCF 服务

azure - 使用 Bicep 将证书从 Azure Keyvault 添加到 Azure 容器环境

azure - NLog 自定义目标在 Azure .NET Core 2.1 中失败

c# - 当引用的 .NET 依赖项版本不匹配时,如何解析引用?

azure - azcopy 日志 PERF 行中记录了哪些信息?

azure - 是否可以将 Azure VM 从托管磁盘转换为非托管磁盘?

powershell - Azure 资源模板部署问题

azure - 访问 Azure Databricks 托管资源组中的成本分析