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

相關文章
相關標籤/搜索