ScriptArgs

data class ScriptArgs(val clusterName: Output<String>? = null, val continueOnErrors: Output<Boolean>? = null, val databaseName: Output<String>? = null, val forceUpdateTag: Output<String>? = null, val resourceGroupName: Output<String>? = null, val scriptName: Output<String>? = null, val scriptUrl: Output<String>? = null, val scriptUrlSasToken: Output<String>? = null) : ConvertibleToJava<ScriptArgs>

Class representing a database script. API Version: 2021-01-01.

Example Usage

KustoScriptsCreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var script = new AzureNative.Kusto.Script("script", new()
{
ClusterName = "kustoclusterrptest4",
ContinueOnErrors = true,
DatabaseName = "KustoDatabase8",
ForceUpdateTag = "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
ResourceGroupName = "kustorptest",
ScriptName = "kustoScript1",
ScriptUrl = "https://mysa.blob.core.windows.net/container/script.txt",
ScriptUrlSasToken = "?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewScript(ctx, "script", &kusto.ScriptArgs{
ClusterName: pulumi.String("kustoclusterrptest4"),
ContinueOnErrors: pulumi.Bool(true),
DatabaseName: pulumi.String("KustoDatabase8"),
ForceUpdateTag: pulumi.String("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"),
ResourceGroupName: pulumi.String("kustorptest"),
ScriptName: pulumi.String("kustoScript1"),
ScriptUrl: pulumi.String("https://mysa.blob.core.windows.net/container/script.txt"),
ScriptUrlSasToken: pulumi.String("?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************"),
})
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.Script;
import com.pulumi.azurenative.kusto.ScriptArgs;
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 script = new Script("script", ScriptArgs.builder()
.clusterName("kustoclusterrptest4")
.continueOnErrors(true)
.databaseName("KustoDatabase8")
.forceUpdateTag("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe")
.resourceGroupName("kustorptest")
.scriptName("kustoScript1")
.scriptUrl("https://mysa.blob.core.windows.net/container/script.txt")
.scriptUrlSasToken("?sv=2019-02-02&st=2019-04-29T22%3A18%3A26Z&se=2019-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=********************************")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:kusto:Script KustoClusterRPTest4/KustoDatabase8/kustoScript1 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8/Scripts/kustoScript1

Constructors

Link copied to clipboard
constructor(clusterName: Output<String>? = null, continueOnErrors: Output<Boolean>? = null, databaseName: Output<String>? = null, forceUpdateTag: Output<String>? = null, resourceGroupName: Output<String>? = null, scriptName: Output<String>? = null, scriptUrl: Output<String>? = null, scriptUrlSasToken: Output<String>? = null)

Properties

Link copied to clipboard
val clusterName: Output<String>? = null

The name of the Kusto cluster.

Link copied to clipboard
val continueOnErrors: Output<Boolean>? = null

Flag that indicates whether to continue if one of the command fails.

Link copied to clipboard
val databaseName: Output<String>? = null

The name of the database in the Kusto cluster.

Link copied to clipboard
val forceUpdateTag: Output<String>? = null

A unique string. If changed the script will be applied again.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group containing the Kusto cluster.

Link copied to clipboard
val scriptName: Output<String>? = null

The name of the Kusto database script.

Link copied to clipboard
val scriptUrl: Output<String>? = null

The url to the KQL script blob file.

Link copied to clipboard
val scriptUrlSasToken: Output<String>? = null

The SaS token.

Functions

Link copied to clipboard
open override fun toJava(): ScriptArgs