在 Microsoft Entra ID 中新增自訂網域名稱

已完成

您可以使用 Azure 來新增組織的自訂網域名稱,並讓員工建立易記的使用者名稱。

在本課程模組中,您將了解如何:

  • 將自訂網域與現有的 Microsoft Entra 組織產生關聯。
  • 將自訂網域設定為主要網域。
  • 新增使用者。

除非已購買網域名稱並向網域名稱系統 (DNS) 提供者註冊,否則您無法完成此單元。

下列步驟會逐步引導您完成將自訂網域名稱新增至 Azure 的程序。 如果您擁有未使用的網域名稱,則可以在自己的 Microsoft Entra 組織中跟著操作。

將自訂網域名稱新增至 Microsoft Entra ID

在我們的案例中,您的公司有一個 Microsoft Entra 組織,您可以在其中新增網域名稱。

  1. 在 Microsoft Entra ID 的 [管理] 下,選取 [自訂網域名稱]

    Screenshot of the Overview page with Custom domain name highlighted.

  2. 選取 [+ 新增自訂網域]

  3. 針對 [自訂網域名稱],輸入網域名稱 proseware.com

  4. 選取 [新增網域]

  5. 複製 [proseware.com] 頁面上的 DNS 資訊。

    Screenshot of the verification page for a custom domain name.

將 DNS 資訊新增至網域註冊機構

  1. 移至網域註冊機構。

  2. 根據您從 Azure 複製的 DNS 資訊來建立網域記錄。 下列螢幕擷取畫面顯示新增至 Azure DNS 的文字記錄。 Azure DNS 是網域註冊機構。

    Screenshot of a domain registrar that shows a TXT record for the custom domain.

  3. 請等候至少一小時,讓 DNS 更新傳播。

在 Azure 中驗證自訂網域

  1. 在 Microsoft Entra ID 的 [管理] 下,選取 [自訂網域名稱]

  2. 選取自訂網域名稱。

  3. 選取 [驗證]

    Screenshot of the Verify button on the custom domain's DNS information page.

  4. 如果 Azure 確認正確記錄存在,則網域名稱狀態會變更為 [已驗證]。

    Screenshot of a list of custom domains with the domain proseware.com listed as verified.

  5. 若要新增子網域,請選取 [+ 新增網域名稱],然後輸入子網域名稱,例如 marketing.proseware.com。 您不需要重複驗證步驟。

    Screenshot of a list of custom domains with a callout highlighting the subdomain marketing.proseware.com with the status set to verified.

設定主要網域名稱

新增自訂網域名稱與任何子網域之後,請將其中一個網域名稱設定為主要。

  1. 從自訂網域名稱清單選取 [proseware.com]

  2. 選取 [設為主要]

    Screenshot of the information about the proseware.com domain with a checkmark next to Mark primary option.

  3. 選取 [是] 。

  4. 在自訂網域名稱清單中,您會看到 proseware.com 的 [主要] 欄現在為核取狀態。

使用 Azure PowerShell 管理自訂網域名稱

您可能偏好使用 Microsoft Graph PowerShell 來管理網域名稱。

  • New-MgDomain:建立新的網域。 使用參數 -IsDefault,將網域名稱設定為主要網域名稱。
  • Confirm-MgDomain:讓您嘗試驗證網域的擁有權。
  • Update-MgDomain:更新網域名稱,並可將網域設定為主要網域名稱。
  • Remove-MgDomain:從 Microsoft Entra ID 刪除網域。

新增使用者

新增自訂網域名稱並將其設定為主要網域之後,請新增使用者。

  1. 在 Azure 入口網站中,移至 [Microsoft Entra ID]

  2. 在窗格左側,於 [管理] 底下,選取 [使用者]

  3. 選取 [+ 新增使用者],然後選取 [建立新使用者]。

    Screenshot of adding a new user for a custom domain.

  4. 針對 [使用者名稱] 與 [名稱],輸入試驗使用者的值。 主要網域名稱會顯示為使用者名稱的一部分。

檢定您的知識

1.

如何驗證網域擁有權?

2.

建立自訂網域之前的預設網域名稱為何?