确定Azure云服务的来宾OS版本

Bre*_*obi 4 azure-cloud-services

如何确定在Cloud Service上运行的Guest OS版本?我在旧(https://manage.windowsazure.com)或新(https://portal.azure.com)Azure门户中都找不到此信息。

我的Cloud Services已设置为使用“ *”作为osVersion,因此我意识到,来宾操作系统会随着新版本的发布而更新。我只想知道我当前正在运行哪个版本。

您可能会问为什么我需要知道?目前,我想知道我的VM是否正在运行支持.NET v4.5.2的新Guest OS。但是,更广泛的问题仍然适用。

小智 5

您可以使用https://resources.azure.com浏览到Cloud Service资源。这将显示OSVersion属性。

它还显示了用于检索它的PowerShell命令,该命令应与此类似:\

Get-AzureRmResource –ResourceGroupName <name> –ResourceType Microsoft.ClassicCompute/domainNames/slots/roles –ResourceName <cloudservicename/slot/rolename> –ApiVersion 2015-06-01 | select –ExpandProperty Properties | select OsVersion
Run Code Online (Sandbox Code Playgroud)