import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Machine Learning Compute Cluster. * * ## Example Usage * * ```typescript * 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 test = new azure.machinelearning.ComputeCluster("test", { * name: "example", * location: example.location, * vmPriority: "LowPriority", * vmSize: "Standard_DS2_v2", * machineLearningWorkspaceId: exampleWorkspace.id, * subnetResourceId: exampleSubnet.id, * scaleSettings: { * minNodeCount: 0, * maxNodeCount: 1, * scaleDownNodesAfterIdleDuration: "PT30S", * }, * identity: { * type: "SystemAssigned", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.MachineLearningServices` - 2025-06-01 * * ## Import * * Machine Learning Compute Clusters can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:machinelearning/computeCluster:ComputeCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/computes/cluster1 * ``` */ export declare class ComputeCluster extends pulumi.CustomResource { /** * Get an existing ComputeCluster resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ComputeClusterState, opts?: pulumi.CustomResourceOptions): ComputeCluster; /** * Returns true if the given object is an instance of ComputeCluster. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ComputeCluster; /** * The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly description: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly localAuthEnabled: pulumi.Output; /** * The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly location: pulumi.Output; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly machineLearningWorkspaceId: pulumi.Output; /** * The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly name: pulumi.Output; /** * Whether the compute cluster will have a public ip. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly nodePublicIpEnabled: pulumi.Output; /** * A `scaleSettings` block as defined below. */ readonly scaleSettings: pulumi.Output; /** * Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly ssh: pulumi.Output; /** * A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly sshPublicAccessEnabled: pulumi.Output; /** * The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly subnetResourceId: pulumi.Output; /** * A mapping of tags which should be assigned to the Machine Learning Compute Cluster. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`. */ readonly vmPriority: pulumi.Output; /** * The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. */ readonly vmSize: pulumi.Output; /** * Create a ComputeCluster resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ComputeClusterArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ComputeCluster resources. */ export interface ComputeClusterState { /** * The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created. */ description?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ localAuthEnabled?: pulumi.Input; /** * The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created. */ location?: pulumi.Input; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created. */ machineLearningWorkspaceId?: pulumi.Input; /** * The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created. */ name?: pulumi.Input; /** * Whether the compute cluster will have a public ip. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ nodePublicIpEnabled?: pulumi.Input; /** * A `scaleSettings` block as defined below. */ scaleSettings?: pulumi.Input; /** * Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created. */ ssh?: pulumi.Input; /** * A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created. */ sshPublicAccessEnabled?: pulumi.Input; /** * The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created. */ subnetResourceId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Machine Learning Compute Cluster. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`. */ vmPriority?: pulumi.Input; /** * The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. */ vmSize?: pulumi.Input; } /** * The set of arguments for constructing a ComputeCluster resource. */ export interface ComputeClusterArgs { /** * The description of the Machine Learning compute. Changing this forces a new Machine Learning Compute Cluster to be created. */ description?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ localAuthEnabled?: pulumi.Input; /** * The Azure Region where the Machine Learning Compute Cluster should exist. Changing this forces a new Machine Learning Compute Cluster to be created. */ location?: pulumi.Input; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Compute Cluster to be created. */ machineLearningWorkspaceId: pulumi.Input; /** * The name which should be used for this Machine Learning Compute Cluster. Changing this forces a new Machine Learning Compute Cluster to be created. */ name?: pulumi.Input; /** * Whether the compute cluster will have a public ip. Defaults to `true`. Changing this forces a new Machine Learning Compute Cluster to be created. */ nodePublicIpEnabled?: pulumi.Input; /** * A `scaleSettings` block as defined below. */ scaleSettings: pulumi.Input; /** * Credentials for an administrator user account that will be created on each compute node. A `ssh` block as defined below. Changing this forces a new Machine Learning Compute Cluster to be created. */ ssh?: pulumi.Input; /** * A boolean value indicating whether enable the public SSH port. Defaults to `false`. Changing this forces a new Machine Learning Compute Cluster to be created. */ sshPublicAccessEnabled?: pulumi.Input; /** * The ID of the Subnet that the Compute Cluster should reside in. Changing this forces a new Machine Learning Compute Cluster to be created. */ subnetResourceId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Machine Learning Compute Cluster. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The priority of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. Accepted values are `Dedicated` and `LowPriority`. */ vmPriority: pulumi.Input; /** * The size of the VM. Changing this forces a new Machine Learning Compute Cluster to be created. */ vmSize: pulumi.Input; }