Sdílet prostřednictvím


ArmMachineLearningModelFactory.MachineLearningManagedOnlineDeployment Method

Definition

Initializes a new instance of MachineLearningManagedOnlineDeployment.

public static Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment MachineLearningManagedOnlineDeployment (Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration codeConfiguration = default, string description = default, string environmentId = default, System.Collections.Generic.IDictionary<string,string> environmentVariables = default, System.Collections.Generic.IDictionary<string,string> properties = default, bool? appInsightsEnabled = default, Azure.ResourceManager.MachineLearning.Models.DataCollector dataCollector = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType? egressPublicNetworkAccess = default, string instanceType = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings livenessProbe = default, string model = default, string modelMountPath = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState? provisioningState = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings readinessProbe = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings requestSettings = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings scaleSettings = default);
static member MachineLearningManagedOnlineDeployment : Azure.ResourceManager.MachineLearning.Models.MachineLearningCodeConfiguration * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * Azure.ResourceManager.MachineLearning.Models.DataCollector * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningEgressPublicNetworkAccessType> * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings * string * string * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningDeploymentProvisioningState> * Azure.ResourceManager.MachineLearning.Models.MachineLearningProbeSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineRequestSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningOnlineScaleSettings -> Azure.ResourceManager.MachineLearning.Models.MachineLearningManagedOnlineDeployment
Public Shared Function MachineLearningManagedOnlineDeployment (Optional codeConfiguration As MachineLearningCodeConfiguration = Nothing, Optional description As String = Nothing, Optional environmentId As String = Nothing, Optional environmentVariables As IDictionary(Of String, String) = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional appInsightsEnabled As Nullable(Of Boolean) = Nothing, Optional dataCollector As DataCollector = Nothing, Optional egressPublicNetworkAccess As Nullable(Of MachineLearningEgressPublicNetworkAccessType) = Nothing, Optional instanceType As String = Nothing, Optional livenessProbe As MachineLearningProbeSettings = Nothing, Optional model As String = Nothing, Optional modelMountPath As String = Nothing, Optional provisioningState As Nullable(Of MachineLearningDeploymentProvisioningState) = Nothing, Optional readinessProbe As MachineLearningProbeSettings = Nothing, Optional requestSettings As MachineLearningOnlineRequestSettings = Nothing, Optional scaleSettings As MachineLearningOnlineScaleSettings = Nothing) As MachineLearningManagedOnlineDeployment

Parameters

codeConfiguration
MachineLearningCodeConfiguration

Code configuration for the endpoint deployment.

description
String

Description of the endpoint deployment.

environmentId
String

ARM resource ID of the environment specification for the endpoint deployment.

environmentVariables
IDictionary<String,String>

Environment variables configuration for the deployment.

properties
IDictionary<String,String>

Property dictionary. Properties can be added, but not removed or altered.

appInsightsEnabled
Nullable<Boolean>

If true, enables Application Insights logging.

dataCollector
DataCollector

The mdc configuration, we disable mdc when it's null.

egressPublicNetworkAccess
Nullable<MachineLearningEgressPublicNetworkAccessType>

If Enabled, allow egress public network access. If Disabled, this will create secure egress. Default: Enabled.

instanceType
String

Compute instance type.

livenessProbe
MachineLearningProbeSettings

Liveness probe monitors the health of the container regularly.

model
String

The URI path to the model.

modelMountPath
String

The path to mount the model in custom container.

provisioningState
Nullable<MachineLearningDeploymentProvisioningState>

Provisioning state for the endpoint deployment.

readinessProbe
MachineLearningProbeSettings

Readiness probe validates if the container is ready to serve traffic. The properties and defaults are the same as liveness probe.

requestSettings
MachineLearningOnlineRequestSettings

Request settings for the deployment.

scaleSettings
MachineLearningOnlineScaleSettings

Scale settings for the deployment. If it is null or not provided, it defaults to TargetUtilizationScaleSettings for KubernetesOnlineDeployment and to DefaultScaleSettings for ManagedOnlineDeployment. Please note MachineLearningOnlineScaleSettings is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MachineLearningDefaultScaleSettings and MachineLearningTargetUtilizationScaleSettings.

Returns

A new MachineLearningManagedOnlineDeployment instance for mocking.

Applies to