用于在Azure虚拟机上启用更新管理的ARM模板 [英] ARM template for enabling Update Management on Azure Virtual Machine

查看:64
本文介绍了用于在Azure虚拟机上启用更新管理的ARM模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我使用Azure资源管理器模板在Azure VM上启用更新管理.

Could someone help me to enable update management on Azure VM with Azure Resource Manager Template.

我可以在线找到任何模板来启用它.

I could find any template online to enable it.

参考: https://docs.microsoft.com/en-us/azure/automation/automation-update-management

推荐答案

我刚刚将以下脚本添加到了我的VM部署脚本中.可以

I have just included the following script to my VM deployment script. Is it okay

{
        "type": "Microsoft.OperationsManagement/solutions",
        "name": "[concat(variables('solutions')[copyIndex()],'(', parameters('workspaceName'), ')')]",
        "apiVersion": "2015-11-01-preview",
        "location": "[resourceGroup().location]",
        "copy": {
            "name": "solutions",
            "count": "[length(variables('solutions'))]"
        },
        "plan": {
            "name": "[concat(variables('solutions')[copyIndex()], '(', parameters('workspaceName'), ')')]",
            "promotionCode": "",
            "product": "[concat('OMSGallery/', variables('solutions')[copyIndex()])]",
            "publisher": "Microsoft"
        },
        "properties": {
            "workspaceResourceId": "[reference(resourceId(parameters('workspaceRGName'), 'Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').customerId]"
        }
    }

这篇关于用于在Azure虚拟机上启用更新管理的ARM模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