Azure应用程序网关的自定义域 [英] Custom domain for Azure application gateway
本文介绍了Azure应用程序网关的自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用自定义域名创建应用程序网关,但我不断收到错误消息,提示无法指定域名标签".
I am trying to create application gateway with custom domain name, I keep getting error saying "cannot have Domain Name Label specified."
我想知道我是在做错什么,还是azure应用程序网关不可能具有自定义域名?
I was wondering if I am doing something wrong or it's not possible for azure application gateway to have custom domain name ?
推荐答案
以下是我从天蓝色应用程序网关中学到的经验教训:
Here are my lessons learned regarding the azure application gateway:
1.) Application gateway does _not_ support statically addressed public IPs
2.) Application gateway does _not_ support public IPs with a DNS name (e.g. somename.cloudapp.net)
3.) The application gateway’s DNS name _should_ be used to create a CNAME record which points to a friendly DNS (i.e. myawesomesite.com)
4.) The use of an A-record is _not_ recommended because the VIP may change on restart of the application gateway
运行此powershell脚本以获取网关DNS:
Run this powershell script to get the gateway DNS:
Login-AzureRmAccount
Set-AzureRmContext -SubscriptionName '<Azure Subscription Name>'
$resourceGroup = 'myresourcegroup'
$pubIpName = 'mypubip'
Get-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Name $pubIpName
在上面的脚本返回的内容中寻找类似的内容:
Look for something like this in what's returned from the script above:
DnsSettingsText: {
"Fqdn": "00000000-1111-2222-3333-444444444444.cloudapp.net"
}
您将使用fqdn设置CNAME.
The fqdn is what you'll use to setup your CNAME.
这篇关于Azure应用程序网关的自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文