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 name of the Kusto database.
The name of the Kusto pool.
Do not wait for the long-running operation to finish.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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
Do not wait for the long-running operation to finish.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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 name of the KQL script.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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 name of the Kusto database.
The name of the Kusto pool.
Do not wait for the long-running operation to finish.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
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
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
Polling interval in seconds.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
Azure CLI