Azure Data Explorer Script

This page shows how to write Terraform and Azure Resource Manager for Data Explorer Script and write them securely.

azurerm_kusto_script (Terraform)

The Script in Data Explorer can be configured in Terraform with the resource name azurerm_kusto_script. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • name - (Required) The name which should be used for this Kusto Script. Changing this forces a new Kusto Script to be created.

  • database_id - (Required) The ID of the Kusto Database. Changing this forces a new Kusto Script to be created.

  • sas_token - (Required) The SAS token used to access the script.

  • url - (Required) The url to the KQL script blob file. Please reference this documentation that describes the commands that are allowed in the script.


  • continue_on_errors_enabled - (Optional) Flag that indicates whether to continue if one of the command fails.

  • force_an_update_when_value_changed - (Optional) A unique string. If changed the script will be applied again.

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Kusto Script.

Explanation in Terraform Registry

Manages a Kusto Script.

Microsoft.Kusto/Clusters/Databases/Scripts (Azure Resource Manager)

The Clusters/Databases/Scripts in Microsoft.Kusto can be configured in Azure Resource Manager with the resource name Microsoft.Kusto/Clusters/Databases/Scripts. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

KustoScriptsCreateOrUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsCreateOrUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsListByDatabase.json#L16
            "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
            "properties": {
              "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
              "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
              "continueOnErrors": true
            }
KustoScriptsCreateOrUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsListByDatabase.json#L16
            "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
            "properties": {
              "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
              "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
              "continueOnErrors": true
            }
KustoScriptsUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsCreateOrUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        }
KustoScriptsListByDatabase.json#L16
            "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
            "properties": {
              "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
              "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
              "continueOnErrors": true
            }
KustoScriptsCreateOrUpdate.json#L23
        "type": "Microsoft.Kusto/Clusters/Databases/Scripts",
        "properties": {
          "scriptUrl": "https://mysa.blob.core.windows.net/container/script.txt",
          "forceUpdateTag": "2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe",
          "continueOnErrors": true
        },

Frequently asked questions

What is Azure Data Explorer Script?

Azure Data Explorer Script is a resource for Data Explorer of Microsoft Azure. Settings can be wrote in Terraform.