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 🙂

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s