1. Packages
  2. Azure Classic
  3. API Docs
  4. machinelearning
  5. ComputeInstance

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.machinelearning.ComputeInstance

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Manages a Machine Learning Compute Instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const current = azure.core.getClientConfig({});
    const example = new azure.core.ResourceGroup("example", {
        name: "example-rg",
        location: "west europe",
        tags: {
            stage: "example",
        },
    });
    const exampleInsights = new azure.appinsights.Insights("example", {
        name: "example-ai",
        location: example.location,
        resourceGroupName: example.name,
        applicationType: "web",
    });
    const exampleKeyVault = new azure.keyvault.KeyVault("example", {
        name: "example-kv",
        location: example.location,
        resourceGroupName: example.name,
        tenantId: current.then(current => current.tenantId),
        skuName: "standard",
        purgeProtectionEnabled: true,
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplesa",
        location: example.location,
        resourceGroupName: example.name,
        accountTier: "Standard",
        accountReplicationType: "LRS",
    });
    const exampleWorkspace = new azure.machinelearning.Workspace("example", {
        name: "example-mlw",
        location: example.location,
        resourceGroupName: example.name,
        applicationInsightsId: exampleInsights.id,
        keyVaultId: exampleKeyVault.id,
        storageAccountId: exampleAccount.id,
        identity: {
            type: "SystemAssigned",
        },
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "example-vnet",
        addressSpaces: ["10.1.0.0/16"],
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "example-subnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.1.0.0/24"],
    });
    const config = new pulumi.Config();
    const sshKey = config.get("sshKey") || "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld";
    const exampleComputeInstance = new azure.machinelearning.ComputeInstance("example", {
        name: "example",
        machineLearningWorkspaceId: exampleWorkspace.id,
        virtualMachineSize: "STANDARD_DS2_V2",
        authorizationType: "personal",
        ssh: {
            publicKey: sshKey,
        },
        subnetResourceId: exampleSubnet.id,
        description: "foo",
        tags: {
            foo: "bar",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    current = azure.core.get_client_config()
    example = azure.core.ResourceGroup("example",
        name="example-rg",
        location="west europe",
        tags={
            "stage": "example",
        })
    example_insights = azure.appinsights.Insights("example",
        name="example-ai",
        location=example.location,
        resource_group_name=example.name,
        application_type="web")
    example_key_vault = azure.keyvault.KeyVault("example",
        name="example-kv",
        location=example.location,
        resource_group_name=example.name,
        tenant_id=current.tenant_id,
        sku_name="standard",
        purge_protection_enabled=True)
    example_account = azure.storage.Account("example",
        name="examplesa",
        location=example.location,
        resource_group_name=example.name,
        account_tier="Standard",
        account_replication_type="LRS")
    example_workspace = azure.machinelearning.Workspace("example",
        name="example-mlw",
        location=example.location,
        resource_group_name=example.name,
        application_insights_id=example_insights.id,
        key_vault_id=example_key_vault.id,
        storage_account_id=example_account.id,
        identity={
            "type": "SystemAssigned",
        })
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="example-vnet",
        address_spaces=["10.1.0.0/16"],
        location=example.location,
        resource_group_name=example.name)
    example_subnet = azure.network.Subnet("example",
        name="example-subnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.1.0.0/24"])
    config = pulumi.Config()
    ssh_key = config.get("sshKey")
    if ssh_key is None:
        ssh_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld"
    example_compute_instance = azure.machinelearning.ComputeInstance("example",
        name="example",
        machine_learning_workspace_id=example_workspace.id,
        virtual_machine_size="STANDARD_DS2_V2",
        authorization_type="personal",
        ssh={
            "public_key": ssh_key,
        },
        subnet_resource_id=example_subnet.id,
        description="foo",
        tags={
            "foo": "bar",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appinsights"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/keyvault"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/machinelearning"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		current, err := core.GetClientConfig(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-rg"),
    			Location: pulumi.String("west europe"),
    			Tags: pulumi.StringMap{
    				"stage": pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleInsights, err := appinsights.NewInsights(ctx, "example", &appinsights.InsightsArgs{
    			Name:              pulumi.String("example-ai"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			ApplicationType:   pulumi.String("web"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleKeyVault, err := keyvault.NewKeyVault(ctx, "example", &keyvault.KeyVaultArgs{
    			Name:                   pulumi.String("example-kv"),
    			Location:               example.Location,
    			ResourceGroupName:      example.Name,
    			TenantId:               pulumi.String(current.TenantId),
    			SkuName:                pulumi.String("standard"),
    			PurgeProtectionEnabled: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplesa"),
    			Location:               example.Location,
    			ResourceGroupName:      example.Name,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("LRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleWorkspace, err := machinelearning.NewWorkspace(ctx, "example", &machinelearning.WorkspaceArgs{
    			Name:                  pulumi.String("example-mlw"),
    			Location:              example.Location,
    			ResourceGroupName:     example.Name,
    			ApplicationInsightsId: exampleInsights.ID(),
    			KeyVaultId:            exampleKeyVault.ID(),
    			StorageAccountId:      exampleAccount.ID(),
    			Identity: &machinelearning.WorkspaceIdentityArgs{
    				Type: pulumi.String("SystemAssigned"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name: pulumi.String("example-vnet"),
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.1.0.0/16"),
    			},
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("example-subnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.1.0.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		cfg := config.New(ctx, "")
    		sshKey := "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld"
    		if param := cfg.Get("sshKey"); param != "" {
    			sshKey = param
    		}
    		_, err = machinelearning.NewComputeInstance(ctx, "example", &machinelearning.ComputeInstanceArgs{
    			Name:                       pulumi.String("example"),
    			MachineLearningWorkspaceId: exampleWorkspace.ID(),
    			VirtualMachineSize:         pulumi.String("STANDARD_DS2_V2"),
    			AuthorizationType:          pulumi.String("personal"),
    			Ssh: &machinelearning.ComputeInstanceSshArgs{
    				PublicKey: pulumi.String(sshKey),
    			},
    			SubnetResourceId: exampleSubnet.ID(),
    			Description:      pulumi.String("foo"),
    			Tags: pulumi.StringMap{
    				"foo": pulumi.String("bar"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Azure.Core.GetClientConfig.Invoke();
    
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-rg",
            Location = "west europe",
            Tags = 
            {
                { "stage", "example" },
            },
        });
    
        var exampleInsights = new Azure.AppInsights.Insights("example", new()
        {
            Name = "example-ai",
            Location = example.Location,
            ResourceGroupName = example.Name,
            ApplicationType = "web",
        });
    
        var exampleKeyVault = new Azure.KeyVault.KeyVault("example", new()
        {
            Name = "example-kv",
            Location = example.Location,
            ResourceGroupName = example.Name,
            TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
            SkuName = "standard",
            PurgeProtectionEnabled = true,
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplesa",
            Location = example.Location,
            ResourceGroupName = example.Name,
            AccountTier = "Standard",
            AccountReplicationType = "LRS",
        });
    
        var exampleWorkspace = new Azure.MachineLearning.Workspace("example", new()
        {
            Name = "example-mlw",
            Location = example.Location,
            ResourceGroupName = example.Name,
            ApplicationInsightsId = exampleInsights.Id,
            KeyVaultId = exampleKeyVault.Id,
            StorageAccountId = exampleAccount.Id,
            Identity = new Azure.MachineLearning.Inputs.WorkspaceIdentityArgs
            {
                Type = "SystemAssigned",
            },
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "example-vnet",
            AddressSpaces = new[]
            {
                "10.1.0.0/16",
            },
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "example-subnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.1.0.0/24",
            },
        });
    
        var config = new Config();
        var sshKey = config.Get("sshKey") ?? "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld";
        var exampleComputeInstance = new Azure.MachineLearning.ComputeInstance("example", new()
        {
            Name = "example",
            MachineLearningWorkspaceId = exampleWorkspace.Id,
            VirtualMachineSize = "STANDARD_DS2_V2",
            AuthorizationType = "personal",
            Ssh = new Azure.MachineLearning.Inputs.ComputeInstanceSshArgs
            {
                PublicKey = sshKey,
            },
            SubnetResourceId = exampleSubnet.Id,
            Description = "foo",
            Tags = 
            {
                { "foo", "bar" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.CoreFunctions;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.appinsights.Insights;
    import com.pulumi.azure.appinsights.InsightsArgs;
    import com.pulumi.azure.keyvault.KeyVault;
    import com.pulumi.azure.keyvault.KeyVaultArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.machinelearning.Workspace;
    import com.pulumi.azure.machinelearning.WorkspaceArgs;
    import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
    import com.pulumi.azure.network.VirtualNetwork;
    import com.pulumi.azure.network.VirtualNetworkArgs;
    import com.pulumi.azure.network.Subnet;
    import com.pulumi.azure.network.SubnetArgs;
    import com.pulumi.azure.machinelearning.ComputeInstance;
    import com.pulumi.azure.machinelearning.ComputeInstanceArgs;
    import com.pulumi.azure.machinelearning.inputs.ComputeInstanceSshArgs;
    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) {
            final var config = ctx.config();
            final var current = CoreFunctions.getClientConfig();
    
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-rg")
                .location("west europe")
                .tags(Map.of("stage", "example"))
                .build());
    
            var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
                .name("example-ai")
                .location(example.location())
                .resourceGroupName(example.name())
                .applicationType("web")
                .build());
    
            var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
                .name("example-kv")
                .location(example.location())
                .resourceGroupName(example.name())
                .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
                .skuName("standard")
                .purgeProtectionEnabled(true)
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
                .name("examplesa")
                .location(example.location())
                .resourceGroupName(example.name())
                .accountTier("Standard")
                .accountReplicationType("LRS")
                .build());
    
            var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
                .name("example-mlw")
                .location(example.location())
                .resourceGroupName(example.name())
                .applicationInsightsId(exampleInsights.id())
                .keyVaultId(exampleKeyVault.id())
                .storageAccountId(exampleAccount.id())
                .identity(WorkspaceIdentityArgs.builder()
                    .type("SystemAssigned")
                    .build())
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("example-vnet")
                .addressSpaces("10.1.0.0/16")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("example-subnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.1.0.0/24")
                .build());
    
            final var sshKey = config.get("sshKey").orElse("ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld");
            var exampleComputeInstance = new ComputeInstance("exampleComputeInstance", ComputeInstanceArgs.builder()
                .name("example")
                .machineLearningWorkspaceId(exampleWorkspace.id())
                .virtualMachineSize("STANDARD_DS2_V2")
                .authorizationType("personal")
                .ssh(ComputeInstanceSshArgs.builder()
                    .publicKey(sshKey)
                    .build())
                .subnetResourceId(exampleSubnet.id())
                .description("foo")
                .tags(Map.of("foo", "bar"))
                .build());
    
        }
    }
    
    configuration:
      sshKey:
        type: string
        default: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqaZoyiz1qbdOQ8xEf6uEu1cCwYowo5FHtsBhqLoDnnp7KUTEBN+L2NxRIfQ781rxV6Iq5jSav6b2Q8z5KiseOlvKA/RF2wqU0UPYqQviQhLmW6THTpmrv/YkUCuzxDpsH7DUDhZcwySLKVVe0Qm3+5N2Ta6UYH3lsDf9R9wTP2K/+vAnflKebuypNlmocIvakFWoZda18FOmsOoIVXQ8HWFNCuw9ZCunMSN62QGamCe3dL5cXlkgHYv7ekJE15IA9aOJcM7e90oeTqo+7HTcWfdu0qQqPWY5ujyMw/llas8tsXY85LFqRnr3gJ02bAscjc477+X+j/gkpFoN1QEmt terraform@demo.tld
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-rg
          location: west europe
          tags:
            stage: example
      exampleInsights:
        type: azure:appinsights:Insights
        name: example
        properties:
          name: example-ai
          location: ${example.location}
          resourceGroupName: ${example.name}
          applicationType: web
      exampleKeyVault:
        type: azure:keyvault:KeyVault
        name: example
        properties:
          name: example-kv
          location: ${example.location}
          resourceGroupName: ${example.name}
          tenantId: ${current.tenantId}
          skuName: standard
          purgeProtectionEnabled: true
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplesa
          location: ${example.location}
          resourceGroupName: ${example.name}
          accountTier: Standard
          accountReplicationType: LRS
      exampleWorkspace:
        type: azure:machinelearning:Workspace
        name: example
        properties:
          name: example-mlw
          location: ${example.location}
          resourceGroupName: ${example.name}
          applicationInsightsId: ${exampleInsights.id}
          keyVaultId: ${exampleKeyVault.id}
          storageAccountId: ${exampleAccount.id}
          identity:
            type: SystemAssigned
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: example-vnet
          addressSpaces:
            - 10.1.0.0/16
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: example-subnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.1.0.0/24
      exampleComputeInstance:
        type: azure:machinelearning:ComputeInstance
        name: example
        properties:
          name: example
          machineLearningWorkspaceId: ${exampleWorkspace.id}
          virtualMachineSize: STANDARD_DS2_V2
          authorizationType: personal
          ssh:
            publicKey: ${sshKey}
          subnetResourceId: ${exampleSubnet.id}
          description: foo
          tags:
            foo: bar
    variables:
      current:
        fn::invoke:
          Function: azure:core:getClientConfig
          Arguments: {}
    

    Create ComputeInstance Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ComputeInstance(name: string, args: ComputeInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeInstance(resource_name: str,
                        args: ComputeInstanceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeInstance(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        machine_learning_workspace_id: Optional[str] = None,
                        virtual_machine_size: Optional[str] = None,
                        assign_to_user: Optional[ComputeInstanceAssignToUserArgs] = None,
                        authorization_type: Optional[str] = None,
                        description: Optional[str] = None,
                        identity: Optional[ComputeInstanceIdentityArgs] = None,
                        local_auth_enabled: Optional[bool] = None,
                        name: Optional[str] = None,
                        node_public_ip_enabled: Optional[bool] = None,
                        ssh: Optional[ComputeInstanceSshArgs] = None,
                        subnet_resource_id: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None)
    func NewComputeInstance(ctx *Context, name string, args ComputeInstanceArgs, opts ...ResourceOption) (*ComputeInstance, error)
    public ComputeInstance(string name, ComputeInstanceArgs args, CustomResourceOptions? opts = null)
    public ComputeInstance(String name, ComputeInstanceArgs args)
    public ComputeInstance(String name, ComputeInstanceArgs args, CustomResourceOptions options)
    
    type: azure:machinelearning:ComputeInstance
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ComputeInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeInstanceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var computeInstanceResource = new Azure.MachineLearning.ComputeInstance("computeInstanceResource", new()
    {
        MachineLearningWorkspaceId = "string",
        VirtualMachineSize = "string",
        AssignToUser = new Azure.MachineLearning.Inputs.ComputeInstanceAssignToUserArgs
        {
            ObjectId = "string",
            TenantId = "string",
        },
        AuthorizationType = "string",
        Description = "string",
        Identity = new Azure.MachineLearning.Inputs.ComputeInstanceIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        LocalAuthEnabled = false,
        Name = "string",
        NodePublicIpEnabled = false,
        Ssh = new Azure.MachineLearning.Inputs.ComputeInstanceSshArgs
        {
            PublicKey = "string",
            Port = 0,
            Username = "string",
        },
        SubnetResourceId = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := machinelearning.NewComputeInstance(ctx, "computeInstanceResource", &machinelearning.ComputeInstanceArgs{
    	MachineLearningWorkspaceId: pulumi.String("string"),
    	VirtualMachineSize:         pulumi.String("string"),
    	AssignToUser: &machinelearning.ComputeInstanceAssignToUserArgs{
    		ObjectId: pulumi.String("string"),
    		TenantId: pulumi.String("string"),
    	},
    	AuthorizationType: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Identity: &machinelearning.ComputeInstanceIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	LocalAuthEnabled:    pulumi.Bool(false),
    	Name:                pulumi.String("string"),
    	NodePublicIpEnabled: pulumi.Bool(false),
    	Ssh: &machinelearning.ComputeInstanceSshArgs{
    		PublicKey: pulumi.String("string"),
    		Port:      pulumi.Int(0),
    		Username:  pulumi.String("string"),
    	},
    	SubnetResourceId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var computeInstanceResource = new ComputeInstance("computeInstanceResource", ComputeInstanceArgs.builder()
        .machineLearningWorkspaceId("string")
        .virtualMachineSize("string")
        .assignToUser(ComputeInstanceAssignToUserArgs.builder()
            .objectId("string")
            .tenantId("string")
            .build())
        .authorizationType("string")
        .description("string")
        .identity(ComputeInstanceIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .localAuthEnabled(false)
        .name("string")
        .nodePublicIpEnabled(false)
        .ssh(ComputeInstanceSshArgs.builder()
            .publicKey("string")
            .port(0)
            .username("string")
            .build())
        .subnetResourceId("string")
        .tags(Map.of("string", "string"))
        .build());
    
    compute_instance_resource = azure.machinelearning.ComputeInstance("computeInstanceResource",
        machine_learning_workspace_id="string",
        virtual_machine_size="string",
        assign_to_user={
            "objectId": "string",
            "tenantId": "string",
        },
        authorization_type="string",
        description="string",
        identity={
            "type": "string",
            "identityIds": ["string"],
            "principalId": "string",
            "tenantId": "string",
        },
        local_auth_enabled=False,
        name="string",
        node_public_ip_enabled=False,
        ssh={
            "publicKey": "string",
            "port": 0,
            "username": "string",
        },
        subnet_resource_id="string",
        tags={
            "string": "string",
        })
    
    const computeInstanceResource = new azure.machinelearning.ComputeInstance("computeInstanceResource", {
        machineLearningWorkspaceId: "string",
        virtualMachineSize: "string",
        assignToUser: {
            objectId: "string",
            tenantId: "string",
        },
        authorizationType: "string",
        description: "string",
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        localAuthEnabled: false,
        name: "string",
        nodePublicIpEnabled: false,
        ssh: {
            publicKey: "string",
            port: 0,
            username: "string",
        },
        subnetResourceId: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:machinelearning:ComputeInstance
    properties:
        assignToUser:
            objectId: string
            tenantId: string
        authorizationType: string
        description: string
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        localAuthEnabled: false
        machineLearningWorkspaceId: string
        name: string
        nodePublicIpEnabled: false
        ssh:
            port: 0
            publicKey: string
            username: string
        subnetResourceId: string
        tags:
            string: string
        virtualMachineSize: string
    

    ComputeInstance Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ComputeInstance resource accepts the following input properties:

    MachineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    VirtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    AssignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    AuthorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    Description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    Identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    LocalAuthEnabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    Name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    NodePublicIpEnabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    Ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    SubnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    MachineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    VirtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    AssignToUser ComputeInstanceAssignToUserArgs
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    AuthorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    Description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    Identity ComputeInstanceIdentityArgs
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    LocalAuthEnabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    Name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    NodePublicIpEnabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    Ssh ComputeInstanceSshArgs
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    SubnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId String
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize String
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType String
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description String
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled Boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    name String
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled Boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId String
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    machine_learning_workspace_id str
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    virtual_machine_size str
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assign_to_user ComputeInstanceAssignToUserArgs
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorization_type str
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description str
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentityArgs
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    local_auth_enabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    name str
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    node_public_ip_enabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSshArgs
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnet_resource_id str
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId String
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize String
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser Property Map
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType String
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description String
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity Property Map
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled Boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    name String
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled Boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh Property Map
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId String
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeInstance resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ComputeInstance Resource

    Get an existing ComputeInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ComputeInstanceState, opts?: CustomResourceOptions): ComputeInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            assign_to_user: Optional[ComputeInstanceAssignToUserArgs] = None,
            authorization_type: Optional[str] = None,
            description: Optional[str] = None,
            identity: Optional[ComputeInstanceIdentityArgs] = None,
            local_auth_enabled: Optional[bool] = None,
            machine_learning_workspace_id: Optional[str] = None,
            name: Optional[str] = None,
            node_public_ip_enabled: Optional[bool] = None,
            ssh: Optional[ComputeInstanceSshArgs] = None,
            subnet_resource_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            virtual_machine_size: Optional[str] = None) -> ComputeInstance
    func GetComputeInstance(ctx *Context, name string, id IDInput, state *ComputeInstanceState, opts ...ResourceOption) (*ComputeInstance, error)
    public static ComputeInstance Get(string name, Input<string> id, ComputeInstanceState? state, CustomResourceOptions? opts = null)
    public static ComputeInstance get(String name, Output<String> id, ComputeInstanceState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AssignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    AuthorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    Description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    Identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    LocalAuthEnabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    MachineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    Name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    NodePublicIpEnabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    Ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    SubnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    VirtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    AssignToUser ComputeInstanceAssignToUserArgs
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    AuthorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    Description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    Identity ComputeInstanceIdentityArgs
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    LocalAuthEnabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    MachineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    Name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    NodePublicIpEnabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    Ssh ComputeInstanceSshArgs
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    SubnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    VirtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType String
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description String
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled Boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId String
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    name String
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled Boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId String
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize String
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser ComputeInstanceAssignToUser
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType string
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description string
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentity
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId string
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    name string
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSsh
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId string
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize string
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assign_to_user ComputeInstanceAssignToUserArgs
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorization_type str
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description str
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity ComputeInstanceIdentityArgs
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    local_auth_enabled bool
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    machine_learning_workspace_id str
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    name str
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    node_public_ip_enabled bool
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh ComputeInstanceSshArgs
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnet_resource_id str
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    virtual_machine_size str
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.
    assignToUser Property Map
    A assign_to_user block as defined below. A user explicitly assigned to a personal compute instance. Changing this forces a new Machine Learning Compute Instance to be created.
    authorizationType String
    The Compute Instance Authorization type. Possible values include: personal. Changing this forces a new Machine Learning Compute Instance to be created.
    description String
    The description of the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    identity Property Map
    An identity block as defined below. Changing this forces a new Machine Learning Compute Instance to be created.
    localAuthEnabled Boolean
    Whether local authentication methods is enabled. Defaults to true. Changing this forces a new Machine Learning Compute Instance to be created.
    machineLearningWorkspaceId String
    The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Instance to be created.
    name String
    The name which should be used for this Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    nodePublicIpEnabled Boolean
    Whether the compute instance will have a public ip. To set this to false a subnet_resource_id needs to be set. Defaults to true. Changing this forces a new Machine Learning Compute Cluster to be created.
    ssh Property Map
    A ssh block as defined below. Specifies policy and settings for SSH access. Changing this forces a new Machine Learning Compute Instance to be created.
    subnetResourceId String
    Virtual network subnet resource ID the compute nodes belong to. Changing this forces a new Machine Learning Compute Instance to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Machine Learning Compute Instance. Changing this forces a new Machine Learning Compute Instance to be created.
    virtualMachineSize String
    The Virtual Machine Size. Changing this forces a new Machine Learning Compute Instance to be created.

    Supporting Types

    ComputeInstanceAssignToUser, ComputeInstanceAssignToUserArgs

    ObjectId string
    User’s AAD Object Id.
    TenantId string
    User’s AAD Tenant Id.
    ObjectId string
    User’s AAD Object Id.
    TenantId string
    User’s AAD Tenant Id.
    objectId String
    User’s AAD Object Id.
    tenantId String
    User’s AAD Tenant Id.
    objectId string
    User’s AAD Object Id.
    tenantId string
    User’s AAD Tenant Id.
    object_id str
    User’s AAD Object Id.
    tenant_id str
    User’s AAD Tenant Id.
    objectId String
    User’s AAD Object Id.
    tenantId String
    User’s AAD Tenant Id.

    ComputeInstanceIdentity, ComputeInstanceIdentityArgs

    Type string
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    IdentityIds List<string>

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    PrincipalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    TenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    Type string
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    IdentityIds []string

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    PrincipalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    TenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    type String
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    identityIds List<String>

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId String
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    tenantId String
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    type string
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    identityIds string[]

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId string
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    tenantId string
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    type str
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    identity_ids Sequence[str]

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principal_id str
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    tenant_id str
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    type String
    Specifies the type of Managed Service Identity that should be configured on this Machine Learning Compute Instance. Possible values are SystemAssigned, UserAssigned, SystemAssigned, UserAssigned (to enable both). Changing this forces a new resource to be created.
    identityIds List<String>

    Specifies a list of User Assigned Managed Identity IDs to be assigned to this Machine Learning Compute Instance. Changing this forces a new resource to be created.

    NOTE: This is required when type is set to UserAssigned or SystemAssigned, UserAssigned.

    principalId String
    The Principal ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.
    tenantId String
    The Tenant ID for the Service Principal associated with the Managed Service Identity of this Machine Learning Compute Instance.

    ComputeInstanceSsh, ComputeInstanceSshArgs

    PublicKey string
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    Port int
    Describes the port for connecting through SSH.
    Username string
    The admin username of this Machine Learning Compute Instance.
    PublicKey string
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    Port int
    Describes the port for connecting through SSH.
    Username string
    The admin username of this Machine Learning Compute Instance.
    publicKey String
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    port Integer
    Describes the port for connecting through SSH.
    username String
    The admin username of this Machine Learning Compute Instance.
    publicKey string
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    port number
    Describes the port for connecting through SSH.
    username string
    The admin username of this Machine Learning Compute Instance.
    public_key str
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    port int
    Describes the port for connecting through SSH.
    username str
    The admin username of this Machine Learning Compute Instance.
    publicKey String
    Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
    port Number
    Describes the port for connecting through SSH.
    username String
    The admin username of this Machine Learning Compute Instance.

    Import

    Machine Learning Compute Instances can be imported using the resource id, e.g.

    $ pulumi import azure:machinelearning/computeInstance:ComputeInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/computes/compute1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi