你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CloudServiceConfiguration 类

  • java.lang.Object
    • com.microsoft.azure.management.batch.CloudServiceConfiguration

public class CloudServiceConfiguration

基于 Azure 云服务 平台的池中节点的配置。

方法摘要

修饰符和类型 方法和描述
String osFamily()

获取可能的值包括:2 - OS 系列 2,等效于 Windows Server 2008 R2 SP1。 3 - OS 系列 3,等效于 Windows Server 2012。 4 - OS 系列 4,等效于 Windows Server 2012 R2。 5 - OS 系列 5,等效于 Windows Server 2016。 6 - OS 系列 6,等效于 Windows Server 2019。 有关详细信息,请参阅 Azure 来宾 OS 版本 (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases) 。

String osVersion()

获取默认值为 * ,该值指定指定操作系统系列的最新操作系统版本。

CloudServiceConfiguration withOsFamily(String osFamily)

设置可能的值为:2 - OS 系列 2,等效于 Windows Server 2008 R2 SP1。 3 - OS 系列 3,等效于 Windows Server 2012。 4 - OS 系列 4,等效于 Windows Server 2012 R2。 5 - OS 系列 5,等效于 Windows Server 2016。 6 - OS 系列 6,等效于 Windows Server 2019。 有关详细信息,请参阅 Azure 来宾 OS 版本 (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases) 。

CloudServiceConfiguration withOsVersion(String osVersion)

将默认值设置为 *,用于指定指定 OS 系列的最新操作系统版本。

方法详细信息

osFamily

public String osFamily()

获取可能的值包括:2 - OS 系列 2,等效于 Windows Server 2008 R2 SP1。 3 - OS 系列 3,等效于 Windows Server 2012。 4 - OS 系列 4,等效于 Windows Server 2012 R2。 5 - OS 系列 5,等效于 Windows Server 2016。 6 - OS 系列 6,等效于 Windows Server 2019。 有关详细信息,请参阅 Azure 来宾 OS 版本 (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases) 。

Returns:

osFamily 值

osVersion

public String osVersion()

获取默认值为 * ,该值指定指定操作系统系列的最新操作系统版本。

Returns:

osVersion 值

withOsFamily

public CloudServiceConfiguration withOsFamily(String osFamily)

设置可能的值为:2 - OS 系列 2,等效于 Windows Server 2008 R2 SP1。 3 - OS 系列 3,等效于 Windows Server 2012。 4 - OS 系列 4,等效于 Windows Server 2012 R2。 5 - OS 系列 5,等效于 Windows Server 2016。 6 - OS 系列 6,等效于 Windows Server 2019。 有关详细信息,请参阅 Azure 来宾 OS 版本 (https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/#releases) 。

Parameters:

osFamily - 要设置的 osFamily 值

Returns:

CloudServiceConfiguration 对象本身。

withOsVersion

public CloudServiceConfiguration withOsVersion(String osVersion)

将默认值设置为 *,用于指定指定 OS 系列的最新操作系统版本。

Parameters:

osVersion - 要设置的 osVersion 值

Returns:

CloudServiceConfiguration 对象本身。

适用于