Azure Frontend door 显示 "Our services aren't available right now " with service fabric 集群

Azure Frontend door shows "Our services aren't available right now " with service fabric cluster

我已经在 Azure 门户中设置了 Azure Frontdoor。我创建了

2 个前端主机

  1. myappdev1.azurefd.net
  2. dev1.myapp.com

具有以下内容的后端池

1.BackendHostName=myappdev1.northeurope.cloudapp.azure.com 2.Backendhostheader= dev1.myapp.com 3. HTTPS 端口 62652

和路由规则

使用 https 路由规则将前端映射到仅使用 HTTPS 的后端。 myappdev1.northeurope.cloudapp.azure.com 是一个服务架构集群,在端口 62652 上部署了一个 Web 应用程序,因此 url https://myappdev1.northeurope.cloudapp.azure.com:62652 可以正常工作。

我还在 CDN

中将 dev1.myapp.com 映射到 myappdev1.azurefd.net

但是 运行 或者 https://myappdev1.azurefd.net or https://dev1.myapp.com

我得到一个错误

Our services aren't available right now We're working to restore all services as soon as possible. Please check back soon.

解决方案是为 fabric 集群设置一个 DNS。这是一个用例 部署在 Service fabric 上的网站。网站的 URL 是 www.devopsguru.com

步骤如下

1. you have a domain :  devopsguru.com 
2. You have a AzureFrontdoor named : devopsguru.azurefd.net
3. you have a cluster named: myservicefabric.northeurope.cloudapp.azure.com.
4. Create a record set :myservicefabric.devopsguru.com and www.devopsguru.com 
5. Map myservicefabric.devopsguru.com to myservicefabric.northeurope.cloudapp.azure.com 
6. Map www.devopsguru.com to devopsguru.azurefd.net
7. Create a FrontendHosts for www.devopsguru.com
8. Create BackendPool called frontedbackendpool. 
9. Add Backends hosts with myservicefabric.devopsguru.com as Custom Host
10. Create Routing rules called frontendrules. In FrontendHosts select www.devopsguru.com  and backendpool select frontedbackendpool

应该就可以了