Skip to content

Commit 36c12ca

Browse files
Merge pull request #281 from microsoft/public-dns-fix
fix: added resource group filter for az command
2 parents 0aba1bc + 554a5f6 commit 36c12ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Deployment/resourcedeployment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ try {
683683
# 6. Assign DNS Name to the public IP address
684684
# 6-1. Get Az Network resource Name with the public IP address
685685
Write-Host "Assign DNS Name to the public IP address" -ForegroundColor Green
686-
$publicIpName=$(az network public-ip list --query "[?ipAddress=='$externalIP'].name" --output tsv)
686+
$publicIpName=$(az network public-ip list --resource-group $aksResourceGroupName --query "[?ipAddress=='$externalIP'].name" --output tsv)
687687
# 6-2. Generate Unique backend API fqdn Name - esgdocanalysis-3 digit random number with padding 0
688688
$dnsName = "kmgs$($(Get-Random -Minimum 0 -Maximum 9999).ToString("D4"))"
689689

0 commit comments

Comments
 (0)