共用方式為


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

適用於:Yes for Pro GPU SKUAzure Stack Edge Pro - GPUYes for Pro 2 SKUAzure Stack Edge Pro 2Yes for Pro R SKUAzure Stack Edge Pro RYes for Mini R SKUAzure 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 上使用並回應 (無論有沒有 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 伺服器的 URI (如果您使用 Proxy 伺服器)。 (選擇性)
    -ProxyCredential PSCredential 物件,其中包含 Proxy 伺服器上所使用的使用者名稱和密碼。 (如果 Proxy 伺服器需要使用者驗證,此為必要項目)
    -WindowsUpdateServer 一個或多個 Windows Server Update Services (WSUS) 伺服器的 URI。 (選擇性)
    -ComputeIPs Kubernetes 要使用的計算 IP 範圍。 指定以連字號分隔的「開始 IP」和「結束 IP」。
    -CustomUrl 列出您想要對其測試 HTTP 存取的其他 URL。 (選擇性)
    -AzureEnvironment 指出 Azure 環境。 如果裝置部署至 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

下一步