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

nit*_*inb 8 azure azure-application-gateway

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

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

Asp*_*uru 8

以下是关于azure应用程序网关的经验教训:

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
Run Code Online (Sandbox Code Playgroud)

运行此powershell脚本以获取网关DNS:

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

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

Get-AzureRmPublicIpAddress -ResourceGroupName $resourceGroup -Name $pubIpName
Run Code Online (Sandbox Code Playgroud)

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

DnsSettingsText: {
    "Fqdn": "00000000-1111-2222-3333-444444444444.cloudapp.net"
}
Run Code Online (Sandbox Code Playgroud)

fqdn是您用来设置CNAME的方法.


小智 6

它不受支持,您无法设置自定义DNS名称,我已经与微软支持部门打开了一张票.

您将拥有一个DNS名称,如:12-232-4-334-2-34-2343.cloudapp.net,您可以使用CNAME,例如,www.web.com转到12-232-4-334- 2-34-2343.cloudapp.net.

PD:同样,公共IP必须是动态的FYI.

  • 这是真的,是现存最糟糕的事情. (2认同)