简体   繁体   English

使用外部参数。json 文件不适用于 Azure CLI

[英]Use external parameters.json file not working with Azure CLI

I am trying to pass parameters in via the parameter file in Azure Cli我正在尝试通过 Azure Cli 中的参数文件传递参数

The script below ignores my file What am I doing wrong?下面的脚本忽略了我的文件我做错了什么?

I have also tried ParameterTemplateFile as mentioned in another post here but that doesnt work either我也尝试过 ParameterTemplateFile 在这里的另一篇文章中提到,但这也不起作用

templateFile="Path\template.json"
parameterFile="Path\parameters.json"

az deployment group create \
  --name <NAME> \
  --resource-group <RESOURCE GROUP>\
  --template-file $templateFile \
  --parameter-file $parameterFile

When running via Azure Cli I should have been using @parameters.json通过 Azure Cli 运行时,我应该一直在使用 @parameters.json

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在parameters.Azure Logic App Workflow定义中的parameters.json文件中使用参数 - How to use parameters inside parameters.json file in Azure Logic App Workflow definition 如何从 Azure Key Vault 读取和更新 Azure Logic App 的 parameters.json 文件中的机密信息 - How to read and update secrets information in parameters.json file of Azure Logic App from Azure Key Vault 在Azure Runbook Arm部署中使用parameters.json文件而不是-TemplateParameterObject - using parameters.json file instead of -TemplateParameterObject in Azure Runbook Arm deployments 我们需要参数吗?json 文件 ARM 模板部署 - do we need parameters.json file ARM template deployment 部署ARM模板时使用PowerShell覆盖parameters.json文件中的参数 - Override a parameter in the parameters.json file with PowerShell when deploying ARM template Azure CLI内联参数无效 - Azure CLI inline parameters not working Azure CLI ARM 参数 json 使用变量检索密钥库机密 - Azure CLI ARM parameters json using variables to retrieve keyvault secrets 使用Windows Azure CLI而没有publishsettings文件? - Use Windows Azure CLI without publishsettings file? 使用 Azure Cli 删除 Azure 文件共享中的旧文件 - Use Azure Cli to Delete Old Files in Azure file share 从 Azure CLI 解析 json 结果时出错:启动 Azure CLI:exec:“az”:在 %PATH% 中找不到可执行文件 - Error parsing json result from the Azure CLI: launching Azure CLI: exec: "az": executable file not found in %PATH%
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM