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.
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
"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
}
"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
}
"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
}
"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
}
"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
}
"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
}
"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
}
"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
}
"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
}
"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
},