import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages the linked service to link an Azure Machine learning workspace to an Azure Synapse workspace. * * ## 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 exampleDataLakeGen2Filesystem = new azure.storage.DataLakeGen2Filesystem("example", { * name: "example", * storageAccountId: exampleAccount.id, * }); * const exampleWorkspace2 = new azure.synapse.Workspace("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * storageDataLakeGen2FilesystemId: exampleDataLakeGen2Filesystem.id, * sqlAdministratorLogin: "sqladminuser", * sqlAdministratorLoginPassword: "H@Sh1CoR3!", * identity: { * type: "SystemAssigned", * }, * }); * const exampleSparkPool = new azure.synapse.SparkPool("example", { * name: "example", * synapseWorkspaceId: exampleWorkspace2.id, * nodeSizeFamily: "MemoryOptimized", * nodeSize: "Small", * nodeCount: 3, * }); * const exampleSynapseSpark = new azure.machinelearning.SynapseSpark("example", { * name: "example", * machineLearningWorkspaceId: exampleWorkspace.id, * location: example.location, * synapseSparkPoolId: exampleSparkPool.id, * identity: { * type: "SystemAssigned", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.MachineLearningServices` - 2025-06-01 * * ## Import * * Machine Learning Synapse Sparks can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:machinelearning/synapseSpark:SynapseSpark example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.MachineLearningServices/workspaces/workspace1/computes/compute1 * ``` */ export declare class SynapseSpark extends pulumi.CustomResource { /** * Get an existing SynapseSpark 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?: SynapseSparkState, opts?: pulumi.CustomResourceOptions): SynapseSpark; /** * Returns true if the given object is an instance of SynapseSpark. 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 SynapseSpark; /** * The description of the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly description: pulumi.Output; /** * An `identity` block as defined below. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly identity: pulumi.Output; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly localAuthEnabled: pulumi.Output; /** * The Azure Region where the Machine Learning Synapse Spark should exist. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly location: pulumi.Output; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly machineLearningWorkspaceId: pulumi.Output; /** * The name which should be used for this Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly name: pulumi.Output; /** * The ID of the linked Synapse Spark Pool. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly synapseSparkPoolId: pulumi.Output; /** * A mapping of tags which should be assigned to the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a SynapseSpark 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: SynapseSparkArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SynapseSpark resources. */ export interface SynapseSparkState { /** * The description of the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ description?: pulumi.Input; /** * An `identity` block as defined below. Changing this forces a new Machine Learning Synapse Spark to be created. */ identity?: pulumi.Input; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Synapse Spark to be created. */ localAuthEnabled?: pulumi.Input; /** * The Azure Region where the Machine Learning Synapse Spark should exist. Changing this forces a new Machine Learning Synapse Spark to be created. */ location?: pulumi.Input; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Synapse Spark to be created. */ machineLearningWorkspaceId?: pulumi.Input; /** * The name which should be used for this Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ name?: pulumi.Input; /** * The ID of the linked Synapse Spark Pool. Changing this forces a new Machine Learning Synapse Spark to be created. */ synapseSparkPoolId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a SynapseSpark resource. */ export interface SynapseSparkArgs { /** * The description of the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ description?: pulumi.Input; /** * An `identity` block as defined below. Changing this forces a new Machine Learning Synapse Spark to be created. */ identity?: pulumi.Input; /** * Whether local authentication methods is enabled. Defaults to `true`. Changing this forces a new Machine Learning Synapse Spark to be created. */ localAuthEnabled?: pulumi.Input; /** * The Azure Region where the Machine Learning Synapse Spark should exist. Changing this forces a new Machine Learning Synapse Spark to be created. */ location?: pulumi.Input; /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning Synapse Spark to be created. */ machineLearningWorkspaceId: pulumi.Input; /** * The name which should be used for this Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ name?: pulumi.Input; /** * The ID of the linked Synapse Spark Pool. Changing this forces a new Machine Learning Synapse Spark to be created. */ synapseSparkPoolId: pulumi.Input; /** * A mapping of tags which should be assigned to the Machine Learning Synapse Spark. Changing this forces a new Machine Learning Synapse Spark to be created. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }