azure-native.kusto.SandboxCustomImage
Explore with Pulumi AI
Class representing a Kusto sandbox custom image.
Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2023-08-15.
Other available API versions: 2023-08-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native kusto [ApiVersion]
. See the version guide for details.
Example Usage
KustoSandboxCustomImagesCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sandboxCustomImage = new AzureNative.Kusto.SandboxCustomImage("sandboxCustomImage", new()
{
ClusterName = "kustoCluster",
Language = AzureNative.Kusto.Language.Python,
LanguageVersion = "3.10.8",
RequirementsFileContent = "Requests",
ResourceGroupName = "kustorptest",
SandboxCustomImageName = "customImage8",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewSandboxCustomImage(ctx, "sandboxCustomImage", &kusto.SandboxCustomImageArgs{
ClusterName: pulumi.String("kustoCluster"),
Language: pulumi.String(kusto.LanguagePython),
LanguageVersion: pulumi.String("3.10.8"),
RequirementsFileContent: pulumi.String("Requests"),
ResourceGroupName: pulumi.String("kustorptest"),
SandboxCustomImageName: pulumi.String("customImage8"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.SandboxCustomImage;
import com.pulumi.azurenative.kusto.SandboxCustomImageArgs;
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 sandboxCustomImage = new SandboxCustomImage("sandboxCustomImage", SandboxCustomImageArgs.builder()
.clusterName("kustoCluster")
.language("Python")
.languageVersion("3.10.8")
.requirementsFileContent("Requests")
.resourceGroupName("kustorptest")
.sandboxCustomImageName("customImage8")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sandboxCustomImage = new azure_native.kusto.SandboxCustomImage("sandboxCustomImage", {
clusterName: "kustoCluster",
language: azure_native.kusto.Language.Python,
languageVersion: "3.10.8",
requirementsFileContent: "Requests",
resourceGroupName: "kustorptest",
sandboxCustomImageName: "customImage8",
});
import pulumi
import pulumi_azure_native as azure_native
sandbox_custom_image = azure_native.kusto.SandboxCustomImage("sandboxCustomImage",
cluster_name="kustoCluster",
language=azure_native.kusto.Language.PYTHON,
language_version="3.10.8",
requirements_file_content="Requests",
resource_group_name="kustorptest",
sandbox_custom_image_name="customImage8")
resources:
sandboxCustomImage:
type: azure-native:kusto:SandboxCustomImage
properties:
clusterName: kustoCluster
language: Python
languageVersion: 3.10.8
requirementsFileContent: Requests
resourceGroupName: kustorptest
sandboxCustomImageName: customImage8
KustoSandboxCustomImagesCreateOrUpdateWithCustomBaseImage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sandboxCustomImage = new AzureNative.Kusto.SandboxCustomImage("sandboxCustomImage", new()
{
BaseImageName = "customImage1",
ClusterName = "kustoCluster",
Language = AzureNative.Kusto.Language.Python,
RequirementsFileContent = "Requests",
ResourceGroupName = "kustorptest",
SandboxCustomImageName = "customImage2",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewSandboxCustomImage(ctx, "sandboxCustomImage", &kusto.SandboxCustomImageArgs{
BaseImageName: pulumi.String("customImage1"),
ClusterName: pulumi.String("kustoCluster"),
Language: pulumi.String(kusto.LanguagePython),
RequirementsFileContent: pulumi.String("Requests"),
ResourceGroupName: pulumi.String("kustorptest"),
SandboxCustomImageName: pulumi.String("customImage2"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.SandboxCustomImage;
import com.pulumi.azurenative.kusto.SandboxCustomImageArgs;
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 sandboxCustomImage = new SandboxCustomImage("sandboxCustomImage", SandboxCustomImageArgs.builder()
.baseImageName("customImage1")
.clusterName("kustoCluster")
.language("Python")
.requirementsFileContent("Requests")
.resourceGroupName("kustorptest")
.sandboxCustomImageName("customImage2")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sandboxCustomImage = new azure_native.kusto.SandboxCustomImage("sandboxCustomImage", {
baseImageName: "customImage1",
clusterName: "kustoCluster",
language: azure_native.kusto.Language.Python,
requirementsFileContent: "Requests",
resourceGroupName: "kustorptest",
sandboxCustomImageName: "customImage2",
});
import pulumi
import pulumi_azure_native as azure_native
sandbox_custom_image = azure_native.kusto.SandboxCustomImage("sandboxCustomImage",
base_image_name="customImage1",
cluster_name="kustoCluster",
language=azure_native.kusto.Language.PYTHON,
requirements_file_content="Requests",
resource_group_name="kustorptest",
sandbox_custom_image_name="customImage2")
resources:
sandboxCustomImage:
type: azure-native:kusto:SandboxCustomImage
properties:
baseImageName: customImage1
clusterName: kustoCluster
language: Python
requirementsFileContent: Requests
resourceGroupName: kustorptest
sandboxCustomImageName: customImage2
KustoSandboxCustomImagesCreateOrUpdateWithManagedBaseImage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sandboxCustomImage = new AzureNative.Kusto.SandboxCustomImage("sandboxCustomImage", new()
{
BaseImageName = "Python3_10_8",
ClusterName = "kustoCluster",
Language = AzureNative.Kusto.Language.Python,
RequirementsFileContent = "Requests",
ResourceGroupName = "kustorptest",
SandboxCustomImageName = "customImage2",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewSandboxCustomImage(ctx, "sandboxCustomImage", &kusto.SandboxCustomImageArgs{
BaseImageName: pulumi.String("Python3_10_8"),
ClusterName: pulumi.String("kustoCluster"),
Language: pulumi.String(kusto.LanguagePython),
RequirementsFileContent: pulumi.String("Requests"),
ResourceGroupName: pulumi.String("kustorptest"),
SandboxCustomImageName: pulumi.String("customImage2"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.kusto.SandboxCustomImage;
import com.pulumi.azurenative.kusto.SandboxCustomImageArgs;
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 sandboxCustomImage = new SandboxCustomImage("sandboxCustomImage", SandboxCustomImageArgs.builder()
.baseImageName("Python3_10_8")
.clusterName("kustoCluster")
.language("Python")
.requirementsFileContent("Requests")
.resourceGroupName("kustorptest")
.sandboxCustomImageName("customImage2")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sandboxCustomImage = new azure_native.kusto.SandboxCustomImage("sandboxCustomImage", {
baseImageName: "Python3_10_8",
clusterName: "kustoCluster",
language: azure_native.kusto.Language.Python,
requirementsFileContent: "Requests",
resourceGroupName: "kustorptest",
sandboxCustomImageName: "customImage2",
});
import pulumi
import pulumi_azure_native as azure_native
sandbox_custom_image = azure_native.kusto.SandboxCustomImage("sandboxCustomImage",
base_image_name="Python3_10_8",
cluster_name="kustoCluster",
language=azure_native.kusto.Language.PYTHON,
requirements_file_content="Requests",
resource_group_name="kustorptest",
sandbox_custom_image_name="customImage2")
resources:
sandboxCustomImage:
type: azure-native:kusto:SandboxCustomImage
properties:
baseImageName: Python3_10_8
clusterName: kustoCluster
language: Python
requirementsFileContent: Requests
resourceGroupName: kustorptest
sandboxCustomImageName: customImage2
Create SandboxCustomImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SandboxCustomImage(name: string, args: SandboxCustomImageArgs, opts?: CustomResourceOptions);
@overload
def SandboxCustomImage(resource_name: str,
args: SandboxCustomImageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SandboxCustomImage(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
language: Optional[Union[str, Language]] = None,
resource_group_name: Optional[str] = None,
base_image_name: Optional[str] = None,
language_version: Optional[str] = None,
requirements_file_content: Optional[str] = None,
sandbox_custom_image_name: Optional[str] = None)
func NewSandboxCustomImage(ctx *Context, name string, args SandboxCustomImageArgs, opts ...ResourceOption) (*SandboxCustomImage, error)
public SandboxCustomImage(string name, SandboxCustomImageArgs args, CustomResourceOptions? opts = null)
public SandboxCustomImage(String name, SandboxCustomImageArgs args)
public SandboxCustomImage(String name, SandboxCustomImageArgs args, CustomResourceOptions options)
type: azure-native:kusto:SandboxCustomImage
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 SandboxCustomImageArgs
- 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 SandboxCustomImageArgs
- 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 SandboxCustomImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SandboxCustomImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SandboxCustomImageArgs
- 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 sandboxCustomImageResource = new AzureNative.Kusto.SandboxCustomImage("sandboxCustomImageResource", new()
{
ClusterName = "string",
Language = "string",
ResourceGroupName = "string",
BaseImageName = "string",
LanguageVersion = "string",
RequirementsFileContent = "string",
SandboxCustomImageName = "string",
});
example, err := kusto.NewSandboxCustomImage(ctx, "sandboxCustomImageResource", &kusto.SandboxCustomImageArgs{
ClusterName: pulumi.String("string"),
Language: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
BaseImageName: pulumi.String("string"),
LanguageVersion: pulumi.String("string"),
RequirementsFileContent: pulumi.String("string"),
SandboxCustomImageName: pulumi.String("string"),
})
var sandboxCustomImageResource = new SandboxCustomImage("sandboxCustomImageResource", SandboxCustomImageArgs.builder()
.clusterName("string")
.language("string")
.resourceGroupName("string")
.baseImageName("string")
.languageVersion("string")
.requirementsFileContent("string")
.sandboxCustomImageName("string")
.build());
sandbox_custom_image_resource = azure_native.kusto.SandboxCustomImage("sandboxCustomImageResource",
cluster_name="string",
language="string",
resource_group_name="string",
base_image_name="string",
language_version="string",
requirements_file_content="string",
sandbox_custom_image_name="string")
const sandboxCustomImageResource = new azure_native.kusto.SandboxCustomImage("sandboxCustomImageResource", {
clusterName: "string",
language: "string",
resourceGroupName: "string",
baseImageName: "string",
languageVersion: "string",
requirementsFileContent: "string",
sandboxCustomImageName: "string",
});
type: azure-native:kusto:SandboxCustomImage
properties:
baseImageName: string
clusterName: string
language: string
languageVersion: string
requirementsFileContent: string
resourceGroupName: string
sandboxCustomImageName: string
SandboxCustomImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SandboxCustomImage resource accepts the following input properties:
- Cluster
Name string - The name of the Kusto cluster.
- Language
string | Pulumi.
Azure Native. Kusto. Language - The language name, for example Python.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Base
Image stringName - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- Language
Version string - The version of the language. Either this property or baseImageName should be specified.
- Requirements
File stringContent - The requirements file content.
- Sandbox
Custom stringImage Name - The name of the sandbox custom image.
- Cluster
Name string - The name of the Kusto cluster.
- Language string | Language
- The language name, for example Python.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Base
Image stringName - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- Language
Version string - The version of the language. Either this property or baseImageName should be specified.
- Requirements
File stringContent - The requirements file content.
- Sandbox
Custom stringImage Name - The name of the sandbox custom image.
- cluster
Name String - The name of the Kusto cluster.
- language String | Language
- The language name, for example Python.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- base
Image StringName - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- language
Version String - The version of the language. Either this property or baseImageName should be specified.
- requirements
File StringContent - The requirements file content.
- sandbox
Custom StringImage Name - The name of the sandbox custom image.
- cluster
Name string - The name of the Kusto cluster.
- language string | Language
- The language name, for example Python.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- base
Image stringName - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- language
Version string - The version of the language. Either this property or baseImageName should be specified.
- requirements
File stringContent - The requirements file content.
- sandbox
Custom stringImage Name - The name of the sandbox custom image.
- cluster_
name str - The name of the Kusto cluster.
- language str | Language
- The language name, for example Python.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- base_
image_ strname - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- language_
version str - The version of the language. Either this property or baseImageName should be specified.
- requirements_
file_ strcontent - The requirements file content.
- sandbox_
custom_ strimage_ name - The name of the sandbox custom image.
- cluster
Name String - The name of the Kusto cluster.
- language String | "Python"
- The language name, for example Python.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- base
Image StringName - The base image name on which the custom image is built on top of. It can be one of the LanguageExtensionImageName (e.g.: 'Python3_10_8', 'Python3_10_8_DL') or the name of an existing custom image. Either this property or languageVersion should be specified.
- language
Version String - The version of the language. Either this property or baseImageName should be specified.
- requirements
File StringContent - The requirements file content.
- sandbox
Custom StringImage Name - The name of the sandbox custom image.
Outputs
All input properties are implicitly available as output properties. Additionally, the SandboxCustomImage resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioned state of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioned state of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioned state of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioned state of the resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioned state of the resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioned state of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
Language, LanguageArgs
- Python
- Python
- Language
Python - Python
- Python
- Python
- Python
- Python
- PYTHON
- Python
- "Python"
- Python
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:SandboxCustomImage kustoCluster/customImage2 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/sandboxCustomImages/{sandboxCustomImageName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0