檢查 Azure Stack Edge 裝置的網路整備程度

適用于: Yes for Pro GPU SKU Azure Stack Edge Pro - GPU Yes for Pro 2 SKU Azure Stack Edge Pro 2 Yes for Pro R SKU Azure Stack Edge Pro R Yes for Mini R SKU Azure Stack Edge Mini R

本文說明如何檢查網路如何準備好部署 Azure Stack Edge 裝置。

您將使用 Azure Stack 網路整備檢查程式,這是一種 PowerShell 工具,其會執行一系列測試,以檢查部署 Azure Stack Edge 裝置之網路上的必要和選擇性設定。 此工具會針對每個測試傳回[通過/失敗] 狀態,並儲存記錄檔和報告檔案,並提供更多詳細資料。

您可以從將部署 Azure Stack Edge 裝置之網路上的任何電腦執行此工具。 此工具適用于 Windows 內建的 PowerShell 5.1。

關於工具

Azure Stack 網路整備檢查工具可以檢查網路是否符合下列必要條件:

  • 網域名稱系統 (DNS) 伺服器可供使用且正常運作。

  • 網路時間通訊協定 (NTP) 伺服器可供使用且正常運作。

  • Azure 端點可在 HTTPS 上使用,並在 HTTPS 上使用或沒有 Proxy 伺服器回應。

  • Windows Update 伺服器 - 客戶提供的 Windows Server Update 服務 (WSUS) 伺服器或公用 Windows Update 伺服器 - 可供使用且正常運作。

  • 根據 Azure Stack Edge 服務的要求,網路路徑的最大傳輸單位 (MTU) 至少為 1,500 個位元組。

  • Edge Compute 沒有重迭的 IP 位址。

  • 您可以解析 Azure Stack Edge 的 DNS 資源記錄。

報表檔案

此工具會儲存報告 AzsReadinessCheckerReport.json ,其中包含在每個測試期間收集的詳細診斷。 如果您需要 連絡Microsoft 支援服務 ,這項資訊會很有説明。

例如,報表提供:

  • 電腦上用來執行測試的網路介面卡清單,其中包含每個網路介面卡的驅動程式版本、MAC 位址和線上狀態。

  • 用來執行測試之電腦的 IP 組態。

  • DNS 伺服器針對每個測試傳回的詳細 DNS 回應屬性。

  • 每個 URL 測試的詳細 HTTP 回應。

  • 每個測試的網路路由追蹤。

必要條件

開始之前,請先完成下列工作:

安裝網路整備檢查程式

若要在用戶端電腦上安裝 Azure Stack 網路整備檢查程式,請執行下列步驟:

  1. 在用戶端電腦上開啟 PowerShell。 如果您需要安裝 PowerShell,請參閱 在 Windows 上安裝 PowerShell。

  2. 在瀏覽器中,移至 PowerShell 資源庫中的 Microsoft.AzureStack.ReadinessChecker 。 Microsoft.AzureStack.ReadinessChecker 模組的版本 1.2100.1780.756 隨即顯示。

  3. 在 [ 安裝模組 ] 索引標籤上,選取 [複製] 圖示以複製安裝 Microsoft.AzureStack.ReadinessChecker 1.2100.1396.426 版的 Install-Module 命令。

    Screenshot showing the download page for the Azure Stack Edge Network Readiness Checker tool. The Install Module tab and the Copy icon are highlighted.

  4. 在 PowerShell 命令提示字元中貼上命令,然後按 Enter

  5. 在下列提示中按 Y (是)或 A (是至全部)以安裝模組。

    Untrusted repository
    You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'?
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"):
    

執行網路整備檢查

當您執行 Azure Stack 網路整備檢查工具時,您必須從 Azure Stack Edge Pro GPU 裝置 部署檢查清單提供網路和裝置資訊。

