更新时间: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]"
}
}