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

Dell OpenManage and ESXi 6.0 Integration

Install OpenManage on ESX 5.1 to 6.0: ----------------------------------------------- Check to see whether OpenManage is already…

PowerShell: Set Virtual Machine Default Paths on Hyper-V Host of a Cluster

$newVirtualMachinePath='D:\VirtualMachines' $newVirtualHardDiskPath='D:\VirtualMachines' function getHyperVHostsInForest{ function includeRSAT{ $ErrorActionPreference='stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 #$rsatWindows7x32='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x86-RefreshPkg.msu' $rsatWindows7x64='https://download.microsoft.com/download/4/F/7/4F71806A-1C56-4EF2-9B4F-9870C4CFD2EE/Windows6.1-KB958830-x64-RefreshPkg.msu' $rsatWindows81='https://download.microsoft.com/download/1/8/E/18EA4843-C596-4542-9236-DE46F780806E/Windows8.1-KB2693643-x64.msu' $rsat1709 =…

Kubernetes – Pausing Applications by Scaling Deployments or Stateful Sets

# Pause application kubectl scale deploy nextcloud --replicas=0 kubectl scale statefulsets nextcloud-db-postgresql --replicas=0 kubectl scale…