azure-native-v2.kusto.Script
Explore with Pulumi AI
Class representing a database script. Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 2021-01-01.
Other available API versions: 2021-08-27, 2023-05-02, 2023-08-15, 2024-04-13.
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,
continue_on_errors: Optional[bool] = None,
force_update_tag: Optional[str] = None,
script_content: Optional[str] = None,
script_name: Optional[str] = None,
script_url: Optional[str] = None,
script_url_sas_token: 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
This property is required. string - The unique name of the resource.
- args
This property is required. ScriptArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. ScriptArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ScriptArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. 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",
ContinueOnErrors = false,
ForceUpdateTag = "string",
ScriptContent = "string",
ScriptName = "string",
ScriptUrl = "string",
ScriptUrlSasToken = "string",
});
example, err := kusto.NewScript(ctx, "scriptResource", &kusto.ScriptArgs{
ClusterName: "string",
DatabaseName: "string",
ResourceGroupName: "string",
ContinueOnErrors: false,
ForceUpdateTag: "string",
ScriptContent: "string",
ScriptName: "string",
ScriptUrl: "string",
ScriptUrlSasToken: "string",
})
var scriptResource = new Script("scriptResource", ScriptArgs.builder()
.clusterName("string")
.databaseName("string")
.resourceGroupName("string")
.continueOnErrors(false)
.forceUpdateTag("string")
.scriptContent("string")
.scriptName("string")
.scriptUrl("string")
.scriptUrlSasToken("string")
.build());
script_resource = azure_native.kusto.Script("scriptResource",
cluster_name=string,
database_name=string,
resource_group_name=string,
continue_on_errors=False,
force_update_tag=string,
script_content=string,
script_name=string,
script_url=string,
script_url_sas_token=string)
const scriptResource = new azure_native.kusto.Script("scriptResource", {
clusterName: "string",
databaseName: "string",
resourceGroupName: "string",
continueOnErrors: false,
forceUpdateTag: "string",
scriptContent: "string",
scriptName: "string",
scriptUrl: "string",
scriptUrlSasToken: "string",
});
type: azure-native:kusto:Script
properties:
clusterName: string
continueOnErrors: false
databaseName: string
forceUpdateTag: string
resourceGroupName: string
scriptContent: 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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Script resource accepts the following input properties:
- Cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- Database
Name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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
Content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- Script
Name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- Script
Url string - The url to the KQL script blob file. Must not be used together with scriptContent property
- Script
Url Sas Token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
- Cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- Database
Name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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
Content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- Script
Name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- Script
Url string - The url to the KQL script blob file. Must not be used together with scriptContent property
- Script
Url Sas Token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- database
Name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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
Content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- script
Name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- script
Url String - The url to the KQL script blob file. Must not be used together with scriptContent property
- script
Url Sas Token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- database
Name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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
Content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- script
Name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- script
Url string - The url to the KQL script blob file. Must not be used together with scriptContent property
- script
Url Sas Token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
- cluster_
name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- database_
name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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_
content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- script_
name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- script_
url str - The url to the KQL script blob file. Must not be used together with scriptContent property
- script_
url_ sas_ token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- database
Name This property is required. Changes to this property will trigger replacement.
- The name of the database in the Kusto cluster.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group containing the Kusto cluster.
- 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
Content Changes to this property will trigger replacement.
- The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with scriptUrl and scriptUrlSasToken properties.
- script
Name Changes to this property will trigger replacement.
- The name of the Kusto database script.
- script
Url String - The url to the KQL script blob file. Must not be used together with scriptContent property
- script
Url Sas Token Changes to this property will trigger replacement.
- The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property.
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 kustoCluster/KustoDatabase8/kustoScript /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}/scripts/{scriptName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0