新增、停用、啟用或刪除端點Add, disable, enable, or delete endpoints

不論網站模式為何,Azure App Service 中的 Web Apps 功能已為資料中心內的網站提供容錯移轉和循環配置資源流量路由功能。The Web Apps feature in Azure App Service already provides failover and round-robin traffic routing functionality for websites within a datacenter, regardless of the website mode. Azure 流量管理員可讓您在不同的資料中心的網站和雲端服務中指定容錯移轉和循環配置資源流量路由。Azure Traffic Manager allows you to specify failover and round-robin traffic routing for websites and cloud services in different datacenters. 提供該項功能的首要步驟是將雲端服務或網站端點新增至流量管理員。The first step necessary to provide that functionality is to add the cloud service or website endpoint to Traffic Manager.

您也可以停用屬於流量管理員設定檔一部分的個別端點。You can also disable individual endpoints that are part of a Traffic Manager profile. 停用端點會將端點做為設定檔的一部分保留,但是設定檔會以好像未包含端點的方式運作。Disabling an endpoint leaves it as part of the profile, but the profile acts as if the endpoint is not included in it. 此動作對於暫時移除處於維護模式、或被重新部署的端點而言很有用。This action is useful for temporarily removing an endpoint that is in maintenance mode or being redeployed. 在重新啟動並執行端點之後,您可以將它啟用。Once the endpoint is up and running again, it can be enabled.

注意

停用端點會與其在 Azure 中的部署狀態無關。Disabling an endpoint has nothing to do with its deployment state in Azure. 健全的端點將會持續運作,並且即使在流量管理員中停用該服務時仍然可以接收流量。A healthy endpoint remains up and able to receive traffic even when disabled in Traffic Manager. 此外,在一個設定檔中停用端點並不會影響它在另一個設定檔中的狀態。Additionally, disabling an endpoint in one profile does not affect its status in another profile.

若要將雲端服務或應用程式服務端點新增至流量管理員設定檔:To add a cloud service or an App service endpoint to a Traffic Manager profile

  1. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal.
  2. 在入口網站的搜尋列中,搜尋您要修改的流量管理員設定檔名稱,然後在顯示的結果中按一下 [流量管理員設定檔]。In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then click the Traffic Manager profile in the results that the displayed.
  3. 在 [流量管理員設定檔]**** 刀鋒視窗中,請在 [設定]**** 區段中按一下 [端點]****。In the Traffic Manager profile blade, in the Settings section, click Endpoints.
  4. 在顯示的 [端點]**** 刀鋒視窗中,按一下 [新增]****。In the Endpoints blade that is displayed, click Add.
  5. 在 [新增端點]**** 刀鋒視窗中,如下所示操作︰In the Add endpoint blade, complete as follows:
    1. 在 [類型]**** 中,按一下 [Azure 端點]****。For Type, click Azure endpoint.
    2. 提供您要用來識別這個端點的 [名稱]****。Provide a Name by which you want to recognize this endpoint.
    3. 對於 [目標資源類型]****,從下拉式清單中選擇適當的資源類型。For Target resource type, from the drop-down, choose the appropriate resource type.
    4. 對於 [目標資源]****,按一下 [選擇...]**** 以在 [資源]**** 刀鋒視窗中列出相同訂用帳戶下的資源。For Target resource, click the Choose... selector to list resources under the same subscription in the Resources blade. 在顯示的 [資源]**** 刀鋒視窗中,挑選您想要新增為第一個端點的服務。In the Resource blade that is displayed, pick the service that you want to add as the first endpoint.
    5. 在 [優先順序]**** 中,選取 [1]****。For Priority, select as 1. 這會使得所有流量傳送至此端點 (如果狀況良好)。This results in all traffic going to this endpoint if it is healthy.
    6. 維持不勾選 [新增為已停用]****。Keep Add as disabled unchecked.
    7. 按一下 [檔案] > [新增] > [專案] Click OK
  6. 重複步驟 4 和 5,新增下一個 Azure 端點。Repeat steps 4 and 5 to add the next Azure endpoint. 新增它時務必將 [優先順序]**** 值設為 [2]****。Make sure to add it with its Priority value set at 2.
  7. 這兩個端點新增完畢後,它們會顯示在 [流量管理員設定檔]**** 刀鋒視窗中,而且監視狀態是 [線上]****。When the addition of both endpoints is complete, they are displayed in the Traffic Manager profile blade along with their monitoring status as Online.

