az dt endpoint create

Add egress endpoints to a Digital Twins instance.

Commands

az dt endpoint create eventgrid

Adds an EventGrid Topic endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create eventhub

Adds an EventHub endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create servicebus

Adds a ServiceBus Topic endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create eventgrid

Adds an EventGrid Topic endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create eventgrid --dt-name
                                --egg
                                --egt
                                --en
                                [--egs]
                                [--resource-group]
                                [--tags]

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

--dt-name --dtn -n

Digital Twins instance name.

--egg --eventgrid-resource-group

Name of EventGrid Topic resource group.

--egt --eventgrid-topic

Name of EventGrid Topic to integrate with.

--en --endpoint-name

Endpoint name.

Optional Parameters

--egs --eventgrid-subscription

Name or ID of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.

--resource-group -g

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

--tags

Digital Twins endpoint tags. Property bag in key-value pairs with the following format: a=b;c=d.

az dt endpoint create eventhub

Adds an EventHub endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create eventhub --dt-name
                               --eh
                               --ehg
                               --ehn
                               --ehp
                               --en
                               [--ehs]
                               [--resource-group]
                               [--tags]

Examples

Adds an EventHub endpoint to a target instance.

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}

Required Parameters

--dt-name --dtn -n

Digital Twins instance name.

--eh --eventhub

Name of EventHub to integrate with.

--ehg --eventhub-resource-group

Name of EventHub resource group.

--ehn --eventhub-namespace

EventHub Namespace identifier.

--ehp --eventhub-policy

EventHub policy to use for endpoint configuration.

--en --endpoint-name

Endpoint name.

Optional Parameters

--ehs --eventhub-subscription

Name or ID of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.

--resource-group -g

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

--tags

Digital Twins endpoint tags. Property bag in key-value pairs with the following format: a=b;c=d.

az dt endpoint create servicebus

Adds a ServiceBus Topic endpoint to a Digital Twins instance. Requires pre-created resource.

az dt endpoint create servicebus --dt-name
                                 --en
                                 --sbg
                                 --sbn
                                 --sbp
                                 --sbt
                                 [--resource-group]
                                 [--sbs]
                                 [--tags]

Examples

Adds a ServiceBus Topic endpoint to a target instance.

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}

Required Parameters

--dt-name --dtn -n

Digital Twins instance name.

--en --endpoint-name

Endpoint name.

--sbg --servicebus-resource-group

Name of ServiceBus resource group.

--sbn --servicebus-namespace

ServiceBus Namespace identifier.

--sbp --servicebus-policy

ServiceBus Topic policy to use for endpoint configuration.

--sbt --servicebus-topic

Name of ServiceBus Topic to integrate with.

Optional Parameters

--resource-group -g

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

--sbs --servicebus-subscription

Name or ID of subscription where the endpoint resource exists. If no subscription is provided the default subscription is used.

--tags

Digital Twins endpoint tags. Property bag in key-value pairs with the following format: a=b;c=d.