Azure Windows VM Bginfo

Azure 中的Windows Server虚拟机在WS2016以前的版本,2008/R二、2012/R2都启用了Bginfo扩展。能够很是方便的查看虚拟机的信息,如IP地址、CPU、内存等。
ide


可是WS2016平台镜像建立完成后,并无默认提供此功能。blog


image.png

如何启用呢,实际上很是容易,一条PS就能够了。提早安装好Azure PowerShell。ip

Login-AzureRmAccount  -Environment azurechinacloud内存

#XXXXX@MicrosoftInternal.partner.onmschina.cn资源

Select-AzureRmSubscription  -SubscriptionName Internal-001虚拟机

#Set-AzureRmVMExtension -ResourceGroupName 资源组名称 -VMName 虚拟机名称 -Publisher Microsoft.Compute -ExtensionType BGInfo -ExtensionName BGInfo -Location 所在区域 -TypeHandlerVersion 2.1it


image.png

Azure管理门户中能够看到扩展安装成功:io

image.png

虚拟机重启后,Bginfo加载完成:class

image.png

相关文章
相关标签/搜索