注意

在使用容錯移轉** 流量路由方法從設定檔新增或移除端點後,容錯移轉優先權清單可能無法依您想要的方式排序。After you add or remove an endpoint from a profile using the Failover traffic routing method, the failover priority list may not be ordered the way you want. 您可以在 [組態] 頁面上調整容錯移轉優先順序清單的順序。You can adjust the order of the Failover Priority List on the Configuration page. 如需詳細資訊,請參閱 設定容錯移轉流量路由For more information, see Configure Failover traffic routing.

若要停用端點To disable an endpoint

  1. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal.
  2. 在入口網站的搜尋列中,搜尋您想要修改的流量管理員設定檔名稱,然後按一下結果中顯示的流量管理員設定檔。In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then click the Traffic Manager profile in the results that are displayed.
  3. 在 [流量管理員設定檔]**** 刀鋒視窗中,請在 [設定]**** 區段中按一下 [端點]****。In the Traffic Manager profile blade, in the Settings section, click Endpoints.
  4. 按一下您要停用的端點。Click the endpoint that you want to disable.
  5. 在 [端點]**** 刀鋒視窗中,將端點狀態變更為 [已停用]****,然後按一下 [儲存]****。In the Endpoint blade, change the endpoint status to Disabled, and then click Save.
  6. 用戶端會繼續將流量傳送至端點以取得存留時間 (TTL) 持續時間。Clients continue to send traffic to the endpoint for the duration of Time-to-Live (TTL). 您可以在流量管理員設定檔的 [組態] 頁面上變更 TTL。You can change the TTL on the Configuration page of the Traffic Manager profile.

若要啟用端點To enable an endpoint

  1. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal.
  2. 在入口網站的搜尋列中,搜尋您想要修改的流量管理員設定檔名稱,然後按一下結果中顯示的流量管理員設定檔。In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then click the Traffic Manager profile in the results that are displayed.
  3. 在 [流量管理員設定檔]**** 刀鋒視窗中,請在 [設定]**** 區段中按一下 [端點]****。In the Traffic Manager profile blade, in the Settings section, click Endpoints.
  4. 按一下您要啟用的端點。Click the endpoint that you want to enable.
  5. 在 [端點]**** 刀鋒視窗中,將端點狀態變更為 [已啟用]****,然後按一下 [儲存]****。In the Endpoint blade, change the endpoint status to Enabled, and then click Save.
  6. 用戶端會繼續將流量傳送至端點以取得存留時間 (TTL) 持續時間。Clients continue to send traffic to the endpoint for the duration of Time-to-Live (TTL). 您可以在流量管理員設定檔的 [組態] 頁面上變更 TTL。You can change the TTL on the Configuration page of the Traffic Manager profile.

若要刪除端點:To delete an endpoint

  1. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal.
  2. 在入口網站的搜尋列中,搜尋您想要修改的流量管理員設定檔名稱,然後按一下結果中顯示的流量管理員設定檔。In the portal’s search bar, search for the Traffic Manager profile name that you want to modify, and then click the Traffic Manager profile in the results that are displayed.
  3. 在 [流量管理員設定檔]**** 刀鋒視窗中,請在 [設定]**** 區段中按一下 [端點]****。In the Traffic Manager profile blade, in the Settings section, click Endpoints.
  4. 按一下您要刪除的端點。Click the endpoint that you want to delete.
  5. 在 [端點] 分頁中,按一下 [刪除]In the Endpoint blade, click Delete

後續步驟Next steps