az iot hub routing-endpoint
This command group has been deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) message-endpoint command group (az iot hub message-endpoint)' instead.
Manage custom endpoints of an IoT hub.
Commands
Name | Description | Type | Status |
---|---|---|---|
az iot hub routing-endpoint create |
Add an endpoint to your IoT Hub. |
Core | Deprecated |
az iot hub routing-endpoint delete |
Delete all or mentioned endpoint for your IoT Hub. |
Core | Deprecated |
az iot hub routing-endpoint list |
Get information on all the endpoints for your IoT Hub. |
Core | Deprecated |
az iot hub routing-endpoint show |
Get information on mentioned endpoint for your IoT Hub. |
Core | Deprecated |
az iot hub routing-endpoint create
This command is implicitly deprecated because command group 'iot hub routing-endpoint' is deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) message-endpoint command group (az iot hub message-endpoint)' instead.
Add an endpoint to your IoT Hub.
Create a new custom endpoint in your IoT Hub.
az iot hub routing-endpoint create --endpoint-name
--endpoint-resource-group
--endpoint-subscription-id
--endpoint-type {azurestoragecontainer, eventhub, servicebusqueue, servicebustopic}
--hub-name
[--auth-type {identityBased, keyBased}]
[--batch-frequency]
[--chunk-size]
[--connection-string]
[--container]
[--encoding {avro, json}]
[--endpoint-uri]
[--entity-path]
[--ff]
[--identity]
[--resource-group]
Examples
Add a new endpoint "E2" of type EventHub to "MyIotHub" IoT Hub.
az iot hub routing-endpoint create --resource-group MyResourceGroup --hub-name MyIotHub --endpoint-name E2 --endpoint-type eventhub --endpoint-resource-group {ResourceGroup} --endpoint-subscription-id {SubscriptionId} --connection-string {ConnectionString}
Add a new endpoint "S1" of type AzureStorageContainer to the "MyIotHub" IoT Hub within the endpoint resource group "MyEndpointResourceGroup".
az iot hub routing-endpoint create --resource-group MyResourceGroup --hub-name MyIotHub \
--endpoint-name S1 --endpoint-type azurestoragecontainer --endpoint-resource-group MyEndpointResourceGroup \
--endpoint-subscription-id {SubscriptionId} --connection-string {ConnectionString} \
--container-name {ContainerName} --batch-frequency 100 --chunk-size 100 \
--ff {iothub}-{partition}-{YYYY}-{MM}-{DD}-{HH}-{mm}
Add a new identity-based EventHub endpoint named "EventHubIdentity" and authenticate using a user-assigned managed identity
az iot hub routing-endpoint create --resource-group MyResourceGroup --hub-name MyIotHub --endpoint-name EventHubIdentity --endpoint-type eventhub --endpoint-resource-group {ResourceGroup} --endpoint-subscription-id {SubscriptionId} --auth-type identityBased --identity {userIdentityResourceId} --endpoint-uri {EventHubEndpointUri} --entity-path {EntityPath}
Required Parameters
Name of the Routing Endpoint.
Resource group of the Endpoint resoure.
SubscriptionId of the Endpoint resource.
Type of the Routing Endpoint.
IoT Hub name.
Optional Parameters
Authentication type for the endpoint. The default is keyBased.
Request batch frequency in seconds. The maximum amount of time that can elapse before data is written to a blob, between 60 and 720 seconds.
Request chunk size in megabytes(MB). The maximum size of blobs, between 10 and 500 MB.
Connection string of the Routing Endpoint.
Name of the storage container.
Encoding format for the container. The default is AVRO. Note that this field is applicable only for blob container endpoints.
The uri of the endpoint resource.
The entity path of the endpoint resource.
File name format for the blob. The file name format must contain {iothub}, {partition}, {YYYY}, {MM}, {DD}, {HH} and {mm} fields. All parameters are mandatory but can be reordered with or without delimiters.
Use a system-assigned or user-assigned managed identity for endpoint authentication. Use "[system]" to refer to the system-assigned identity or a resource ID to refer to a user-assigned identity. If you use --auth-type without this parameter, system-assigned managed identity is assumed.
Name of 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 iot hub routing-endpoint delete
This command is implicitly deprecated because command group 'iot hub routing-endpoint' is deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) message-endpoint command group (az iot hub message-endpoint)' instead.
Delete all or mentioned endpoint for your IoT Hub.
Delete an endpoint for your IoT Hub. We recommend that you delete any routes to the endpoint, before deleting the endpoint.
az iot hub routing-endpoint delete [--endpoint-name]
[--endpoint-type {azurestoragecontainer, eventhub, servicebusqueue, servicebustopic}]
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Delete endpoint "E2" from "MyIotHub" IoT Hub.
az iot hub routing-endpoint delete --resource-group MyResourceGroup --hub-name MyIotHub --endpoint-name E2
Delete all the endpoints of type "EventHub" from "MyIotHub" IoT Hub.
az iot hub routing-endpoint delete --resource-group MyResourceGroup --hub-name MyIotHub --endpoint-type eventhub
Delete all the endpoints from "MyIotHub" IoT Hub.
az iot hub routing-endpoint delete --resource-group MyResourceGroup --hub-name MyIotHub
Optional Parameters
Name of the Routing Endpoint.
Type of the Routing Endpoint.
IoT Hub name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 iot hub routing-endpoint list
This command is implicitly deprecated because command group 'iot hub routing-endpoint' is deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) message-endpoint command group (az iot hub message-endpoint)' instead.
Get information on all the endpoints for your IoT Hub.
Get information on all endpoints in your IoT Hub. You can also specify which endpoint type you want to get informaiton on.
az iot hub routing-endpoint list [--endpoint-type {azurestoragecontainer, eventhub, servicebusqueue, servicebustopic}]
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Get all the endpoints from "MyIotHub" IoT Hub.
az iot hub routing-endpoint list -g MyResourceGroup --hub-name MyIotHub
Get all the endpoints of type "EventHub" from "MyIotHub" IoT Hub.
az iot hub routing-endpoint list -g MyResourceGroup --hub-name MyIotHub --endpoint-type eventhub
Optional Parameters
Type of the Routing Endpoint.
IoT Hub name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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 iot hub routing-endpoint show
This command is implicitly deprecated because command group 'iot hub routing-endpoint' is deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) message-endpoint command group (az iot hub message-endpoint)' instead.
Get information on mentioned endpoint for your IoT Hub.
Get information on a specific endpoint in your IoT Hub.
az iot hub routing-endpoint show --endpoint-name
[--hub-name]
[--ids]
[--resource-group]
[--subscription]
Examples
Get an endpoint information from "MyIotHub" IoT Hub.
az iot hub routing-endpoint show --resource-group MyResourceGroup --hub-name MyIotHub \
--endpoint-name {endpointName}
Required Parameters
Name of the Routing Endpoint.
Optional Parameters
IoT Hub name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
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.