ARM模板,显示可在参数部分中选择的现有资源 [英] ARM Template showing existing resources to select from in the paramter section

查看:69
本文介绍了ARM模板,显示可在参数部分中选择的现有资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

我希望有人可以帮我解决我正在尝试做的事情,或者可以引导我朝着正确的方向前进。

I hope someone can help me here with what i'm trying to do or can lead me in the right direction.

我想在Azure门户上通过ARM模板标准化Azure VM部署,优先选择模板部分。

I want to standardize Azure VM deployments via ARM Template on the Azure Portal, preferrable from the template section.

目标应该是管理员可以从门户部署vm尽可能少问问题。

我们有一个非常高级的命名方案,可以帮助计算大部分输入参数,但仍有一些问题要问。就像VM应该放在哪个vnet /子网中一样,所以我认为在那时管理员应该获得一个列表
的实际呈现的子网可供选择或创建一个新的子网。我知道我可以"硬编码"他们通过AllowedValues,但可能的实际摘录将更加舒适(对我和管理员而言)

The target should be that administrators can deploy a vm out of the portal while asking as less questions as possible.
We have a very high developed naming scheme which can help to compute most of the input parameters but there are still some questions to ask. Like in which vnet / subnet the VM should be placed, so I'm thinking that at that point the admin should get a list of the actual presented Subnets to choose from or create a new one. I know that I can "hardcode" them via AllowedValues but an live excerpt of what is possible will be much more comfortable (for me and the admin)

还有其他决定,例如:是不是数据磁盘,我希望在部署开始时让这些都在参数部分中计算运行时间。

There are other decision, e.g. Data Disk or not, and my wish is to have these all asked an runtime calculated in the parameter sections during the start of the deployment.

我希望这是可能的(它也可能是ARM是错误的引擎,我必须通过Powershell / CLI来实现。但主要焦点应该是门户网站,尽可能减少错误。

I hope that this is possible (it could also be that ARM is the wrong engine and I have to do it via Powershell / CLI). But main focus shoud be the portal and as less question as possible to eliminate errors.

提前致谢

Olaf

关心

Olaf

Regards
Olaf

推荐答案

我们是通过Azure DevOps做的,你们可以参考azure管道并使用任务选择器调用标准的PowerShell脚本来根据参数部署VM。只是推荐。 
We do it via Azure DevOps , you can refer to the azure pipelines and make use of task pickers which call your standard powershell scripts to deploy VM's based on the parameters. Just a recommendation. 


这篇关于ARM模板,显示可在参数部分中选择的现有资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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