Azure 应用程序网关的自定义域

2023-11-27

我正在尝试使用自定义域名创建应用程序网关,但不断收到错误消息“无法指定域名标签”。

我想知道我是否做错了什么或者天蓝色应用程序网关不可能拥有自定义域名?


以下是我在天蓝色应用程序网关方面学到的经验教训:

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:

Login-AzureRmAccount
Set-AzureRmContext -SubscriptionName '<Azure Subscription Name>'

$resourceGroup = 'myresourcegroup'
$pubIpName     = 'mypubip'

Get-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Name $pubIpName

在上面的脚本返回的内容中查找类似的内容:

DnsSettingsText: {
    "Fqdn": "00000000-1111-2222-3333-444444444444.cloudapp.net"
}

FQDN 是您用来设置 CNAME 的名称。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Azure 应用程序网关的自定义域 的相关文章

随机推荐