简体   繁体   English

Azure 带下拉菜单的自动化参数

[英]Azure Automation parameter with Dropdown

I am working on a Azure automation workbook and would like to add a parameter that generates a dropdown list of values to be selected, similar to what happens when a Boolean variable is defined.我正在处理 Azure 自动化工作簿,并想添加一个参数来生成要选择的值的下拉列表,类似于定义 Boolean 变量时发生的情况。

For Boolean parameters you get a dropdown with "default will be used", "true" and "false"对于 Boolean 参数,您会得到一个下拉菜单,其中包含“将使用默认值”、“真”和“假”

I would like to add something like "Database 1", "Database 2", "Database 3", etc.我想添加诸如“数据库 1”、“数据库 2”、“数据库 3”等内容。

This is not possible at the time of writing, as far as I'm aware.据我所知,在撰写本文时这是不可能的。 More over, adding a validateset to a parameter does absolutely nothing, as the runbook happily accepts the input and starts, despite the fact there is a validate set...此外,向参数添加validateset集绝对没有任何作用,因为 runbook 愉快地接受输入并启动,尽管事实上有一个验证集......

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM