Last active
September 19, 2021 04:17
-
-
Save darkn3rd/130dcafe4a7ace7a43f8dca0b733ecc0 to your computer and use it in GitHub Desktop.
TF/AKS with ExternalDNS/AzureDNS - verify_dns_records.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set environment variables based on terraform.tfvars settings | |
export AZ_DNS_DOMAIN=$(terraform output -raw dns_zone_name) | |
export AZ_DNS_RESOURCE_GROUP=$(terraform output -raw dns_zone_resource_group_name) | |
# fetch list of reocords from the zoen | |
az network dns record-set list \ | |
--resource-group $AZ_DNS_RESOURCE_GROUP \ | |
--zone-name $AZ_DNS_DOMAIN \ | |
--output table |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment