SCVMM 2012 R2 : Manually remove a “temporary template”


I Cannot to delete the VMNetwork with error VMM is unable to delete the VMNetwork because other object, such as VMSubnets, Load Balancer templates and Virtual network adapters depend on it

1

I view Dependent Resources VMNetwork and find Temporary Template. This is because you deploy Virtual Machine from VM Template and connect to this Virtual Network so on the dependent resource VMNetwork have Temprorary Template. so i must remove the “VMNetwork” association with all dependent resources , before this VM Network can be deleted

2

Okay , for check Temporary Template go to Library  >> expand file share >> VHDs >> Right click on VHD >> Properties

3b.PNG

On Dependencies Page you can see list Temporary Template , but you cannot delete the Temporary Template from here (GUID)

4.PNG

We can use PowerShell. In this example, I run the following command to remove the temporary template: remove-scvmtemplate -vmtemplate “Temporary Templatef38c63b4-b973-4e08-afcd-6962a4c39193”

5

The template (dependency) is removed as seen below:

6

 

Now we can remove the VMNetwork etc 🙂

 

,

Leave a Reply

Your email address will not be published. Required fields are marked *