VM Agent简介
VM Agent是部署在虚拟机内的一个进程,用于协助管理,配置和加速虚拟机。在使用官方映像创建虚拟机的最后一个步骤中有配置VM Agent的选项。
对于Windows虚拟机而言,常见的一些VM Agent的应用例如在背景中看到的虚拟机信息,就是由VM Agent安装的扩展BGInfo配置的:
还可以通过VM Agent安装扩展VMAccess来重置用户名密码,通过VM Agent进行用户自定义脚本的部署,在部署虚拟机规模集的时候批量推送预配脚本等等。除了配置扩展外,VM Agent本身还会负责一些数据采集,心跳检测,甚至在备份功能中也起到关键作用。在虚拟机的预配置阶段,VM Agent会进行一些配置,例如用户创建,SSH服务配置,主机名配置,DNS设置等等。
Linux虚拟机中的VM Agent也有类似作用。
可以通过Azure Powershell命令查看全部可用的扩展程序:
PS C:\Users\XXX> Get-AzureVMAvailableExtension | Select ExtensionName, Publisher
ExtensionName Publisher ------------- --------- AsiaInfoDSA AsiaInfo.DeepSecurity IaaSDiagnostics Microsoft.Azure.Diagnostics CustomScript Microsoft.Azure.Extensions DockerExtension Microsoft.Azure.Extensions VMSnapshot Microsoft.Azure.RecoveryServices VMSnapshotLinux Microsoft.Azure.RecoveryServices IaaSAntimalware Microsoft.Azure.Security AzureCATExtensionHandler Microsoft.AzureCAT.AzureEnhancedMonitoring BGInfo Microsoft.Compute CustomScriptExtension Microsoft.Compute JsonADDomainExtension Microsoft.Compute VMAccessAgent Microsoft.Compute LinuxNodeAgent Microsoft.HpcPack CustomScriptForLinux Microsoft.OSTCExtensions DSCForLinux Microsoft.OSTCExtensions LinuxDiagnostic Microsoft.OSTCExtensions OSPatchingForLinux Microsoft.OSTCExtensions VMAccessForLinux Microsoft.OSTCExtensions DSC Microsoft.Powershell DSC.Edp Microsoft.Powershell DSC Microsoft.Powershell.Test SqlIaaSAgent Microsoft.SqlServer.Management VS14CTPDebugger Microsoft.VisualStudio.Azure.RemoteDebug VS2012Debugger Microsoft.VisualStudio.Azure. |