diff --git a/Deployment/resourcedeployment.ps1 b/Deployment/resourcedeployment.ps1 index 3ddf1bd4..f351e8f2 100644 --- a/Deployment/resourcedeployment.ps1 +++ b/Deployment/resourcedeployment.ps1 @@ -683,7 +683,7 @@ try { # 6. Assign DNS Name to the public IP address # 6-1. Get Az Network resource Name with the public IP address Write-Host "Assign DNS Name to the public IP address" -ForegroundColor Green - $publicIpName=$(az network public-ip list --query "[?ipAddress=='$externalIP'].name" --output tsv) + $publicIpName=$(az network public-ip list --resource-group $aksResourceGroupName --query "[?ipAddress=='$externalIP'].name" --output tsv) # 6-2. Generate Unique backend API fqdn Name - esgdocanalysis-3 digit random number with padding 0 $dnsName = "kmgs$($(Get-Random -Minimum 0 -Maximum 9999).ToString("D4"))"