Posted On March 16, 2022

Virtual Machine Networking Error 15011

kimconnect 0 comments
blog.KimConnect.com >> Virtualization >> Virtual Machine Networking Error 15011

Creating New Logical Network

$logicalNetworkID="somehash-hash-hash"
$newNetworkName='Test Network'
$subnet="192.168.500.0/24"
$logicalNetwork = Get-SCLogicalNetwork -ID $logicalNetworkID

$vmNetwork = New-SCVMNetwork -Name $newNetworkName -LogicalNetwork $logicalNetwork -IsolationType "WindowsNetworkVirtualization" -CAIPAddressPoolType "IPV4" -PAIPAddressPoolType "IPV4"
Write-Output $vmNetwork
$subnet = New-SCSubnetVLan -Subnet $subnet
New-SCVMSubnet -Name $newNetworkName -VMNetwork $vmNetwork -SubnetVLan $subnet -EnableEncryption $false

Remove Logical Network in VMM

$scvmNetworkName='Test Network'
Get-SCVMNetwork -Name $scvmNetworkName |Remove-SCVMNetwork

Error Message

Remove-SCVMNetwork : VMM is unable to delete the VMNetwork 'Test Network' because other objects, such as VMSubnets, Load balancer templates and  Virtual network adapters depend on it. (Error ID: 15011)

Remove the VMNetwork association with all dependent resources, and then remove the VMNetwork.

To restart the job, run the following command:
PS> Restart-Job -Job (Get-VMMServer localhost | Get-Job | where { $_.ID -eq "{somehash-hash-hash}"})
At line:1 char:47
+ Get-SCVMNetwork -Name "Test Network"|Remove-SCVMNetwork
+                                               ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (:) [Remove-SCVMNetwork], CarmineException
    + FullyQualifiedErrorId : 15011,Microsoft.SystemCenter.VirtualMachineManager.Cmdlets.RemoveSCVMNetworkCmdlet

Resolve Error 15011

Run Virtual Machine Manager Console > Navigate to 'VMs and services' >  'VM Networks' > right-click the Logical Network > Properties > Depedencies > Delete all subnet dependencies > OK > right-click the Logical Network again > Delete > OK

Leave a Reply

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

Related Post

Microsoft Hyper-V: Creating Windows Template (Golden Image)

Steps to Create a Windows Template Assuming that the Windows Template guest VM has already…

PowerShell: Remove Virtual Machine Snapshots in VMM

Base Cmdlets: $vmmServer='SOMETHINGHERE' $vmName='VMNAMEHERE' $snapshots=Get-SCVMCheckpoint -vmmserver $vmmServer -vm $(get-scvirtualmachine $vmName) $snapshots|%{Remove-SCVMCheckpoint -VMCheckpoint $_} Automation: #…

Resume All Guest VMs in a Clustered Hyper-V Environment

# resumeAllVms.ps1 # Significance: this script is useful in a Clustered Hyper-V environment # where…