Skip to content

Commit

Permalink
Merge pull request #176 from Azure/getnamespaceinfo_fix
Browse files Browse the repository at this point in the history
GetNamespaceInfo.ps1 Fix for Namespaces with Privatelink
  • Loading branch information
jbjordan authored Oct 23, 2024
2 parents c9c814b + 58642cc commit e7f6354
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/GetNamespaceInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ function Get-SBNamespaceInfo

$PropertyBag = @{Namespace=$ns}
$CloudServiceDNS = (Resolve-DnsName $ns -Type CNAME).NameHost

if ($CloudServiceDNS.contains(".privatelink.servicebus"))
{
$CloudServiceDNS = (Resolve-DnsName $CloudServiceDNS -Type CNAME).NameHost
}

if ($CloudServiceDNS)
{
$CloudServiceVIP = (Resolve-DnsName $CloudServiceDNS -Type A).IPAddress
Expand Down Expand Up @@ -123,4 +129,4 @@ if (!$NoIPs.IsPresent)
$SBDetails.GvDirectAddresses | Format-Table
}

}
}

0 comments on commit e7f6354

Please sign in to comment.