Skip to content

Commit

Permalink
Added the correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepjha-microsoft committed Dec 5, 2024
1 parent 8d2d66c commit bb89f62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Deployment/resourcedeployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -667,14 +667,15 @@ try {
az network public-ip update --resource-group $aksResourceGroupName --name $publicIpName --dns-name $dnsName

# 6-4. Get FQDN for the public IP address
$fqdn = az network public-ip show --resource-group $aksResourceGroupName --name $publicIpName --query "dnsSettings.fqdn" --output tsv
#$fqdn = az network public-ip show --resource-group $aksResourceGroupName --name $publicIpName --query "dnsSettings.fqdn" --output tsv
$fqdn = $null
# Validate if the FQDN is null or empty
ValidateVariableIsNullOrEmpty -variableValue $fqdn -variableName "FQDN"

# 7. Assign the role for aks system assigned managed identity to App Configuration Data Reader role with the scope of Resourcegroup
Write-Host "Assign the role for aks system assigned managed identity to App Configuration Data Reader role" -ForegroundColor Green
# Ensure that the required fields are not null or empty
ValidateVariableIsNullOrEmpty -variableValue $deploymentResult.ResourceGroupName -variableName "Resource group name for AKS deployment"
ValidateVariableIsNullOrEmpty -variableValue $deploymentResult.ResourceGroupName -variableName "Resource group name"

ValidateVariableIsNullOrEmpty -variableValue $deploymentResult.AksName -variableName "AKS cluster name"

Expand Down

0 comments on commit bb89f62

Please sign in to comment.