【问题标题】:Deploying ARM templates via Azure Runbooks通过 Azure Runbooks 部署 ARM 模板
【发布时间】:2018-03-13 14:31:52
【问题描述】:

我正在按照 Microsoft 文档将模板部署到带有 runbook 的 azure 中,但是我看不到标题下脚本的参数来自哪里: 创建 PowerShell Runbook 脚本

完整指南在这里https://docs.microsoft.com/en-us/azure/automation/automation-deploy-template-runbook

param (
[Parameter(Mandatory=$true)]
[string]
$ResourceGroupName,

[Parameter(Mandatory=$true)]
[string]
$StorageAccountName,

[Parameter(Mandatory=$true)]
[string]
$StorageAccountKey,

[Parameter(Mandatory=$true)]
[string]
$StorageFileName

)

【问题讨论】:

    标签: azure azure-runbook


    【解决方案1】:

    但是我看不到标题下脚本的参数来自哪里。

    如果我们遵循docsImport and publish the runbook into your Azure Automation account当我们尝试运行Runbook时,我们需要输入所需的参数

    测试结果:

    【讨论】:

    • 非常感谢。当我测试时我没有发布它,我只是点击了测试窗格,所以没有要求参数。正如你所说的那样,它需要先发布,然后才能看到这些参数!
    猜你喜欢
    • 2020-09-28
    • 1970-01-01
    • 2019-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多