且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

用于在Azure虚拟机上启用更新管理的ARM模板

更新时间:2023-02-15 11:45:21

我刚刚将以下脚本添加到了我的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]"
        }
    }