az dt endpoint create
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 endpoint create command. Learn more about extensions.
Add egress endpoints to a Digital Twins instance.
Commands
Name | Description | Type | Status |
---|---|---|---|
az dt endpoint create eventgrid |
Adds an EventGrid Topic endpoint to a Digital Twins instance. Requires pre-created resource. |
Extension | GA |
az dt endpoint create eventhub |
Adds an EventHub endpoint to a Digital Twins instance. |
Extension | GA |
az dt endpoint create servicebus |
Adds a ServiceBus Topic endpoint to a Digital Twins instance. |
Extension | GA |
az dt endpoint create eventgrid
Adds an EventGrid Topic endpoint to a Digital Twins instance. Requires pre-created resource.
EventGrid topic endpoints do not support identity based endpoint integration.
az dt endpoint create eventgrid --dt-name
--egt
--en
[--auth-type {IdentityBased, KeyBased}]
[--deadletter-sas-uri]
[--deadletter-uri]
[--egg]
[--egs]
[--no-wait]
[--resource-group]
Examples
Adds an EventGrid Topic endpoint to a target instance.
az dt endpoint create eventgrid --endpoint-name {endpoint_name} --eventgrid-resource-group {eventgrid_resource_group} --eventgrid-topic {eventgrid_topic_name} -n {instance_name}
Required Parameters
Digital Twins instance name.
Name of EventGrid Topic to integrate with.
Endpoint name.
Optional Parameters
Argument 'auth_type' has been deprecated and will be removed in a future release. Use 'identity' instead.
Endpoint authentication type.
Dead-letter storage container URL with SAS token for Key based authentication.
Dead-letter storage container URL for Identity based authentication.
Name of EventGrid Topic resource group. If not provided, the Digital Twin instance resource group will be used.
Name or id of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.
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}
.
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 endpoint create eventhub
Adds an EventHub endpoint to a Digital Twins instance.
Requires pre-created resource.
The instance must have a system-assigned identity to support system-assigned identity based endpoint integration. The instance must have the user-assigned identity associated to support user-assigned identity based endpoint integration.
az dt endpoint create eventhub --dt-name
--eh
--ehn
--en
[--auth-type {IdentityBased, KeyBased}]
[--deadletter-sas-uri]
[--deadletter-uri]
[--ehg]
[--ehp]
[--ehs]
[--mi-system-assigned {false, true}]
[--mi-user-assigned]
[--no-wait]
[--resource-group]
Examples
Adds an EventHub endpoint to a target instance using Key based auth.
az dt endpoint create eventhub --endpoint-name {endpoint_name} --eventhub-resource-group {eventhub_resource_group} --eventhub-namespace {eventhub_namespace} --eventhub {eventhub_name} --eventhub-policy {eventhub_policy} -n {instance_name}
Adds an EventHub endpoint to a target instance using the system-assigned identity for authentication.
az dt endpoint create eventhub --endpoint-name {endpoint_name} --eventhub-resource-group {eventhub_resource_group} --eventhub-namespace {eventhub_namespace} --eventhub {eventhub_name} --mi-system-assigned -n {instance_name}
Adds an EventHub endpoint to a target instance using an user-assigned identity for authentication.
az dt endpoint create eventhub --endpoint-name {endpoint_name} --eventhub-resource-group {eventhub_resource_group} --eventhub-namespace {eventhub_namespace} --eventhub {eventhub_name} --mi-user-assigned {resource_id} -n {instance_name}
Required Parameters
Digital Twins instance name.
Name of EventHub to integrate with.
EventHub Namespace identifier.
Endpoint name.
Optional Parameters
Argument 'auth_type' has been deprecated and will be removed in a future release. Use 'identity' instead.
Endpoint authentication type.
Dead-letter storage container URL with SAS token for Key based authentication.
Dead-letter storage container URL for Identity based authentication.
Name of EventHub resource group. If not provided, the Digital Twin instance resource group will be used.
EventHub policy to use for endpoint configuration. Required when --auth-type is KeyBased.
Name or id of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.
Use the system-assigned managed identity for endpoint authentication.
Use an user-assigned managed identity for endpoint authentication. Accepts the identity resource id.
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}
.
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 endpoint create servicebus
Adds a ServiceBus Topic endpoint to a Digital Twins instance.
Requires pre-created resource.
The instance must have a system-assigned identity to support system-assigned identity based endpoint integration. The instance must have the user-assigned identity associated to support user-assigned identity based endpoint integration.
az dt endpoint create servicebus --dt-name
--en
--sbn
--sbt
[--auth-type {IdentityBased, KeyBased}]
[--deadletter-sas-uri]
[--deadletter-uri]
[--mi-system-assigned {false, true}]
[--mi-user-assigned]
[--no-wait]
[--resource-group]
[--sbg]
[--sbp]
[--sbs]
Examples
Adds a ServiceBus Topic endpoint to a target instance using Key based auth.
az dt endpoint create servicebus --endpoint-name {endpoint_name} --servicebus-resource-group {servicebus_resource_group} --servicebus-namespace {servicebus_namespace} --servicebus-topic {servicebus_topic_name} --servicebus-policy {servicebus_policy} -n {instance_name}
Adds a ServiceBus Topic endpoint to a target instance using the system-assigned identity for authentication.
az dt endpoint create servicebus --endpoint-name {endpoint_name} --servicebus-resource-group {servicebus_resource_group} --servicebus-namespace {servicebus_namespace} --servicebus-topic {servicebus_topic_name} --mi-system-assigned -n {instance_name}
Adds a ServiceBus Topic endpoint to a target instance using an user-assigned identity for authentication.
az dt endpoint create servicebus --endpoint-name {endpoint_name} --servicebus-resource-group {servicebus_resource_group} --servicebus-namespace {servicebus_namespace} --servicebus-topic {servicebus_topic_name} --mi-user-assigned {resource_id} -n {instance_name}
Required Parameters
Digital Twins instance name.
Endpoint name.
ServiceBus Namespace identifier.
Name of ServiceBus Topic to integrate with.
Optional Parameters
Argument 'auth_type' has been deprecated and will be removed in a future release. Use 'identity' instead.
Endpoint authentication type.
Dead-letter storage container URL with SAS token for Key based authentication.
Dead-letter storage container URL for Identity based authentication.
Use the system-assigned managed identity for endpoint authentication.
Use an user-assigned managed identity for endpoint authentication. Accepts the identity resource id.
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}
.
Name of ServiceBus resource group. If not provided, the Digital Twin instance resource group will be used.
ServiceBus Topic policy to use for endpoint configuration. Required when --auth-type is KeyBased.
Name or id of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.
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