ModelVersion

Azure Resource Manager resource envelope. API Version: 2021-03-01-preview.

Example Usage

CreateOrUpdate Model Version.

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var modelVersion = new AzureNative.MachineLearningServices.ModelVersion("modelVersion", new()
{
Name = "testContainer",
Properties = new AzureNative.MachineLearningServices.Inputs.ModelVersionArgs
{
DatastoreId = "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/datastores/datastore123",
Description = "Model version description",
Flavors =
{
{ "python_function", new AzureNative.MachineLearningServices.Inputs.FlavorDataArgs
{
Data =
{
{ "loader_module", "myLoaderModule" },
},
} },
},
Path = "path/in/datastore",
Properties =
{
{ "prop1", "value1" },
{ "prop2", "value2" },
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
},
ResourceGroupName = "testrg123",
Version = "1",
WorkspaceName = "workspace123",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native/sdk/go/azure/machinelearningservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewModelVersion(ctx, "modelVersion", &machinelearningservices.ModelVersionArgs{
Name: pulumi.String("testContainer"),
Properties: machinelearningservices.ModelVersionResponse{
DatastoreId: pulumi.String("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/datastores/datastore123"),
Description: pulumi.String("Model version description"),
Flavors: machinelearningservices.FlavorDataMap{
"python_function": &machinelearningservices.FlavorDataArgs{
Data: pulumi.StringMap{
"loader_module": pulumi.String("myLoaderModule"),
},
},
},
Path: pulumi.String("path/in/datastore"),
Properties: pulumi.StringMap{
"prop1": pulumi.String("value1"),
"prop2": pulumi.String("value2"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
},
ResourceGroupName: pulumi.String("testrg123"),
Version: pulumi.String("1"),
WorkspaceName: pulumi.String("workspace123"),
})
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.ModelVersion;
import com.pulumi.azurenative.machinelearningservices.ModelVersionArgs;
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 modelVersion = new ModelVersion("modelVersion", ModelVersionArgs.builder()
.name("testContainer")
.properties(Map.ofEntries(
Map.entry("datastoreId", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/datastores/datastore123"),
Map.entry("description", "Model version description"),
Map.entry("flavors", Map.of("python_function", Map.of("data", Map.of("loader_module", "myLoaderModule")))),
Map.entry("path", "path/in/datastore"),
Map.entry("properties", Map.ofEntries(
Map.entry("prop1", "value1"),
Map.entry("prop2", "value2")
)),
Map.entry("tags", Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
))
.resourceGroupName("testrg123")
.version("1")
.workspaceName("workspace123")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:machinelearningservices:ModelVersion 999 /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg123/providers/Microsoft.MachineLearningServices/workspaces/workspace123/models/testContainer/versions/999

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Required Additional attributes of the entity.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

System data associated with resource provider

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>