Microsoft AZ-140: 監視、診斷與疑難排解 — 學習指南

屬於 Microsoft Azure Virtual Desktop Specialty AZ-140 — 學習指南. 使用經過驗證的解答練習: Microsoft 考試中心, 或參加限時模擬考試: ExamRoll.io.

總覽

在 Azure Virtual Desktop (AVD) 中進行監控、診斷與疑難排解,是結合了資源層級的平台記錄、客體內部遙測資料以及分析功能,以利及早偵測問題、快速隔離根本原因並驗證使用者體驗。一個穩固的架構會使用 Azure Monitor、Log Analytics、Azure Monitor Agent、資料收集規則以及精心策劃的活頁簿,並針對服務健康狀態和影響使用者的狀況設定主動式警示。本節將說明如何設計監控管線、啟用診斷功能、從工作階段主機收集正確的資料、使用 Kusto 查詢語言 (KQL) 進行分析,以及應對最常見的操作問題,包括用戶端連線能力、AVD 代理程式失敗、FSLogix 設定檔問題和資源瓶頸。

適用於 AVD Insights 的 Azure Monitor 與 Log Analytics 架構

Azure Virtual Desktop Insights 是一個建立在 Azure Monitor 活頁簿和 Log Analytics 之上的解決方案,它將 AVD 平台資源記錄與客體作業系統的遙測資料相互關聯,以提供健康狀態、容量和使用者體驗的檢視。其有效性取決於兩個資料平面:

工作區的架構與設計考量:

AVD Insights 活頁簿同時依賴診斷設定和客體內部遙測資料;若缺少任何一項,視覺化圖表將會不完整。

啟用診斷與收集遙測資料

AVD 資源的診斷設定

為下列每種資源類型啟用診斷設定,並將資料傳送到您的 Log Analytics 工作區。您也可以選擇性地將資料封存至儲存體以供長期保留,或串流至 Event Hubs 以進行外部分析。

工作階段主機上的 Azure Monitor Agent 與 DCR

營運分析與故障排除技巧

活頁簿與儀表板

用於常見調查的 Kusto 查詢

AzureDiagnostics
| where Category == "Connection"
| extend p = parse_json(Properties)
| summarize Attempts = count(), Failures = countif(tostring(p.Status) != "Success")
          by FailureStage = tostring(p.FailureStage),
             FailureMessage = tostring(p.FailureMessage)
| order by Failures desc
Perf
| where ObjectName == "Terminal Services" and CounterName in ("Active Sessions","Total Sessions")
| summarize Avg=count(), AvgValue=avg(CounterValue) by bin(TimeGenerated, 5m), Computer, CounterName
AzureDiagnostics
| where Category == "HostRegistration"
| extend p = parse_json(Properties)
| summarize Latest = arg_max(TimeGenerated, tostring(p.RegistrationState), tostring(p.Details))
          by ResourceId
| where Latest_RegistrationState != "Registered"
Perf
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize AvgCPU = avg(CounterValue) by Computer, bin(TimeGenerated, 5m)
| where AvgCPU > 85
Event
| where Source == "Microsoft-FSLogix-Apps"
| project TimeGenerated, Computer, EventID, RenderedDescription
| order by TimeGenerated desc

連線診斷與常見用戶端問題

Windows 事件日誌、遠端桌面元件與 AVD 代理程式

FSLogix 日誌與設定檔故障排除

CPU、記憶體、磁碟與網路分析

主動式儀表板、警示與服務健康狀態

AzureDiagnostics
| where Category == "HostRegistration"
| extend p = parse_json(Properties)
| where tostring(p.RegistrationState) != "Registered"
Perf
| where ObjectName == "Terminal Services" and CounterName == "Active Sessions"
| summarize AvgActive = avg(CounterValue) by Computer, bin(TimeGenerated, 10m)
| join kind=leftouter (
    // Replace 20 with your per-host maximum sessions
    datatable(Computer:string, MaxSessions:int) [
      // Populate from CMDB or tag-driven mapping
    ]
) on Computer
| where AvgActive >= MaxSessions - 1

實務問題情境

Adobe Inc. 回報其共用型 Windows 11 Enterprise 多重會話主機集區在尖峰時段出現間歇性的 Azure Virtual Desktop 中斷連線與登入時間過長的問題。該集區在 Azure Files Premium 上使用 FSLogix。

  1. 驗證服務與網路先決條件
  1. 驗證診斷管線
  1. 分析連線失敗與代理程式健康狀態
  1. 調查登入延遲與 FSLogix 設定檔附加問題
  1. 識別資源瓶頸與容量壓力
  1. 實作主動式警示與儀表板

此方法結合了用於外部相依性的 Azure Service Health、用於平台可見度的診斷設定、用於主機遙測的 AMA+DCR、用於隔離故障領域的 KQL 驅動分析,以及橫跨網路、代理程式健康狀態、設定檔與容量的針對性修復——確保 Adobe Inc. 能夠穩定使用者體驗並防止未來問題重演。


安全性、合規性與端點保護 · 所有領域 · 復原能力、復原與移轉

練習這些題目 → · 在 ExamRoll.io 上限時練習 →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

通過考試 →

瀏覽 Microsoft →

Related guides

一站式存取

一份訂閱。所有考試。

每個方案都可無限存取答案搜尋、練習測驗、AI 解釋和完整的資源庫 — 支援 20 多種語言。

每月
24.87
Just €0.83/day
包含所有內容:
  • 無限答案搜尋
  • 無限練習測驗
  • AI 驅動的解釋
  • 完整資源庫
  • 20 多種語言
  • 每週內容更新
  • 獎勵與推薦
  • 優先支援
開始免費試用

無需信用卡*

最佳價值
12 個月
179.87
Just €0.49/daySave 40%
包含所有內容:
  • 無限答案搜尋
  • 無限練習測驗
  • AI 驅動的解釋
  • 完整資源庫
  • 20 多種語言
  • 每週內容更新
  • 獎勵與推薦
  • 優先支援
開始免費試用

無需信用卡*

✓ 包含免費方案 · ✓ 隨時取消 · ✓ 所有方案解鎖完整產品