Skip to content

Commit

Permalink
Merge pull request #86 from baanders/cli-suggested-edit
Browse files Browse the repository at this point in the history
Suggested clarifying endpoint roles
  • Loading branch information
robinsh authored Oct 24, 2019
2 parents ff4dcce + 3d6c17b commit e6e9f0c
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ az iot hub device-identity show --device-id $iotDeviceName \
##### ROUTING FOR STORAGE #####

# You're going to have two routes and two endpoints.
# One points to container1 in the storage account
# and includes all messages.
# The other points to container2 in the same storage account
# and only includes enriched messages.
# One route points to the first container ("original") in the storage account
# and includes the original messages.
# The other points to the second container ("enriched") in the same storage account
# and includes the enriched versions of the messages.

endpointType="azurestoragecontainer"
endpointName1="ContosoStorageEndpointOriginal"
Expand All @@ -105,7 +105,7 @@ storageConnectionString=$(az storage account show-connection-string \
# Create the routing endpoints and routes.
# Set the encoding format to either avro or json.

# This is the endpoint for container 1, for endpoint messages that are not enriched.
# This is the endpoint for the first container, for endpoint messages that are not enriched.
az iot hub routing-endpoint create \
--connection-string $storageConnectionString \
--endpoint-name $endpointName1 \
Expand All @@ -117,7 +117,7 @@ az iot hub routing-endpoint create \
--resource-group $resourceGroup \
--encoding json

# This is the endpoint for container 2, for endpoint messages that are enriched.
# This is the endpoint for the second container, for endpoint messages that are enriched.
az iot hub routing-endpoint create \
--connection-string $storageConnectionString \
--endpoint-name $endpointName2 \
Expand All @@ -140,7 +140,7 @@ az iot hub route create \
--enabled \
--condition $condition

# This is the route for messages that are not enriched.
# This is the route for messages that are enriched.
# Create the route for the second storage endpoint.
az iot hub route create \
--name $routeName2 \
Expand Down

0 comments on commit e6e9f0c

Please sign in to comment.