cli 或 ansible 的新自动化变量
创建 Runbook 并编辑内容后,我想创建变量并为其设置值。我怎样才能通过 ansible 或 azure cli 来做到这一点? 请帮我
After create a runbook and edit content, I want to create variable and set value for them. How can I do it by ansible or azure cli ?
Please help me
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Set-AutomationVariable
cmdlet。您可以在打算在 Azure 沙盒环境或 Windows 混合 Runbook 辅助角色上运行的 Runbook 中使用Set-AutomationVariable
。您可以使用 PowerShell 脚本创建变量并为其设置值。
参考: 管理 Azure 自动化中的变量 |微软文档
Set-AutomationVariable
cmdlet. You use theSet-AutomationVariable
in your runbooks that are intended to run in the Azure sandbox environment, or on a Windows Hybrid Runbook Worker.You can create variables and set value for them using PowerShell script.
Reference: Manage variables in Azure Automation | Microsoft Docs