Skip to content

Find-FreeSubnets freezes when there are multiple address spaces #36

@KasperKornak

Description

@KasperKornak

Hi David,

I have virtual network with two address spaces added to it. One with standard, private space, the second is an address range that is globally routable. Before adding the second address space, the command worked flawlessly, however it changed once the second space appeared. Right now, when running the standard Find-FreeSubnets command:

$result = Find-FreeSubnets -ResourceGroup my_rg -VNetName my_vnet

it's stuck and I get timeouts after 3 hours of inactivity in Automation Workbooks (same thing happens on my local PC, timeout excluded 😄).
Once ran with -Debug parameter, I can see that the command stops at GetAzureVirtualNetworkCommand, after all network resources are fetched correctly from Azure:

DEBUG: 16:15:25 - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 16:15:25 - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 16:15:25 - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent:  Module: Az.Network:7.5.0; CommandName: Get-AzVirtualNetwork; PSVersion: 7.2.9; IsSuccess: True; Duration: 00:00:00.6666852; SanitizeDuration: 00:00:00.0001089
DEBUG: 16:15:25 - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 16:15:25 - GetAzureVirtualNetworkCommand end processing.

Could you consider investigating the issue?

Best regards,
Kasper

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions