configuring MMA agent to send logs to different workspaces with help of terraform code

%3CLINGO-SUB%20id%3D%22lingo-sub-2457290%22%20slang%3D%22en-US%22%3Econfiguring%20MMA%20agent%20to%20send%20logs%20to%20different%20workspaces%20with%20help%20of%20terraform%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2457290%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Econfiguring%20MMA%20agent%20to%20send%20logs%20to%20different%20workspaces%20with%20help%20of%20terraform%20code%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3EI%20am%20getting%20error%20the%20creation%20of%20extension%20failed%3C%2FDIV%3E%3CDIV%3E%3CDIV%3EError%3A%20compute.VirtualMachineExtensionsClient%23CreateOrUpdate%3A%20Failure%20sending%20request%3A%20StatusCode%3D0%20--%20Original%20Error%3A%20Code%3D%22BadRequest%22%20Message%3D%22Multiple%20VMExtensions%20per%20handler%20not%20supported%20for%20OS%20type%20'Windows'.%20VMExtension%20'SecOpsMonitoringAgentExtension'%20with%20handler%20'Microsoft.EnterpriseCloud.Monitoring.MicrosoftMonitoringAgent'%20already%20added%20or%20specified%20in%20input.%22%20on%20deploy_mgmt.tf%20line%20100%2C%20in%20resource%20%22azurerm_virtual_machine_extension%22%20%22SecOps_MonitoringAgentExtension%22%3A%20100%3A%20resource%20%22azurerm_virtual_machine_extension%22%20%22SecOps_MonitoringAgentExtension%22%20%7B%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3Ecould%20someone%20help%20me%20with%20terraform%20code%20to%20achive%20this%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

 

configuring MMA agent to send logs to different workspaces with help of terraform code

 

 

I am getting error the creation of extension failed
Error: compute.VirtualMachineExtensionsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="BadRequest" Message="Multiple VMExtensions per handler not supported for OS type 'Windows'. VMExtension 'SecOpsMonitoringAgentExtension' with handler 'Microsoft.EnterpriseCloud.Monitoring.MicrosoftMonitoringAgent' already added or specified in input." on deploy_mgmt.tf line 100, in resource "azurerm_virtual_machine_extension" "SecOps_MonitoringAgentExtension": 100: resource "azurerm_virtual_machine_extension" "SecOps_MonitoringAgentExtension" {
 
could someone help me with terraform code to achive this
0 Replies