azure-native.kusto.Script
Explore with Pulumi AI
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 pulumi
import pulumi_azure_native as azure_native
script = azure_native.kusto.Script("script",
cluster_name="kustoclusterrptest4",
continue_on_errors=True,
database_name="KustoDatabase8",
force_update_tag="2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
resource_group_name="kustorptest",
script_name="kustoScript1",
script_url="https://mysa.blob.core.windows.net/container/script.txt",
script_url_sas_token="?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=********************************")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const script = new azure_native.kusto.Script("script", {
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=********************************",
});
resources:
script:
type: azure-native:kusto:Script
properties:
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=********************************
Create Script Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Script(name: string, args: ScriptArgs, opts?: CustomResourceOptions);
@overload
def Script(resource_name: str,
args: ScriptArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Script(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
database_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
script_url: Optional[str] = None,
script_url_sas_token: Optional[str] = None,
continue_on_errors: Optional[bool] = None,
force_update_tag: Optional[str] = None,
script_name: Optional[str] = None)
func NewScript(ctx *Context, name string, args ScriptArgs, opts ...ResourceOption) (*Script, error)
public Script(string name, ScriptArgs args, CustomResourceOptions? opts = null)
public Script(String name, ScriptArgs args)
public Script(String name, ScriptArgs args, CustomResourceOptions options)
type: azure-native:kusto:Script
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 ScriptArgs
- 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 ScriptArgs
- 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 ScriptArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScriptArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScriptArgs
- 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 scriptResource = new AzureNative.Kusto.Script("scriptResource", new()
{
ClusterName = "string",
DatabaseName = "string",
ResourceGroupName = "string",
ScriptUrl = "string",
ScriptUrlSasToken = "string",
ContinueOnErrors = false,
ForceUpdateTag = "string",
ScriptName = "string",
});
example, err := kusto.NewScript(ctx, "scriptResource", &kusto.ScriptArgs{
ClusterName: "string",
DatabaseName: "string",
ResourceGroupName: "string",
ScriptUrl: "string",
ScriptUrlSasToken: "string",
ContinueOnErrors: false,
ForceUpdateTag: "string",
ScriptName: "string",
})
var scriptResource = new Script("scriptResource", ScriptArgs.builder()
.clusterName("string")
.databaseName("string")
.resourceGroupName("string")
.scriptUrl("string")
.scriptUrlSasToken("string")
.continueOnErrors(false)
.forceUpdateTag("string")
.scriptName("string")
.build());
script_resource = azure_native.kusto.Script("scriptResource",
cluster_name=string,
database_name=string,
resource_group_name=string,
script_url=string,
script_url_sas_token=string,
continue_on_errors=False,
force_update_tag=string,
script_name=string)
const scriptResource = new azure_native.kusto.Script("scriptResource", {
clusterName: "string",
databaseName: "string",
resourceGroupName: "string",
scriptUrl: "string",
scriptUrlSasToken: "string",
continueOnErrors: false,
forceUpdateTag: "string",
scriptName: "string",
});
type: azure-native:kusto:Script
properties:
clusterName: string
continueOnErrors: false
databaseName: string
forceUpdateTag: string
resourceGroupName: string
scriptName: string
scriptUrl: string
scriptUrlSasToken: string
Script 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 Script resource accepts the following input properties:
- Cluster
Name string - The name of the Kusto cluster.
- Database
Name string - The name of the database in the Kusto cluster.
- Resource
Group stringName - The name of the resource group containing the Kusto cluster.
- Script
Url string - The url to the KQL script blob file.
- Script
Url stringSas Token - The SaS token.
- Continue
On boolErrors - Flag that indicates whether to continue if one of the command fails.
- Force
Update stringTag - A unique string. If changed the script will be applied again.
- Script
Name string - The name of the Kusto database script.
- Cluster
Name string - The name of the Kusto cluster.
- Database
Name string - The name of the database in the Kusto cluster.
- Resource
Group stringName - The name of the resource group containing the Kusto cluster.
- Script
Url string - The url to the KQL script blob file.
- Script
Url stringSas Token - The SaS token.
- Continue
On boolErrors - Flag that indicates whether to continue if one of the command fails.
- Force
Update stringTag - A unique string. If changed the script will be applied again.
- Script
Name string - The name of the Kusto database script.
- cluster
Name String - The name of the Kusto cluster.
- database
Name String - The name of the database in the Kusto cluster.
- resource
Group StringName - The name of the resource group containing the Kusto cluster.
- script
Url String - The url to the KQL script blob file.
- script
Url StringSas Token - The SaS token.
- continue
On BooleanErrors - Flag that indicates whether to continue if one of the command fails.
- force
Update StringTag - A unique string. If changed the script will be applied again.
- script
Name String - The name of the Kusto database script.
- cluster
Name string - The name of the Kusto cluster.
- database
Name string - The name of the database in the Kusto cluster.
- resource
Group stringName - The name of the resource group containing the Kusto cluster.
- script
Url string - The url to the KQL script blob file.
- script
Url stringSas Token - The SaS token.
- continue
On booleanErrors - Flag that indicates whether to continue if one of the command fails.
- force
Update stringTag - A unique string. If changed the script will be applied again.
- script
Name string - The name of the Kusto database script.
- cluster_
name str - The name of the Kusto cluster.
- database_
name str - The name of the database in the Kusto cluster.
- resource_
group_ strname - The name of the resource group containing the Kusto cluster.
- script_
url str - The url to the KQL script blob file.
- script_
url_ strsas_ token - The SaS token.
- continue_
on_ boolerrors - Flag that indicates whether to continue if one of the command fails.
- force_
update_ strtag - A unique string. If changed the script will be applied again.
- script_
name str - The name of the Kusto database script.
- cluster
Name String - The name of the Kusto cluster.
- database
Name String - The name of the database in the Kusto cluster.
- resource
Group StringName - The name of the resource group containing the Kusto cluster.
- script
Url String - The url to the KQL script blob file.
- script
Url StringSas Token - The SaS token.
- continue
On BooleanErrors - Flag that indicates whether to continue if one of the command fails.
- force
Update StringTag - A unique string. If changed the script will be applied again.
- script
Name String - The name of the Kusto database script.
Outputs
All input properties are implicitly available as output properties. Additionally, the Script resource produces the following output properties:
- 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.
- System
Data Pulumi.Azure Native. Kusto. Outputs. System Data Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- system_
data SystemData Response - Metadata pertaining to creation and last modification of the resource.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- 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.
- system
Data Property Map - Metadata pertaining to creation and last modification of the resource.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0