若要執行網路整備檢查,請執行下列步驟:

  1. 在您將部署 Azure Stack Edge 裝置的網路上執行的用戶端電腦上開啟 PowerShell。

  2. 輸入下列命令以執行網路整備檢查:

    Invoke-AzsNetworkValidation -DnsServer <string[]> -DeviceFqdn <string> [-TimeServer <string[]>] `
      [-Proxy <uri>] [-ProxyCredential <pscredential>] [-WindowsUpdateServer <uri[]>] [-CustomUrl <url[]>] `
      [-AzureEnvironment {AzureCloud | AzureChinaCloud | AzureGermanCloud | AzureUSGovernment | CustomCloud}] `
      [-SkipTests {LinkLayer | IPConfig | DnsServer | TimeServer | PathMtu | DuplicateIP | AzureEndpoint | WindowsUpdateServer | DnsRegistration}] `
      [-OutputPath <string>]
    

    若要取得有意義的網路整備檢查程式結果,以找出網路設定中的主要問題,您需要包含套用至您環境的所有下列參數。

    參數 描述
    -DnsServer DNS 伺服器的 IP 位址(例如,您的主要和次要 DNS 伺服器)。
    -DeviceFqdn 您打算用於 Azure Stack Edge 裝置的完整功能變數名稱 (FQDN)。
    -TimeServer 一或多個網路時間通訊協定 (NTP) 伺服器的 FQDN。 (建議使用)
    -Proxy 如果您使用 Proxy 伺服器,則為 Proxy 伺服器的 URI。 (選擇性)
    -ProxyCredential PSCredential 物件 ,其中包含 Proxy 伺服器上所使用的使用者名稱和密碼。 (如果 Proxy 伺服器需要使用者驗證,則為必要專案)
    -WindowsUpdateServer 一或多個 Windows Server Update Services (WSUS) 伺服器的 URI。 (選擇性)
    -ComputeIPs Kubernetes 要使用的計算 IP 範圍。 指定以連字號分隔的起始 IP 和結束 IP。
    -CustomUrl 列出您想要測試 HTTP 存取的其他 URL。 (選擇性)
    -AzureEnvironment 指出 Azure 環境。 如果裝置部署至 Azure 公用雲端以外的環境,則為必要專案。
    -SkipTests 可用來排除測試。 (選擇性)
    以逗號分隔測試名稱。
    -OutputPath 告知從測試儲存記錄檔和報告的位置。 (選擇性)
    如果您未使用此路徑,檔案會儲存在下列路徑中: C:\Users\<username>\AppData\Local\Temp\AzsReadinessChecker\
    網路整備檢查程式的每個執行都會覆寫現有的報告。

範例輸出

下列範例是 Azure Stack 網路整備檢查工具執行成功且失敗的輸出。

範例輸出:成功測試

下列範例是使用下列參數成功執行網路整備檢查工具的輸出:

Invoke-AzsNetworkValidation -DnsServer '10.50.10.50', '10.50.50.50' -DeviceFqdn 'aseclient.contoso.com' -TimeServer 'pool.ntp.org' -Proxy 'http://proxy.contoso.com:3128/' -SkipTests DuplicateIP -WindowsUpdateServer 'http://ase-prod.contoso.com' -OutputPath `C:\ase-network-tests`

此工具傳回此輸出:

PS C:\Users\Administrator> Invoke-AzsNetworkValidation -DnsServer '10.50.10.50', '10.50.50.50' -DeviceFqdn 'aseclient.contoso.com' -TimeServer 'pool.ntp.org' -Proxy 'http://proxy.contoso.com:3128/' -SkipTests DuplicateIP -WindowsUpdateServer 'http://ase-prod.contoso.com' -OutputPath C:\ase-network-tests

Invoke-AzsNetworkValidation v1.2100.1396.426 started.
The following tests will be executed: LinkLayer, IPConfig, DnsServer, PathMtu, TimeServer, AzureEndpoint, WindowsUpdateServer, DnsRegistration, Proxy
Validating input parameters
Validating Azure Stack Edge Network Readiness
        Link Layer: OK
        IP Configuration: OK
 Using network adapter name 'vEthernet (corp-1g-Static)', description 'Hyper-V Virtual Ethernet Adapter'
        DNS Server 10.50.10.50: OK
        DNS Server 10.50.50.50: OK
        Network Path MTU: OK
        Time Server pool.ntp.org: OK
        Proxy Server 10.57.48.80: OK
        Azure ARM Endpoint: OK
        Azure Graph Endpoint: OK
        Azure Login Endpoint: OK
        Azure ManagementService Endpoint: OK
        Azure AseService Endpoint: OK
        Azure AseServiceBus Endpoint: OK
        Azure AseStorageAccount Endpoint: OK
        Windows Update Server ase-prod.contoso.com port 80: OK
        DNS Registration for aseclient.contoso.com: OK
        DNS Registration for login.aseclient.contoso.com: OK
        DNS Registration for management.aseclient.contoso.com: OK
        DNS Registration for *.blob.aseclient.contoso.com: OK
        DNS Registration for compute.aseclient.contoso.com: OK

