Skip to content

Commit

Permalink
fix listsubresource empty error (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrat2005 authored Nov 8, 2023
1 parent 0a23cc6 commit 7315fc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AzureBasicLoadBalancerUpgrade'

# Version number of this module.
ModuleVersion = '2.3.3'
ModuleVersion = '2.3.4'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -107,7 +107,7 @@
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Fixed issue with creating a reference object of the VMSS, resulting inconsistent NAT Pool membership'
ReleaseNotes = 'Fix spurious error when calling _HardCopyObject when an IPConfig has no pool membership'

# Prerelease string of this module
# Prerelease = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ function _MigrateNetworkInterfaceConfigurationsVmss {
}
}
# Taking a hard copy of the object and assigning, it's important because the object was passed by reference
$ipConfiguration.LoadBalancerBackendAddressPools = _HardCopyObject -listSubResource $genericListSubResource
If ($genericListSubResource.Count -gt 0) {
$ipConfiguration.LoadBalancerBackendAddressPools = _HardCopyObject -listSubResource $genericListSubResource
}
$genericListSubResource.Clear()
}
}
Expand Down

0 comments on commit 7315fc5

Please sign in to comment.