Data Container Args
Azure Resource Manager resource envelope. Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2021-03-01-preview, 2022-02-01-preview, 2022-05-01, 2022-06-01-preview, 2022-10-01, 2022-10-01-preview, 2022-12-01-preview, 2023-02-01-preview, 2023-04-01, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-07-01-preview, 2024-10-01-preview, 2025-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native machinelearningservices [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
CreateOrUpdate Workspace Data Container.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dataContainer = new AzureNative.MachineLearningServices.DataContainer("dataContainer", new()
{
DataContainerProperties = new AzureNative.MachineLearningServices.Inputs.DataContainerArgs
{
DataType = "UriFile",
Description = "string",
Properties =
{
{ "properties1", "value1" },
{ "properties2", "value2" },
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
},
Name = "datacontainer123",
ResourceGroupName = "testrg123",
WorkspaceName = "workspace123",
});
});
package main
import (
machinelearningservices "github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := machinelearningservices.NewDataContainer(ctx, "dataContainer", &machinelearningservices.DataContainerArgs{
DataContainerProperties: &machinelearningservices.DataContainerTypeArgs{
DataType: pulumi.String("UriFile"),
Description: pulumi.String("string"),
Properties: pulumi.StringMap{
"properties1": pulumi.String("value1"),
"properties2": pulumi.String("value2"),
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
},
Name: pulumi.String("datacontainer123"),
ResourceGroupName: pulumi.String("testrg123"),
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.DataContainer;
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 dataContainer = new DataContainer("dataContainer", DataContainerArgs.builder()
.dataContainerProperties(DataContainerArgs.builder()
.dataType("UriFile")
.description("string")
.properties(Map.ofEntries(
Map.entry("properties1", "value1"),
Map.entry("properties2", "value2")
))
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build())
.name("datacontainer123")
.resourceGroupName("testrg123")
.workspaceName("workspace123")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:DataContainer datacontainer123 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/data/{name}