Recently I was consulting for an Enterprise customer that wanted to move a number of their resources from Classic to Resource manager portal.
This is the migration path & step by step process that I followed
My previous post that explains the step by step process
Mircosoft link that has some steps missing
During the migration i faced several Error & Warning message. 1 of the error message was below
VM in Cloud Service has Microsoft.Azure.Security.Monitoring extension installed which is currently unsupported for migration. This could be
due to a security center security policy configured for this subscription or VM. Please turn off the security center policy and remove this extension before attempting migration.
Fix
To fix the above issue, you have to open the VM in ARM portal and remove azure.security extension from the VM just the previous way from the extension section.

The alternate way to fix the error is powershell way,
To Get a list of installed extension in the VM, supply below command in powershell
Get-AzureVM -ServiceName “cloudservice” -name “vmname” | Get-AzureVMExtension
This should show you a screen like below

Now to remove the security extension, supply below command in powershell session
$VM1 = Get-AzureVM -ServiceName “cloudservice” -Name “vmname”
Set-AzureVMExtension -VM $VM1 –Uninstall -ReferenceName “Microsoft.EnterpriseCloud.Monitoring.MicrosoftMonitoringAgent” -ExtensionName “MicrosoftMonitoringAgent” -Publisher “Microsoft.EnterpriseCloud.Monitoring” -Version “1.*” | Update-AzureVM
You can then validate if the extension is removed or not by opening the VM from ARM portal and looking at the list of extensions.
Thats all
My Previous post talks about how to remove vm snapshot extension from Azure backup
Leave a Reply