I am trying to install the Microsoft AntiMalware extension on a virtual machine that I just created.
Set-AzureRmVMExtension-ExtensionType'IaaSAntiMalware'-Name'AntiMalware'-PublisherMicrosoft.Azure.Security-ResourceGroupName $CfgResourceGroup -TypeHandlerVersion'1.3'-VMName $CfgVirtualMachineName -Location $CfgLocation
After more than an hour I get an error message in PowerShell, although the command does not stop executing.
TrackingOperationId: be87a26d-91bf-4b71-8d51-5fef383c0777RequestId: b96556c6-57b5-4e54-b65a-f8ad8c814992Status:FailedStatusCode: OKOutput:StartTime:15-11-201510:38:53+01:00EndTime:15-11-201512:11:17+01:00Error:Microsoft.Azure.Management.Compute.Models.ApiErrorErrorText:{"Details":[],"InnerError": null,"Code":"VMExtensionProvisioningTimeout","Message":"Provisioning of VM extension 'AntiMalware' has timed out. Extension installation may be taking too long, or extension status could n
ot be obtained.","Target": null}
When I look in the WaAppAgent.log I see a lot of attempts, but eventually it fails.
[00000005][11/15/201509:40:30.18][ERROR]Command C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntiMalware\1.3.0.2\AntimalwareConfig.exe of Microsoft.Azure.Security.IaaSAntiMalware has exited with Exit code:1[00000005][11/15/201509:40:30.19][ERROR]Enable command of Microsoft.Azure.Security.IaaSAntiMalware has exited with Exit code:1[00000005][11/15/201509:40:30.19][WARN]Enable failed for plugin (name:Microsoft.Azure.Security.IaaSAntiMalware, version 1.3.0.2) with exception Command C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntiMalware\1.3.0.2\AntimalwareConfig.exe of Microsoft.Azure.Security.IaaSAntiMalware has exited with Exit code:1,Code:1009[00000005][11/15/201509:40:30.32][ERROR]Errorwhile processing plugin Microsoft.Azure.Security.IaaSAntiMalware version 1.3.0.2, state: enabled, error:System.Exception:Command C:\Packages\Plugins\Microsoft.Azure.Security.IaaSAntiMalware\1.3.0.2\AntimalwareConfig.exe of Microsoft.Azure.Security.IaaSAntiMalware has exited with Exit code:1
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.HandlerStateMachine.InvokeCommand(String command,PluginArtifacts pluginArtifact,String pluginVersion,String pluginFolder,String pluginLogFolder,Int32 processWaitTimeout,PluginEventType startType,PluginEventType endType)
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.HandlerStateMachine.EnableHandler(PluginArtifacts artifact)
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.HandlerStateMachine.StartHandlerStateMachine(PluginArtifacts data,RDConfigHostingEnvironmentSettingsPlugin plugin)
at Microsoft.WindowsAzure.GuestAgent.ContainerStateMachine.PluginInstaller.PluginBackgroundThread(Object sender,DoWorkEventArgs e)
In C:\WindowsAzure\Logs\Plugins\Microsoft.Azure.Security.IaaSAntiMalware\1.3.0.2 there are 5 CommandExecution.log files already. Strange thing is that in the oldest file it says: "The install operation has completed successfully." All subsequent files contain this text:
-MicrosoftAntimalware was previously installed-No settings file found-Unable to validate JSON configuration data against known schemas* ERROR:Unable to detect configuration schema type-Enabling antimalware-MicrosoftAntimalware enabled with default settings
It looks like it is retrying something over and over. I really have to close my PowerShell window to end the command. It is not responding to CTRL+C or the stop button in ISE.
I tried destroying and rebuilding the VM, but without success. Unfortunately there is not much info about the new Set-AzureRmVMExtension online yet.
Thanks for any help on this!
Marcel