ACIServiceArgs

data class ACIServiceArgs(val appInsightsEnabled: Output<Boolean>? = null, val authEnabled: Output<Boolean>? = null, val cname: Output<String>? = null, val computeType: Output<String>? = null, val containerResourceRequirements: Output<ContainerResourceRequirementsArgs>? = null, val dataCollection: Output<ACIServiceCreateRequestDataCollectionArgs>? = null, val description: Output<String>? = null, val dnsNameLabel: Output<String>? = null, val encryptionProperties: Output<ACIServiceCreateRequestEncryptionPropertiesArgs>? = null, val environmentImageRequest: Output<CreateServiceRequestEnvironmentImageRequestArgs>? = null, val keys: Output<CreateServiceRequestKeysArgs>? = null, val kvTags: Output<Map<String, String>>? = null, val location: Output<String>? = null, val properties: Output<Map<String, String>>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val sslCertificate: Output<String>? = null, val sslEnabled: Output<Boolean>? = null, val sslKey: Output<String>? = null, val vnetConfiguration: Output<ACIServiceCreateRequestVnetConfigurationArgs>? = null, val workspaceName: Output<String>? = null) : ConvertibleToJava<ACIServiceArgs>

Machine Learning service object wrapped into ARM resource envelope. API Version: 2021-01-01.

Example Usage