Log location (contains PII): C:\ase-network-tests\AzsReadinessChecker.log
Report location (contains PII): C:\ase-network-tests\AzsReadinessCheckerReport.json
Invoke-AzsNetworkValidation Completed

範例輸出:測試失敗

如果測試失敗,網路整備檢查程式會傳回信息以協助您解決問題,如下列範例輸出所示。

下列範例是此命令的輸出:

Invoke-AzsNetworkValidation -DnsServer '10.50.10.50' -TimeServer 'time.windows.com' -DeviceFqdn aseclient.contoso.com -ComputeIPs 10.10.52.1-10.10.52.20 -CustomUrl 'http://www.nytimes.com','http://fakename.fakeurl.com'

此工具傳回此輸出:

PS C:\Users\Administrator> Invoke-AzsNetworkValidation -DnsServer '10.50.10.50' -TimeServer 'time.windows.com' -DeviceFqdn aseclient.contoso.com -ComputeIPs 10.10.52.1-10.10.52.20 -CustomUrl 'http://www.nytimes.com','http://fakename.fakeurl.com'

Invoke-AzsNetworkValidation v1.2100.1396.426 started.
Validating input parameters
The following tests will be executed: LinkLayer, IPConfig, DnsServer, PathMtu, TimeServer, AzureEndpoint, WindowsUpdateServer, DuplicateIP, DnsRegistration, CustomUrl
Validating Azure Stack Edge Network Readiness
        Link Layer: OK
        IP Configuration: OK
        DNS Server 10.50.10.50: OK
        Network Path MTU: OK
        Time Server time.windows.com: OK
        Azure ARM Endpoint: OK
        Azure Graph Endpoint: OK
        Azure Login Endpoint: OK
        Azure ManagementService Endpoint: OK
        Azure AseService Endpoint: OK
        Azure AseServiceBus Endpoint: OK
        Azure AseStorageAccount Endpoint: OK
        URL http://www.nytimes.com/: OK
        URL http://fakename.fakeurl.com/: Fail
        Windows Update Server windowsupdate.microsoft.com port 80: OK
        Windows Update Server update.microsoft.com port 80: OK
        Windows Update Server update.microsoft.com port 443: OK
        Windows Update Server download.windowsupdate.com port 80: OK
        Windows Update Server download.microsoft.com port 443: OK
        Windows Update Server go.microsoft.com port 80: OK
        Duplicate IP: Warning
        DNS Registration for aseclient.contoso.com: OK
        DNS Registration for login.aseclient.contoso.com: Fail
        DNS Registration for management.aseclient.contoso.com: Fail
        DNS Registration for *.blob.aseclient.contoso.com: Fail
        DNS Registration for compute.aseclient.contoso.com: Fail
Details:
[-] URL http://fakename.fakeurl.com/: fakename.fakeurl.com : DNS name does not exist
[-] Duplicate IP: Some IP addresses allocated to Azure Stack may be active on the network. Check the output log for the detailed list.
[-] DNS Registration for login.aseclient.contoso.com: login.aseclient.contoso.com : DNS name does not exist
[-] DNS Registration for management.aseclient.contoso.com: management.aseclient.contoso.com : DNS name does not exist
[-] DNS Registration for *.blob.aseclient.contoso.com: testname.aseclient.contoso.com : DNS name does not exist
[-] DNS Registration for compute.aseclient.contoso.com: compute.aseclient.contoso.com : DNS name does not exist
Additional help URL http://aka.ms/azsnrc

Log location (contains PII): C:\Users\[*redacted*]\AppData\Local\Temp\AzsReadinessChecker\AzsReadinessChecker.log
Report location (contains PII): C:\Users\[*redacted*]\AppData\Local\Temp\AzsReadinessChecker\AzsReadinessCheckerReport.json
Invoke-AzsNetworkValidation Completed

檢閱記錄和報告

如需詳細資訊,您可以檢閱記錄和報告。 根據預設,這兩個檔案都會儲存在下列位置:

  • 日誌: C:\Users\<username>\AppData\Local\Temp\AzsReadinessChecker\AzrReadinessChecker.log
  • 報告: C:\Users\<username>\AppData\Local\Temp\AzsReadinessChecker\AzrReadinessCheckerReport.json

下一步