管理 Azure 流量管理員設定檔Manage an Azure Traffic Manager profile

流量管理員設定檔會使用流量路由方法來控制分散到您雲端服務或網站端點的流量。Traffic Manager profiles use traffic-routing methods to control the distribution of traffic to your cloud services or website endpoints. 本文說明如何建立及管理這些設定檔。This article explains how to create and manage these profiles.

建立流量管理員設定檔Create a Traffic Manager profile

您可以使用 Azure 入口網站來建立流量管理員設定檔。You can create a Traffic Manager profile by using the Azure portal. 建立設定檔之後,您就可以在 Azure 入口網站中設定端點、監視及其他設定。After creating your profile, you can configure endpoints, monitoring, and other settings in the Azure portal. 流量管理員每個設定檔最多支援 200 個端點。Traffic Manager supports up to 200 endpoints per profile. 不過,大部分的使用案例僅需要少量的端點。However, most usage scenarios require only a few of endpoints.

若要建立流量管理員設定檔To create a Traffic Manager profile

  1. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal. 如果您還沒有帳戶,您可以註冊一個月免費試用If you don’t already have an account, you can sign up for a free one-month trial.
  2. 按一下 [建立資源 > ] [網路 > ]流量管理員設定檔 > ] [建立]。Click Create a resource > Networking > Traffic Manager profile > Create.
  3. 在 [建立流量管理員設定檔]**** 中,如下所示操作:In the Create Traffic Manager profile, complete as follows:
    1. 在 [名稱]**** 中,提供設定檔的名稱。In Name, provide a name for your profile. 此名稱在 trafficmanager.net 區域內必須是唯一的,而且會產生 DNS 名稱 <name>, trafficmanager.net,用以存取您的流量管理員設定檔。This name needs to be unique within the trafficmanager.net zone and results in the DNS name <name>, trafficmanager.net, that is used to access your Traffic Manager profile.
    2. 在 [路由方法]**** 中,選取 [優先順序]**** 路由方法。In Routing method, select the Priority routing method.
    3. 在 [訂用帳戶]**** 中,選取您要用來建立此設定檔的訂用帳戶In Subscription, select the subscription you want to create this profile under
    4. 在 [資源群組]**** 中,建立新的資源群組來放置此設定檔。In Resource Group, create a new resource group to place this profile under.
    5. 在 [資源群組位置]**** 中,選取資源群組的位置。In Resource group location, select the location of the resource group. 這項設定是指資源群組的位置,完全不影響將部署到全球的流量管理員設定檔。This setting refers to the location of the resource group, and has no impact on the Traffic Manager profile that will be deployed globally.
    6. 按一下 [建立] 。Click Create.
    7. 當流量管理員設定檔的全球部署完成時,它會列為個別資源群組的其中一個資源。When the global deployment of your Traffic Manager profile is complete, it is listed in respective resource group as one of the resources.

停用、啟用或刪除設定檔Disable, enable, or delete a profile

您可以停用現有的設定檔,流量管理員就不會將使用者要求轉介到設定的端點。You can disable an existing profile so that Traffic Manager does not refer user requests to the configured endpoints. 當您停用流量管理員設定檔時,設定檔和設定檔內含的資訊將保持不變,而且可在流量管理員介面中進行編輯。When you disable a Traffic Manager profile, the profile and the information contained in the profile remain intact and can be edited in the Traffic Manager interface. 當您重新啟用設定檔時,就會繼續轉介。Referrals resume when you re-enable the profile. 當您在 Azure 入口網站中建立流量管理員設定檔時,它會自動啟用。When you create a Traffic Manager profile in the Azure portal, it's automatically enabled. 如果您決定不再需要某個設定檔,可以將它刪除。If you decide a profile is no longer necessary, you can delete it.

停用設定檔To disable a profile

  1. 如果您使用的是自訂網域名稱,則變更網際網路 DNS 伺服器上的 CNAME 記錄,它就不會再指向流量管理員設定檔。If you are using a custom domain name, change the CNAME record on your Internet DNS server so that it no longer points to your Traffic Manager profile.
  2. 流量會停止導向至透過流量管理員設定檔設定的端點。Traffic stops being directed to the endpoints through the Traffic Manager profile settings.
  3. 從瀏覽器登入 Azure 入口網站From a browser, sign in to the Azure portal.
  4. 在入口網站的搜尋列中,搜尋您要修改的流量管理員設定檔名稱,然後在顯示的結果中按一下 [流量管理員設定檔]。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.
  5. 按一下 [總覽] [ > 用]。Click Overview > Disable.
  6. 確認停用流量管理員設定檔。Confirm to disable the Traffic Manager profile.

啟用設定檔To enable a 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. 按一下 [總覽] [ > 啟用]。Click Overview > Enable.
  4. 如果您使用的是自訂網域名稱,請在網際網路 DNS 伺服器上建立 CNAME 資源記錄,以指向流量管理員設定檔的網域名稱。If you are using a custom domain name, create a CNAME resource record on your Internet DNS server to point to the domain name of your Traffic Manager profile.
  5. 流量會再次導向至各端點。Traffic is directed to the endpoints again.

刪除設定檔To delete a profile

  1. 請確定網際網路 DNS 伺服器上的 DNS 資源記錄所使用的 CNAME 資源記錄,不再指向流量管理員設定檔的網域名稱。Ensure that the DNS resource record on your Internet DNS server no longer uses a CNAME resource record that points to the domain name of your Traffic Manager profile.
  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. 按一下 [總覽] [ > 刪除]。Click Overview > Delete.
  4. 確認刪除流量管理員設定檔。Confirm to delete the Traffic Manager profile.

後續步驟Next steps