Virtual Machine Manager Job – Error (31306) – VM Role exists with the same name

I have seen some problem doing VM role deployment. Sometime the deployment have problem because of missing input for the defition file. But VMM still create the cloud service. And next time you try get error that the VM role allready exists, but cannot find it in VMM console.

 

So what now, I have find the cloud service in the db for VMM, and now I like to remove it

Error:

Virtual Machine Manager Job – Error (31306)

Another VM Role exists with the same name (xxDEVxx) in this Cloud Service.

Recommended Action

Change the VM Role name and try the operation again.

 

Solution:

Please first check VMM console if you have vm with that name else use this guide.

Note: The solution is devastating and cannot be restored, so careful.

 

Remove the Cloud Service

Run below command

Get-CloudService -Name [CloudServicename] | Remove-CloudService

 

ex:

Get-CloudService -Name testvm001 | Remove-CloudService

Comments are closed.