Microsoft.Kusto clusters/databases/scripts 2022-02-01

Bicep resource definition

The clusters/databases/scripts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Kusto/clusters/databases/scripts resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Kusto/clusters/databases/scripts@2022-02-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    continueOnErrors: bool
    forceUpdateTag: 'string'
    scriptContent: 'string'
    scriptUrl: 'string'
    scriptUrlSasToken: 'string'
  }
}

Property values

clusters/databases/scripts

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: databases
properties The database script. ScriptProperties

ScriptProperties

Name Description Value
continueOnErrors Flag that indicates whether to continue if one of the command fails. bool
forceUpdateTag A unique string. If changed the script will be applied again. string
scriptContent 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. string

Constraints:
Sensitive value. Pass in as a secure parameter.
scriptUrl The url to the KQL script blob file. Must not be used together with scriptContent property string
scriptUrlSasToken The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property. string

Constraints:
Sensitive value. Pass in as a secure parameter.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Deploy Azure Data Explorer DB with Cosmos DB connection

Deploy to Azure
Deploy Azure Data Explorer DB with Cosmos DB connection.
Deploy Azure Data Explorer db with Event Hub connection

Deploy to Azure
Deploy Azure Data Explorer db with Event Hub connection.

ARM template resource definition

The clusters/databases/scripts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Kusto/clusters/databases/scripts resource, add the following JSON to your template.

{
  "type": "Microsoft.Kusto/clusters/databases/scripts",
  "apiVersion": "2022-02-01",
  "name": "string",
  "properties": {
    "continueOnErrors": "bool",
    "forceUpdateTag": "string",
    "scriptContent": "string",
    "scriptUrl": "string",
    "scriptUrlSasToken": "string"
  }
}

Property values

clusters/databases/scripts

Name Description Value
type The resource type 'Microsoft.Kusto/clusters/databases/scripts'
apiVersion The resource api version '2022-02-01'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties The database script. ScriptProperties

ScriptProperties

Name Description Value
continueOnErrors Flag that indicates whether to continue if one of the command fails. bool
forceUpdateTag A unique string. If changed the script will be applied again. string
scriptContent 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. string

Constraints:
Sensitive value. Pass in as a secure parameter.
scriptUrl The url to the KQL script blob file. Must not be used together with scriptContent property string
scriptUrlSasToken The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property. string

Constraints:
Sensitive value. Pass in as a secure parameter.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Deploy Azure Data Explorer DB with Cosmos DB connection

Deploy to Azure
Deploy Azure Data Explorer DB with Cosmos DB connection.
Deploy Azure Data Explorer db with Event Hub connection

Deploy to Azure
Deploy Azure Data Explorer db with Event Hub connection.

Terraform (AzAPI provider) resource definition

The clusters/databases/scripts resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Kusto/clusters/databases/scripts resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Kusto/clusters/databases/scripts@2022-02-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      continueOnErrors = bool
      forceUpdateTag = "string"
      scriptContent = "string"
      scriptUrl = "string"
      scriptUrlSasToken = "string"
    }
  })
}

Property values

clusters/databases/scripts

Name Description Value
type The resource type "Microsoft.Kusto/clusters/databases/scripts@2022-02-01"
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: databases
properties The database script. ScriptProperties

ScriptProperties

Name Description Value
continueOnErrors Flag that indicates whether to continue if one of the command fails. bool
forceUpdateTag A unique string. If changed the script will be applied again. string
scriptContent 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. string

Constraints:
Sensitive value. Pass in as a secure parameter.
scriptUrl The url to the KQL script blob file. Must not be used together with scriptContent property string
scriptUrlSasToken The SaS token that provide read access to the file which contain the script. Must be provided when using scriptUrl property. string

Constraints:
Sensitive value. Pass in as a secure parameter.