首页 > 解决方案 > 如何在 ARM 模板中为自动化帐户设置模块?

问题描述

我从门户中导出了我的 ARM 模板,除了我在部署 Azure 自动化帐户时拥有的模块之外,一切都运行良好。

        {
        "type": "Microsoft.Automation/automationAccounts/modules",
        "apiVersion": "2020-01-13-preview",
        "name": "[concat(parameters('automationAccountsName'), '/Azure.Storage')]",
        "dependsOn": [
            "[resourceId('Microsoft.Automation/automationAccounts', parameters('automationAccountsName'))]"
        ],
        "properties": {
            "contentLink": {"uri": "https://www.powershellgallery.com/api/v2/package/Azure.Storage"}
        }
    },

我收到一个错误:

"status": "Failed",
"error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'."
}

我尝试提供uri,"contentLink": {"uri": "[concat('https://www.powershellgallery.com/api/v2/package/', 'Azure.Storage')]"}但也失败了。

如何在我的 ARM 模板中为 Azure 自动化帐户设置模块?

标签: azureazure-automation

解决方案


推荐阅读