az synapse kql-script
Manage script with kusto.
Commands
Name | Description | Type | Status |
---|---|---|---|
az synapse kql-script create |
Creates a KQL script. |
Core | GA |
az synapse kql-script delete |
Deletes a KQL script. |
Core | GA |
az synapse kql-script export |
Export KQL scripts. |
Core | GA |
az synapse kql-script import |
Creates a KQL script. |
Core | GA |
az synapse kql-script list |
List KQL scripts. |
Core | GA |
az synapse kql-script show |
Gets a KQL script. |
Core | GA |
az synapse kql-script wait |
Place the CLI in a waiting state until a condition of a KQL script is met. |
Core | GA |
az synapse kql-script create
Creates a KQL script.
az synapse kql-script create --file
--name
--resource-group
--workspace-name
[--kusto-database-name]
[--kusto-pool-name]
[--no-wait]
Examples
KustoScriptsCreateOrUpdate
az synapse kql-script create --resource-group "kustorptest" --workspace-name "kustoWorkspaceName" --kusto-pool-name kustopooltest --kusto-database-name kustodbtest --file C:\samples\KqlScript.kql --name "kustoScript1"
Required Parameters
The KQL query file path.
The name of the KQL script.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Kusto database.
The name of the Kusto pool.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script delete
Deletes a KQL script.
az synapse kql-script delete --name
--workspace-name
[--no-wait]
[--yes]
Examples
KustoScriptsDelete
az synapse kql-script delete --workspace-name "kustoWorkspaceName" --name "kustoScript1"
Required Parameters
The name of the KQL script.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Do not prompt for confirmation.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script export
Export KQL scripts.
az synapse kql-script export --output-folder
--workspace-name
[--name]
Examples
KustoScriptsExport
az synapse kql-script export --workspace-name "kustoWorkspaceName" --output-folder "C:\KqlScirpt"
Required Parameters
The name of the output folder.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the KQL script.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script import
Creates a KQL script.
az synapse kql-script import --file
--name
--resource-group
--workspace-name
[--kusto-database-name]
[--kusto-pool-name]
[--no-wait]
Examples
KustoScriptsCreateOrUpdate
az synapse kql-script import --resource-group "kustorptest" --workspace-name "kustoWorkspaceName" --kusto-pool-name kustopooltest --kusto-database-name kustodbtest --file C:\samples\KqlScript.kql --name "kustoScript1"
Required Parameters
The KQL query file path.
The name of the KQL script.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Kusto database.
The name of the Kusto pool.
Do not wait for the long-running operation to finish.
Property | Value |
---|---|
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script list
List KQL scripts.
az synapse kql-script list --workspace-name
Examples
KustoScriptsList
az synapse kql-script list --workspace-name "kustoWorkspaceName"
Required Parameters
The name of the workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script show
Gets a KQL script.
az synapse kql-script show --name
--workspace-name
Examples
KustoScriptsGet
az synapse kql-script show --workspace-name "kustoWorkspaceName" --name "kustoScript1"
Required Parameters
The name of the KQL script.
The name of the workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az synapse kql-script wait
Place the CLI in a waiting state until a condition of a KQL script is met.
az synapse kql-script wait --name
--workspace-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
The name of the KQL script.
The name of the workspace.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Wait until created with 'provisioningState' at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Wait until deleted.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Wait until the resource exists.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Polling interval in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 30 |
Maximum wait in seconds.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
Property | Value |
---|---|
Parameter group: | Wait Condition Arguments |
Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |