【问题标题】:How to run Azure CLI commands in Azure Automation Account Python Runbook or Powershell Runbook如何在 Azure 自动化帐户 Python Runbook 或 Powershell Runbook 中运行 Azure CLI 命令
【发布时间】:2020-07-24 06:03:00
【问题描述】:

这些是在 Azure 自动化帐户 Python Runbooks 或 powershell Runbooks 中运行 Azure CLI 命令的任何方式吗? 我有几个 Azure CLI 命令在本地 PowerShell 中运行良好。我需要在 Azure 自动化帐户 Python Runbook 或 PowerShell Runbook 中运行相同的 Azure CLI 命令。

【问题讨论】:

    标签: azure powershell azure-cli azure-automation


    【解决方案1】:

    我认为在 Azure Automation Runbook 中没有任何本机方式来运行 Azure Cli 命令。您可以使用 Azure 容器实例来解决这个问题,但 CLI 可以做的大部分事情 Azure Powershell\Python 也可以做,因此您可以使用本机方式来做这件事。

    【讨论】:

    • 是的..你说得对..但是使用 Azure CLI 可以更好地满足我们的需求。因为目前,我正在寻找一种在逻辑应用程序中运行这些 Azure CLI 命令的方法。
    猜你喜欢
    • 2021-07-17
    • 2020-12-09
    • 2022-11-11
    • 1970-01-01
    • 1970-01-01
    • 2019-05-17
    • 1970-01-01
    • 2019-05-05
    • 1970-01-01
    相关资源
    最近更新 更多