Create Or Update service

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var aciService = new AzureNative.MachineLearningServices.ACIService("aciService", new()
{
AppInsightsEnabled = true,
AuthEnabled = true,
ComputeType = "ACI",
ContainerResourceRequirements = new AzureNative.MachineLearningServices.Inputs.ContainerResourceRequirementsArgs
{
Cpu = 1,
MemoryInGB = 1,
},
EnvironmentImageRequest = new AzureNative.MachineLearningServices.Inputs.CreateServiceRequestEnvironmentImageRequestArgs
{
Assets = new[]
{
new AzureNative.MachineLearningServices.Inputs.ImageAssetArgs
{
MimeType = "application/x-python",
Unpack = false,
Url = "aml://storage/azureml/score.py",
},
},
DriverProgram = "score.py",
Environment = new AzureNative.MachineLearningServices.Inputs.EnvironmentImageRequestEnvironmentArgs
{
Docker = new AzureNative.MachineLearningServices.Inputs.ModelEnvironmentDefinitionDockerArgs
{
BaseImage = "mcr.microsoft.com/azureml/base:openmpi3.1.2-ubuntu16.04",
BaseImageRegistry = null,
},
EnvironmentVariables =
{
{ "EXAMPLE_ENV_VAR", "EXAMPLE_VALUE" },
},
Name = "AzureML-Scikit-learn-0.20.3",
Python = new AzureNative.MachineLearningServices.Inputs.ModelEnvironmentDefinitionPythonArgs
{
CondaDependencies =
{
{ "channels", new[]
{
"conda-forge",
} },
{ "dependencies", new[]
{
"python=3.6.2",
{
{ "pip", new[]
{
"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",
} },
},
} },
{ "name", "azureml_ae1acbe6e1e6aabbad900b53c491a17c" },
},
InterpreterPath = "python",
UserManagedDependencies = false,
},
Spark = new AzureNative.MachineLearningServices.Inputs.ModelEnvironmentDefinitionSparkArgs
{
Packages = new[] {},
PrecachePackages = true,
Repositories = new[] {},
},
Version = "3",
},
Models = new[]
{
new AzureNative.MachineLearningServices.Inputs.ModelArgs
{
MimeType = "application/x-python",
Name = "sklearn_regression_model.pkl",
Url = "aml://storage/azureml/sklearn_regression_model.pkl",
},
},
},
Location = "eastus2",
ResourceGroupName = "testrg123",
ServiceName = "service456",
WorkspaceName = "workspaces123",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewACIService(ctx, "aciService", &machinelearningservices.ACIServiceArgs{
AppInsightsEnabled: pulumi.Bool(true),
AuthEnabled: pulumi.Bool(true),
ComputeType: pulumi.String("ACI"),
ContainerResourceRequirements: &machinelearningservices.ContainerResourceRequirementsArgs{
Cpu: pulumi.Float64(1),
MemoryInGB: pulumi.Float64(1),
},
EnvironmentImageRequest: &machinelearningservices.CreateServiceRequestEnvironmentImageRequestArgs{
Assets: machinelearningservices.ImageAssetArray{
&machinelearningservices.ImageAssetArgs{
MimeType: pulumi.String("application/x-python"),
Unpack: pulumi.Bool(false),
Url: pulumi.String("aml://storage/azureml/score.py"),
},
},
DriverProgram: pulumi.String("score.py"),
Environment: &machinelearningservices.EnvironmentImageRequestEnvironmentArgs{
Docker: &machinelearningservices.ModelEnvironmentDefinitionDockerArgs{
BaseImage: pulumi.String("mcr.microsoft.com/azureml/base:openmpi3.1.2-ubuntu16.04"),
BaseImageRegistry: nil,
},
EnvironmentVariables: pulumi.StringMap{
"EXAMPLE_ENV_VAR": pulumi.String("EXAMPLE_VALUE"),
},
Name: pulumi.String("AzureML-Scikit-learn-0.20.3"),
Python: &machinelearningservices.ModelEnvironmentDefinitionPythonArgs{
CondaDependencies: pulumi.Any{
Channels: []string{
"conda-forge",
},
Dependencies: []interface{}{
"python=3.6.2",
map[string]interface{}{
"pip": []string{
"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",
},
},
},
Name: "azureml_ae1acbe6e1e6aabbad900b53c491a17c",
},
InterpreterPath: pulumi.String("python"),
UserManagedDependencies: pulumi.Bool(false),
},
Spark: &machinelearningservices.ModelEnvironmentDefinitionSparkArgs{
Packages: machinelearningservices.SparkMavenPackageArray{},
PrecachePackages: pulumi.Bool(true),
Repositories: pulumi.StringArray{},
},
Version: pulumi.String("3"),
},
Models: machinelearningservices.ModelArray{
&machinelearningservices.ModelArgs{
MimeType: pulumi.String("application/x-python"),
Name: pulumi.String("sklearn_regression_model.pkl"),
Url: pulumi.String("aml://storage/azureml/sklearn_regression_model.pkl"),
},
},
},
Location: pulumi.String("eastus2"),
ResourceGroupName: pulumi.String("testrg123"),
ServiceName: pulumi.String("service456"),
WorkspaceName: pulumi.String("workspaces123"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearningservices.ACIService;
import com.pulumi.azurenative.machinelearningservices.ACIServiceArgs;
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 aciService = new ACIService("aciService", ACIServiceArgs.builder()
.appInsightsEnabled(true)
.authEnabled(true)
.computeType("ACI")
.containerResourceRequirements(Map.ofEntries(
Map.entry("cpu", 1),
Map.entry("memoryInGB", 1)
))
.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.

$ pulumi import azure-native:machinelearningservices:ACIService service456 subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspaces123/services/service456

Constructors

Link copied to clipboard
constructor(appInsightsEnabled: Output<Boolean>? = null, authEnabled: Output<Boolean>? = null, cname: Output<String>? = null, computeType: Output<String>? = null, containerResourceRequirements: Output<ContainerResourceRequirementsArgs>? = null, dataCollection: Output<ACIServiceCreateRequestDataCollectionArgs>? = null, description: Output<String>? = null, dnsNameLabel: Output<String>? = null, encryptionProperties: Output<ACIServiceCreateRequestEncryptionPropertiesArgs>? = null, environmentImageRequest: Output<CreateServiceRequestEnvironmentImageRequestArgs>? = null, keys: Output<CreateServiceRequestKeysArgs>? = null, kvTags: Output<Map<String, String>>? = null, location: Output<String>? = null, properties: Output<Map<String, String>>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, sslCertificate: Output<String>? = null, sslEnabled: Output<Boolean>? = null, sslKey: Output<String>? = null, vnetConfiguration: Output<ACIServiceCreateRequestVnetConfigurationArgs>? = null, workspaceName: Output<String>? = null)

Properties

Link copied to clipboard
val appInsightsEnabled: Output<Boolean>? = null

Whether or not Application Insights is enabled.

Link copied to clipboard
val authEnabled: Output<Boolean>? = null

Whether or not authentication is enabled on the service.

Link copied to clipboard
val cname: Output<String>? = null

The CName for the service.

Link copied to clipboard
val computeType: Output<String>? = null

The compute environment type for the service. Expected value is 'ACI'.

Link copied to clipboard

The container resource requirements.

Link copied to clipboard

Details of the data collection options specified.

Link copied to clipboard
val description: Output<String>? = null

The description of the service.

Link copied to clipboard
val dnsNameLabel: Output<String>? = null

The Dns label for the service.

Link copied to clipboard

The encryption properties.

Link copied to clipboard

The Environment, models and assets needed for inferencing.

Link copied to clipboard
val keys: Output<CreateServiceRequestKeysArgs>? = null

The authentication keys.

Link copied to clipboard
val kvTags: Output<Map<String, String>>? = null

The service tag dictionary. Tags are mutable.

Link copied to clipboard
val location: Output<String>? = null

The name of the Azure location/region.

Link copied to clipboard
val properties: Output<Map<String, String>>? = null

The service properties dictionary. Properties are immutable.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group in which workspace is located.

Link copied to clipboard
val serviceName: Output<String>? = null

Name of the Azure Machine Learning service.

Link copied to clipboard
val sslCertificate: Output<String>? = null

The public SSL certificate in PEM format to use if SSL is enabled.

Link copied to clipboard
val sslEnabled: Output<Boolean>? = null

Whether or not SSL is enabled.

Link copied to clipboard
val sslKey: Output<String>? = null

The public SSL key in PEM format for the certificate.

Link copied to clipboard

The virtual network configuration.

Link copied to clipboard
val workspaceName: Output<String>? = null

Name of Azure Machine Learning workspace.

Functions

Link copied to clipboard
open override fun toJava(): ACIServiceArgs