Code Container
    Azure Resource Manager resource envelope. Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-03-01-preview. Other available API versions: 2021-03-01-preview, 2022-02-01-preview, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01.
Example Usage
CreateOrUpdate Workspace Code Container.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var codeContainer = new AzureNative.MachineLearningServices.CodeContainer("codeContainer", new()
    {
        CodeContainerProperties = new AzureNative.MachineLearningServices.Inputs.CodeContainerArgs
        {
            Description = "string",
            Tags =
            {
                { "tag1", "value1" },
                { "tag2", "value2" },
            },
        },
        Name = "testContainer",
        ResourceGroupName = "testrg123",
        WorkspaceName = "testworkspace",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := machinelearningservices.NewCodeContainer(ctx, "codeContainer", &machinelearningservices.CodeContainerArgs{
			CodeContainerProperties: &machinelearningservices.CodeContainerTypeArgs{
				Description: pulumi.String("string"),
				Tags: pulumi.StringMap{
					"tag1": pulumi.String("value1"),
					"tag2": pulumi.String("value2"),
				},
			},
			Name:              pulumi.String("testContainer"),
			ResourceGroupName: pulumi.String("testrg123"),
			WorkspaceName:     pulumi.String("testworkspace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.machinelearningservices.CodeContainer;
import com.pulumi.azurenative.machinelearningservices.CodeContainerArgs;
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 codeContainer = new CodeContainer("codeContainer", CodeContainerArgs.builder()
            .codeContainerProperties(Map.ofEntries(
                Map.entry("description", "string"),
                Map.entry("tags", Map.ofEntries(
                    Map.entry("tag1", "value1"),
                    Map.entry("tag2", "value2")
                ))
            ))
            .name("testContainer")
            .resourceGroupName("testrg123")
            .workspaceName("testworkspace")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:machinelearningservices:CodeContainer testContainer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}Content copied to clipboard