如何使用Powershell部署具有多个参数文件的模板文件 [英] How to deploy a template files with multiple parameter files with powershell

查看:79
本文介绍了如何使用Powershell部署具有多个参数文件的模板文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个Azure RM资源组部署中部署多个参数文件.
使用1个参数文件,一切按预期工作,但是当我需要使用2个参数文件进行部署时,找不到正确的Powershell命令.
这是使用1个参数文件的命令

I want to deploy multiple parameter files in one Azure RM resource group deployment.
With 1 parameter file everything worked how it supposed to but when I need to deploy with 2 parameter files I can't find the right Powershell command.
This was the command that worked with 1 parameterfile

New-AzureRmResourceGroupDeployment -ResourceGroupName "resourcegroupname" -Name "testARMtemplate-deploybmt-1" -TemplateFile "C:\Users\USERNAME\Documents\site.template.json" -TemplateParameterFile "C:\Users\achahbarb\Documents\site.parameters.json"

但是当我在线搜索时,与逻辑命令最接近的命令就是这个命令,但这是不可能的

But when I searched online the closest i got with a logic command was this one , but this is not possible

New-AzureRmResourceGroupDeployment -ResourceGroupName "resourcegroupname" -Name "testARMtemplate-deploybmt-1" -TemplateFile "C:\Users\USERNAME\Documents\site.template.json" -TemplateParameterFile "C:\Users\achahbarb\Documents\appservice.parameters.json ,C:\Users\USERNAME\Documents\database.parameters.json"

推荐答案

我建​​议尝试使用
I recommend trying the solution described here.


这篇关于如何使用Powershell部署具有多个参数文件的模板文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