Class MachineLearningService
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.machinelearningservices.MachineLearningService
-
@Deprecated public class MachineLearningService extends com.pulumi.resources.CustomResource
Deprecated.Please use one of the variants: ACIService, AKSService, EndpointVariant.Machine Learning service object wrapped into ARM resource envelope. API Version: 2021-01-01. ## Example Usage ### Create Or Update service ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.machinelearningservices.MachineLearningService; import com.pulumi.azurenative.machinelearningservices.MachineLearningServiceArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var machineLearningService = new MachineLearningService("machineLearningService", MachineLearningServiceArgs.builder() .computeType("ACI") .environmentImageRequest(Map.ofEntries( Map.entry("assets", Map.ofEntries( Map.entry("mimeType", "application/x-python"), Map.entry("unpack", false), Map.entry("url", "aml://storage/azureml/score.py") )), Map.entry("driverProgram", "score.py"), Map.entry("environment", Map.ofEntries( Map.entry("docker", Map.ofEntries( Map.entry("baseImage", "mcr.microsoft.com/azureml/base:openmpi3.1.2-ubuntu16.04"), Map.entry("baseImageRegistry", ) )), Map.entry("environmentVariables", Map.of("EXAMPLE_ENV_VAR", "EXAMPLE_VALUE")), Map.entry("name", "AzureML-Scikit-learn-0.20.3"), Map.entry("python", Map.ofEntries( Map.entry("condaDependencies", Map.ofEntries( Map.entry("channels", "conda-forge"), Map.entry("dependencies", "python=3.6.2", CreateServiceRequestEnvironmentImageRequestArgs.builder() .pip( "azureml-core==1.0.69", "azureml-defaults==1.0.69", "azureml-telemetry==1.0.69", "azureml-train-restclients-hyperdrive==1.0.69", "azureml-train-core==1.0.69", "scikit-learn==0.20.3", "scipy==1.2.1", "numpy==1.16.2", "joblib==0.13.2") .build()), Map.entry("name", "azureml_ae1acbe6e1e6aabbad900b53c491a17c") )), Map.entry("interpreterPath", "python"), Map.entry("userManagedDependencies", false) )), Map.entry("spark", Map.ofEntries( Map.entry("packages", ), Map.entry("precachePackages", true), Map.entry("repositories", ) )), Map.entry("version", "3") )), Map.entry("models", Map.ofEntries( Map.entry("mimeType", "application/x-python"), Map.entry("name", "sklearn_regression_model.pkl"), Map.entry("url", "aml://storage/azureml/sklearn_regression_model.pkl") )) )) .location("eastus2") .resourceGroupName("testrg123") .serviceName("service456") .workspaceName("workspaces123") .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:machinelearningservices:MachineLearningService service456 subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/services/service456 ```
-
-
Constructor Summary
Constructors Constructor Description MachineLearningService(java.lang.String name)
Deprecated.MachineLearningService(java.lang.String name, MachineLearningServiceArgs args)
Deprecated.MachineLearningService(java.lang.String name, MachineLearningServiceArgs args, com.pulumi.resources.CustomResourceOptions options)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MachineLearningService
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Deprecated.Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.Optional<IdentityResponse>>
identity()
Deprecated.com.pulumi.core.Output<java.util.Optional<java.lang.String>>
location()
Deprecated.com.pulumi.core.Output<java.lang.String>
name()
Deprecated.com.pulumi.core.Output<java.lang.Object>
properties()
Deprecated.com.pulumi.core.Output<java.util.Optional<SkuResponse>>
sku()
Deprecated.com.pulumi.core.Output<SystemDataResponse>
systemData()
Deprecated.com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
Deprecated.com.pulumi.core.Output<java.lang.String>
type()
Deprecated.
-
-
-
Constructor Detail
-
MachineLearningService
public MachineLearningService(java.lang.String name)
Deprecated.- Parameters:
name
- The _unique_ name of the resulting resource.
-
MachineLearningService
public MachineLearningService(java.lang.String name, MachineLearningServiceArgs args)
Deprecated.- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
MachineLearningService
public MachineLearningService(java.lang.String name, MachineLearningServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
Deprecated.- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
identity
public com.pulumi.core.Output<java.util.Optional<IdentityResponse>> identity()
Deprecated.- Returns:
- The identity of the resource.
-
location
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()
Deprecated.- Returns:
- Specifies the location of the resource.
-
name
public com.pulumi.core.Output<java.lang.String> name()
Deprecated.- Returns:
- Specifies the name of the resource.
-
properties
public com.pulumi.core.Output<java.lang.Object> properties()
Deprecated.- Returns:
- Service properties
-
sku
public com.pulumi.core.Output<java.util.Optional<SkuResponse>> sku()
Deprecated.- Returns:
- The sku of the workspace.
-
systemData
public com.pulumi.core.Output<SystemDataResponse> systemData()
Deprecated.- Returns:
- Read only system data
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
Deprecated.- Returns:
- Contains resource tags defined as key/value pairs.
-
type
public com.pulumi.core.Output<java.lang.String> type()
Deprecated.- Returns:
- Specifies the type of the resource.
-
get
public static MachineLearningService get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Deprecated.Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-