From 32b7e9d0aff70317fd77da87985fee8c5c46520c Mon Sep 17 00:00:00 2001 From: Jochen Ehret Date: Tue, 23 Sep 2025 14:00:05 +0200 Subject: [PATCH] Add "Azure" to DNS advisory check --- bbl-up/task | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bbl-up/task b/bbl-up/task index d86366b9..a284940e 100755 --- a/bbl-up/task +++ b/bbl-up/task @@ -112,13 +112,15 @@ function main() { ${name_flag} \ ${lb_flags} "2>&1" ${drain} "${root_dir}/bbl_up.log" - ns_record_advisory="For DNS delegation to work, please ensure an NS record for ${LB_DOMAIN} is created in its parent DNS zone with the following nameservers:" + echo "For DNS delegation to work, please ensure an NS record for ${LB_DOMAIN} is created in its parent DNS zone with the following nameservers:" if [[ "$BBL_IAAS" == "aws" ]]; then - echo "$ns_record_advisory" bbl outputs | yq '.env_dns_zone_name_servers[0:4]' --output-format yaml | cut -d' ' -f2 - elif [[ "$BBL_IAAS" == "gcp" ]]; then - echo "$ns_record_advisory" - bbl outputs | yq '.system_domain_dns_servers' --output-format yaml | cut -d' ' -f2 + elif [[ "$BBL_IAAS" == "gcp" || "$BBL_IAAS" == "azure" ]]; then + if bbl outputs | yq '.system_domain_dns_servers' | grep -qv 'null'; then + bbl outputs | yq '.system_domain_dns_servers' --output-format yaml | cut -d' ' -f2 + else + echo "No .system_domain_dns_servers found in bbl outputs. Please refer to the GCP/Azure portal to get the DNS servers for the created DNS zone." + fi fi if [[ "${DELETE_TERRAFORM_PLUGINS}" == "true" ]]; then