2016-10-10 25 views
1

我的要求是要接入光纖應用基於租戶域Azure的服務結構,通過域名訪問應用

eg: i had 3 services 

1)CustomerApps 
2)CompanyApps 
3)SignInApps 

All the above apps deployed on azure service fabric Cluster 

我已經創建自定義域在Azure的活動目錄,並驗證域名與註冊(如:godady)

So, now i want to display each fabric Application based on Tenant/Domain name like, assumed i had custom domain dev-tennat.xyz.com 

so,application url will be 
dev-tennat.xyz.com/SignInApps 
dev-tennat.xyz.com/CompanyApps 
dev-tennat.xyz.com/CustomerApps 

回答

1

1)您的域名(例如「your-domain.xyz.com」)應該是A類型的,並且必須指向您的負載均衡器公有IP。您可以在負載平衡器的概述下找到IP。

lbip

2)您需要爲您的負載平衡配置自定義探針。

go to 「Probes」 under 「Settings」 category. 
Select HTTP protocol 
i’ve set port to 80 as i wanted something to be visible by default 
In 「Path」 field you specify endpoint you want to expose it can be 「/」 or 「/api/customapi」 
Interval – set value in seconds. Every ‘n’ seconds your 「Path」 will be triggered to check if app is alive 

3)您需要配置自定義規則

轉到「負載平衡規則」下的「設置」類別,並創建新的規則。創建新規則時:

「Port」 is your publicly exposed port (80 in my case), 
「Backend port」 is internal port of your app (you can find it in service manifest in <EndPoint /> element. In my case it’s 8164) 

在「探針」字段中,選擇之前創建的探針。

根據需要還有一些截圖: https://eduardlos.wordpress.com/2016/10/10/how-to-access-your-app-when-deployed-to-azure-service-fabric-cluster/