池创建后,会发出此事件。 日志内容将公开有关池的常规信息。 请注意,如果池的目标大小大于 0 个计算节点,则池调整大小启动事件会在此事件之后立即发生。
以下示例显示池创建事件的正文。
{
    "id": "myPool1",
    "displayName": "Production Pool",
    "vmSize": "Standard_F1s",
    "imageType": "VirtualMachineConfiguration",
    "cloudServiceConfiguration": {
        "osFamily": "3",
        "targetOsVersion": "*"
    },
    "networkConfiguration": {
        "subnetId": " "
    },
    "virtualMachineConfiguration": {
          "imageReference": {
            "publisher": " ",
            "offer": " ",
            "sku": " ",
            "version": " "
          },
          "nodeAgentId": " "
    },
    "resizeTimeout": "300000",
    "targetDedicatedNodes": 2,
    "targetLowPriorityNodes": 2,
    "taskSlotsPerNode": 1,
    "vmFillType": "Spread",
    "enableAutoScale": false,
    "enableInterNodeCommunication": false,
    "isAutoPool": false
}
| Element | 类型 | Notes | 
|---|---|---|
id | 
String | 池的 ID。 | 
displayName | 
String | 池的显示名称。 | 
vmSize | 
String | 池中虚拟机的大小。 池中的所有虚拟机的大小都相同。  有关云服务池(使用 cloudServiceConfiguration 创建的池)的虚拟机可用大小的信息,请参阅云服务的大小。 批处理支持除 ExtraSmall 以外的所有云服务 VM 大小。有关使用虚拟机市场中映像的池(使用 virtualMachineConfiguration 创建的池)的可用 VM 大小的信息,请参阅虚拟机的大小 (Linux) 或虚拟机的大小 (Windows)。 Batch 支持除 STANDARD_A0 和高级存储大小(STANDARD_GS、STANDARD_DS 和 STANDARD_DSV2 系列)以外所有的 Azure VM 大小。 | 
imageType | 
String | 映像的部署方法。 支持的值为 virtualMachineConfiguration 或 cloudServiceConfiguration | 
cloudServiceConfiguration | 
Complex Type | 池的云服务配置。 | 
virtualMachineConfiguration | 
Complex Type | 池的虚拟机配置。 | 
networkConfiguration | 
Complex Type | 池的网络配置。 | 
resizeTimeout | 
Time | 为针对池的上一次调整大小操作指定的将计算节点分配到池的超时。 (创建池时的初始大小计为一次调整大小。) | 
targetDedicatedNodes | 
Int32 | 池请求的专用计算节点数。 | 
enableAutoScale | 
Bool | 指定池大小是否随时间自动调整。 | 
enableInterNodeCommunication | 
Bool | 指定是否针对节点间的直接通信设置池。 | 
isAutoPool | 
Bool | 指定是否已通过作业的 AutoPool 机制创建池。 | 
taskSlotsPerNode | 
Int32 | 可在池中的单个计算节点上并发运行的最大任务数。 | 
vmFillType | 
String | 定义批处理服务如何在池中不同的计算节点之间分配任务。 有效值为 Spread 或 Pack。 | 
cloudServiceConfiguration
Warning
Cloud Services Configuration pools are deprecated. 请改用虚拟机配置池。
| Element name | 类型 | Notes | 
|---|---|---|
osFamily | 
String | 要安装在池中的虚拟机上的 Azure 来宾 OS 系列。 可能的值为: 2 - OS Family 2, equivalent to Windows Server 2008 R2 SP1. 3 - OS Family 3, equivalent to Windows Server 2012. 4 - OS Family 4, equivalent to Windows Server 2012 R2. 有关详细信息,请参阅 Azure 来宾 OS 版本。  | 
targetOSVersion | 
String | 要安装在池中虚拟机上的 Azure 来宾 OS 版本。 默认值为 *,即指定的系列的最新操作系统版本。 有关其他允许的值的信息,请参阅 Azure 来宾 OS 版本。  | 
virtualMachineConfiguration
| Element name | 类型 | Notes | 
|---|---|---|
imageReference | 
Complex Type | 指定关于要使用的平台或市场映像的信息。 | 
nodeAgentId | 
String | 在计算节点上预配的批处理节点代理的 SKU。 | 
windowsConfiguration | 
Complex Type | 指定虚拟机上的 Windows 操作系统设置。 如果 imageReference 引用 Linux OS 映像,则不能指定此属性。 | 
imageReference
| Element name | 类型 | Notes | 
|---|---|---|
publisher | 
String | 映像的发布者。 | 
offer | 
String | 映像的产品/服务。 | 
sku | 
String | 映像的 SKU。 | 
version | 
String | 映像的版本。 | 
windowsConfiguration
| Element name | 类型 | Notes | 
|---|---|---|
enableAutomaticUpdates | 
布尔 | 指示是否对虚拟机启用自动更新。 如果未指定此属性,则默认值为 true。 | 
networkConfiguration
| Element name | 类型 | Notes | 
|---|---|---|
subnetId | 
String | 指定创建池计算节点的子网的资源标识符。 |