az dt data-history connection
Note
This reference is part of the azure-iot extension for the Azure CLI (version 2.46.0 or higher). The extension will automatically install the first time you run an az dt data-history connection command. Learn more about extensions.
Manage and configure data history connections.
Commands
Name | Description | Type | Status |
---|---|---|---|
az dt data-history connection create |
Creates a data history connection between a Digital Twins instance and supported resources. |
Extension | GA |
az dt data-history connection create adx |
Creates a data history connection between a Digital Twins instance and an Azure Data Explorer database. Requires pre-created Azure Data Explorer and Event Hub resources. |
Extension | GA |
az dt data-history connection delete |
Delete a data history connection configured on a Digital Twins instance. |
Extension | GA |
az dt data-history connection list |
List all data history connections configured on a Digital Twins instance. |
Extension | GA |
az dt data-history connection show |
Show details of a data history connection configured on a Digital Twins instance. |
Extension | GA |
az dt data-history connection wait |
Wait until an operation on a data history connection is complete. |
Extension | GA |
az dt data-history connection delete
Delete a data history connection configured on a Digital Twins instance.
az dt data-history connection delete --cn
--dt-name
[--clean {false, true}]
[--no-wait]
[--resource-group]
[--yes]
Examples
Delete a data history connection configured on an instance and block until the operation is complete.
az dt data-history connection delete -n {instance_name} --cn {time_series_database_connection_name}
Delete a data history connection configured on an instance without confirmation or blocking.
az dt data-history connection delete -n {instance_name} --cn {time_series_database_connection_name} -y --no-wait
Delete a data history connection configured on an instance and attempt to clean up artifacts that were created when the connection was created. If appropriate permissions are not in place, the attempt may fail. Recorded data will not be deleted.
az dt data-history connection delete -n {instance_name} --cn {time_series_database_connection_name} --clean
Required Parameters
Name of data history connection.
Digital Twins instance name.
Optional Parameters
Specifies whether or not to attempt to clean up artifacts that were created in order to establish a connection to the time series database. This is a best-effort attempt that will fail if appropriate permissions are not in place. Setting this to 'true' does not delete any recorded data.
Do not wait for the long-running operation to finish.
Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}
.
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 dt data-history connection list
List all data history connections configured on a Digital Twins instance.
az dt data-history connection list --dt-name
[--resource-group]
Examples
List all data history connections configured on an instance.
az dt data-history connection list -n {instance_name}
Required Parameters
Digital Twins instance name.
Optional Parameters
Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}
.
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 dt data-history connection show
Show details of a data history connection configured on a Digital Twins instance.
az dt data-history connection show --cn
--dt-name
[--resource-group]
Examples
Show a data history connection configured on an instance.
az dt data-history connection show -n {instance_name} --cn {time_series_database_connection_name}
Required Parameters
Name of data history connection.
Digital Twins instance name.
Optional Parameters
Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}
.
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 dt data-history connection wait
Wait until an operation on a data history connection is complete.
az dt data-history connection wait --cn
--dt-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--resource-group]
[--timeout]
[--updated]
Examples
Wait until a data history connection is created.
az dt data-history connection wait -n {instance_name} --cn {time_series_database_connection_name} --created
Wait until an existing data history connection is deleted.
az dt data-history connection wait -n {instance_name} --cn {time_series_database_connection_name} --deleted
Required Parameters
Name of data history connection.
Digital Twins instance name.
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.
Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}
.
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