Azure 虛擬機器擴充功能和功能

延伸模組是小型的應用程式,可在 Azure 虛擬機器 (VM) 上提供部署後設定及自動化工作。 Azure 平台會裝載許多延伸模組,涵蓋 VM 設定、監視、安全性和公用程式應用程式。 發行者將某個應用程式包裝成延伸模組並簡化安裝。 您只需要提供必要的參數。

檢視可用的延伸模組

您可以在 Azure 入口網站中檢視 VM 的可用延伸模組。

  1. 在入口網站中,移至 VM 的 [概觀] 頁面。
  2. 在 [設定] 底下,選取 [延伸模組 + 應用程式]

可用的延伸模組清單隨即顯示。 若要檢視延伸模組的完整清單,請參閱探索適用於 Linux 的 VM 延伸模組探索適用於 Windows 的 VM 延伸模組

安裝和使用延伸模組

您可以使用 Azure CLI、PowerShell、Azure Resource Manager (ARM) 範本及 Azure 入口網站來管理 Azure VM 延伸模組。

  1. 在 [延伸模組] 索引標籤上,從 VM 的 [延伸模組 + 應用程式] 索引標籤中選取 [+ 新增]
  2. 找出 [自訂指令碼延伸模組] 選項。 選取延伸模組選項,然後選取 [下一步]

然後,您可以傳入命令或指令碼來執行延伸模組。

如需詳細資訊,請參閱 Linux 自訂指令碼延伸模組Windows 自訂指令碼延伸模組

檢查必要條件

有些個別的 VM 延伸模組應用程式可能會有自己的環境必要條件,例如對端點的存取。 每個延伸模組都提供文章,說明任何的必要條件,包括支援哪些作業系統。

管理延伸模組應用程式週期

您不需要直接連線至 VM,即可安裝或刪除延伸模組。 Azure 擴充功能生命週期會在 VM 外部進行管理,並已整合到 Azure 平台。

疑難諞解擴充功能

如果您要尋找 Windows VM 延伸模組的一般疑難排解步驟,請參閱針對 Azure Windows VM 延伸模組的失敗進行疑難排解

否則,您可以在擴充功能概觀的疑難排解與支援一節中,找到每個擴充功能的特定疑難排解資訊。 以下是可用疑難排解資訊的清單:

Namespace 疑難排解
microsoft.azure.monitoring.dependencyagent.dependencyagentlinux 適用於 Linux 的 Azure 監視器相依性
microsoft.azure.monitoring.dependencyagent.dependencyagentwindows 適用於 Windows 的 Azure 監視器相依性
microsoft.azure.security.azurediskencryptionforlinux 適用於 Linux 的 Azure 磁碟加密
microsoft.azure.security.azurediskencryption 適用於 Windows 的 Azure 磁碟加密
microsoft.compute.customscriptextension 適用於 Windows 的自訂指令碼
microsoft.ostcextensions.customscriptforlinux
microsoft.powershell.dsc 適用於 Windows 的 Desired State Configuration
microsoft.hpccompute.nvidiagpudriverlinux 適用於 Linux 的 NVIDIA GPU 驅動程式擴充功能
microsoft.hpccompute.nvidiagpudriverwindows 適用於 Windows 的 NVIDIA GPU 驅動程式擴充功能
microsoft.azure.security.iaasantimalware 適用於 Windows 的 Antimalware 擴充功能
microsoft.enterprisecloud.monitoring.omsagentforlinux 適用於 Linux 的 Azure 監視器
microsoft.enterprisecloud.monitoring.microsoftmonitoringagent 適用於 Windows 的 Azure 監視器
stackify.linuxagent.extension.stackifylinuxagentextension 適用於 Linux 的 Stackify Retrace
vmaccessforlinux.microsoft.ostcextensions 適用於 Linux 的 VMAccess
microsoft.recoveryservices.vmsnapshot 適用於 Linux 的快照集
microsoft.recoveryservices.vmsnapshot 適用於 Windows 的快照集

下一步