你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmMachineLearningModelFactory.AmlComputeProperties 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 AmlComputeProperties 的新实例。
public static Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties AmlComputeProperties (Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType? osType = default, string vmSize = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority? vmPriority = default, string virtualMachineImageId = default, bool? isolatedNetwork = default, Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings scaleSettings = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials userAccountCredentials = default, Azure.Core.ResourceIdentifier subnetId = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess? remoteLoginPortPublicAccess = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState? allocationState = default, DateTimeOffset? allocationStateTransitionOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.MachineLearning.Models.MachineLearningError> errors = default, int? currentNodeCount = default, int? targetNodeCount = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts nodeStateCounts = default, bool? enableNodePublicIP = default, BinaryData propertyBag = default);
static member AmlComputeProperties : Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningOSType> * string * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningVmPriority> * string * Nullable<bool> * Azure.ResourceManager.MachineLearning.Models.AmlComputeScaleSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningUserAccountCredentials * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningRemoteLoginPortPublicAccess> * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningAllocationState> * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.MachineLearning.Models.MachineLearningError> * Nullable<int> * Nullable<int> * Azure.ResourceManager.MachineLearning.Models.MachineLearningNodeStateCounts * Nullable<bool> * BinaryData -> Azure.ResourceManager.MachineLearning.Models.AmlComputeProperties
Public Shared Function AmlComputeProperties (Optional osType As Nullable(Of MachineLearningOSType) = Nothing, Optional vmSize As String = Nothing, Optional vmPriority As Nullable(Of MachineLearningVmPriority) = Nothing, Optional virtualMachineImageId As String = Nothing, Optional isolatedNetwork As Nullable(Of Boolean) = Nothing, Optional scaleSettings As AmlComputeScaleSettings = Nothing, Optional userAccountCredentials As MachineLearningUserAccountCredentials = Nothing, Optional subnetId As ResourceIdentifier = Nothing, Optional remoteLoginPortPublicAccess As Nullable(Of MachineLearningRemoteLoginPortPublicAccess) = Nothing, Optional allocationState As Nullable(Of MachineLearningAllocationState) = Nothing, Optional allocationStateTransitionOn As Nullable(Of DateTimeOffset) = Nothing, Optional errors As IEnumerable(Of MachineLearningError) = Nothing, Optional currentNodeCount As Nullable(Of Integer) = Nothing, Optional targetNodeCount As Nullable(Of Integer) = Nothing, Optional nodeStateCounts As MachineLearningNodeStateCounts = Nothing, Optional enableNodePublicIP As Nullable(Of Boolean) = Nothing, Optional propertyBag As BinaryData = Nothing) As AmlComputeProperties
参数
- osType
- Nullable<MachineLearningOSType>
计算 OS 类型。
- vmSize
- String
虚拟机大小。
- vmPriority
- Nullable<MachineLearningVmPriority>
虚拟机优先级。
- virtualMachineImageId
- String
AML 计算的虚拟机映像 - 仅限窗口。
- scaleSettings
- AmlComputeScaleSettings
AML 计算的缩放设置。
- userAccountCredentials
- MachineLearningUserAccountCredentials
将在每个计算节点上创建的管理员用户帐户的凭据。
- subnetId
- ResourceIdentifier
计算节点所属的虚拟网络子网资源 ID。
- remoteLoginPortPublicAccess
- Nullable<MachineLearningRemoteLoginPortPublicAccess>
公共 SSH 端口的状态。 可能的值为:Disabled - 指示公共 ssh 端口在群集的所有节点上关闭。 已启用 - 指示群集的所有节点上的公用 ssh 端口已打开。 NotSpecified - 指示如果定义了 VNet,则群集的所有节点上的公共 ssh 端口已关闭,否则将打开所有公共节点。 它只能在创建群集时处于默认状态,在创建后,它将启用或禁用。
- allocationState
- Nullable<MachineLearningAllocationState>
计算的分配状态。 可能的值为:稳定 - 指示计算未调整大小。 正在进行的计算节点数没有变化。 计算在创建时进入此状态,并且未对计算执行任何操作来更改计算节点数。 调整大小 - 指示计算正在调整大小;也就是说,正在计算中添加或删除计算节点。
- allocationStateTransitionOn
- Nullable<DateTimeOffset>
计算进入其当前分配状态的时间。
- errors
- IEnumerable<MachineLearningError>
各种计算节点在节点设置期间遇到的错误的集合。
计算的目标计算节点数。 如果 allocationState 正在调整大小,则此属性表示正在进行的重设大小操作的目标节点计数。 如果 allocationState 稳定,则此属性表示上一次调整大小操作的目标节点计数。
- nodeStateCounts
- MachineLearningNodeStateCounts
计算中各种节点状态的计数。
启用或禁用节点公共 IP 地址预配。 可能的值为:可能的值为:true - 指示计算节点将预配公共 IP。 false - 指示计算节点将具有专用终结点,并且没有公共 IP。
- propertyBag
- BinaryData
包含其他属性的属性包。
返回
用于模拟的新 AmlComputeProperties 实例。