MicrosoftMicrosoft Windows Server Hybrid Admin Associate AZ-801 Certification
·TW
·更新於 7 Aug 2026
您需要一個單一查詢,列出所有缺少 Azure Monitor Agent 擴充功能的 Arc-enabled 伺服器,並顯示這些伺服器上任何 Guest Configuration 指派的合規性狀態。您應該使用哪個 Azure Resource Graph 查詢?
選擇一個答案
點擊一個選項來檢查您的答案。
正確答案: resources | where type =~ 'microsoft.hybridcompute/machines' | project id, name, resourceGroup, location | join kind=leftanti (resources | where type =~ 'microsoft.hybridcompute/machines/extensions' and name in~('AzureMonitorWindowsAgent','AzureMonitorLinuxAgent') | project machineId = tostring(split(id, '/extensions/')[0])) on $left.id == $right.machineId | join kind=leftouter (resources | where type =~ 'microsoft.guestconfiguration/guestconfigurationassignments' | project machineId = tostring(split(id, '/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/')[0]), assignmentName = name, compliance = tostring(properties.complianceStatus)) on $left.id == $right.machineId.
為什麼這是答案
正確答案使用 resources | where type =~ 'microsoft.hybridcompute/machines' 來篩選出所有 Arc-enabled 伺服器。接著,它使用 join kind=leftanti 與缺少 Azure Monitor Agent 擴充功能(AzureMonitorWindowsAgent 或 AzureMonitorLinuxAgent)的伺服器進行匹配,從而找出未安裝代理程式的伺服器。最後,它使用 join kind=leftouter 將這些伺服器與其 Guest Configuration 指派的合規性狀態(microsoft.guestconfiguration/guestconfigurationassignments)連接起來,即使沒有指派也能顯示伺服器資訊。
選項 B 查詢的是 Azure 虛擬機器和策略狀態,而非 Arc-enabled 伺服器。選項 C 查詢的是擴充功能中包含 'MMA' 的資源,且只篩選出虛擬機器,不符合需求。選項 D 查詢的是 Log Analytics 工作區,與本題目標無關。
通過考試 — 無需無休止地尋找答案
集中一處獲取此考試的所有核實題目和解釋,節省數小時的準備時間。1,000 多種認證 · 20 多種語言 · 免費開始。
更快通過您的考試 →
無需信用卡