确定 Azure 云服务的来宾 OS 版本
Determine the Guest OS version of an Azure Cloud Service
如何确定云服务上的来宾 OS 版本 运行?我无法在旧 (https://manage.windowsazure.com) or New (https://portal.azure.com) Azure 门户中找到此信息。
我的云服务设置为使用“*”作为操作系统版本,因此我意识到来宾 OS 会随着新版本的发布而更新。我只想知道我现在是什么版本 运行.
你可能会问为什么我需要知道?那么目前我想知道我的 VM 是否 运行 支持 .NET v4.5.2 的新 Guest OS。但更广泛的问题仍然适用。
您可以使用 https://resources.azure.com 浏览到云服务资源。这将揭示 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
如何确定云服务上的来宾 OS 版本 运行?我无法在旧 (https://manage.windowsazure.com) or New (https://portal.azure.com) Azure 门户中找到此信息。
我的云服务设置为使用“*”作为操作系统版本,因此我意识到来宾 OS 会随着新版本的发布而更新。我只想知道我现在是什么版本 运行.
你可能会问为什么我需要知道?那么目前我想知道我的 VM 是否 运行 支持 .NET v4.5.2 的新 Guest OS。但更广泛的问题仍然适用。
您可以使用 https://resources.azure.com 浏览到云服务资源。这将揭示 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