Share via


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

--cn --conn-name

Name of data history connection.

--dt-name --dtn -n

Digital Twins instance name.

Optional Parameters

--clean -c

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.

Accepted values: false, true
Default value: False
--no-wait

Do not wait for the long-running operation to finish.

Default value: False
--resource-group -g

Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}.

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--dt-name --dtn -n

Digital Twins instance name.

Optional Parameters

--resource-group -g

Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--cn --conn-name

Name of data history connection.

--dt-name --dtn -n

Digital Twins instance name.

Optional Parameters

--resource-group -g

Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--cn --conn-name

Name of data history connection.

--dt-name --dtn -n

Digital Twins instance name.

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

Default value: False
--exists

Wait until the resource exists.

Default value: False
--interval

Polling interval in seconds.

Default value: 30
--resource-group -g

Digital Twins instance resource group. You can configure the default group using az configure --defaults group={name}.

--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.