Multiple extensions for a VM with Azure ARM -


we configuring our vm arm. use dsc install of requirements, however, installing anti malware extension dsc not work.

we getting following error: multiple vmextensions per handler not supported os type 'windows'. vmextension 'dscextension' handler 'microsoft.powershell.dsc' added or specified in input.

the resources this:

 {     "type":"microsoft.compute/virtualmachines/extensions",   "name":"[concat(variables('vmname'),'/', 'antimalwareextension')]",   "apiversion":"[variables('api-version')]",   "location":"[resourcegroup().location]",   "dependson":[        "[concat('microsoft.compute/virtualmachines/', variables('vmname'))]"   ],   "properties":{        "publisher":"microsoft.azure.security",      "type":"iaasantimalware",      "typehandlerversion":"1.1",      "settings":{           "antimalwareenabled":"true",         "exclusions":{              "paths":"c:\\users",            "extensions":".txt",            "processes":"taskmgr.exe"         },         "realtimeprotectionenabled":"true",         "scheduledscansettings":{              "isenabled":"true",            "scantype":"quick",            "day":"7",            "time":"120"         }      },      "protectedsettings":null   }   }, {         "type":"microsoft.compute/virtualmachines/extensions",       "name":"[concat(variables('vmname'),'/', 'dscextension')]",       "apiversion":"[variables('api-version')]",       "location":"[resourcegroup().location]",       "dependson":[            "[concat('microsoft.compute/virtualmachines/', variables('vmname'))]"       ],       "properties":{            "publisher":"microsoft.powershell",          "type":"dsc",          "typehandlerversion":"2.9",          "autoupgrademinorversion":true,          "settings":{               "modulesurl":"[parameters('dsclocation')]",             "configurationfunction":"[parameters('dscfunction')]",             "properties":{                  "nodename":"[variables('vmname')]"             }          }       } 

when looking template 2 extensions executed @ same time. add dependson 1 of them:

  "dependson":[        "[concat('microsoft.compute/virtualmachines/', variables('vmname'))]",      "[concat('microsoft.compute/virtualmachines/', variables('vmname'),'/', 'antimalwareextension')]"   ], 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -