forked from Azure/toketi-iothub-to-cassandra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-env-vars.sh
36 lines (31 loc) · 1.18 KB
/
setup-env-vars.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Populate the following environment variables, and execute this file before running
# IoT Hub to Cassandra.
#
# For more information about where to find these values, more information here:
#
# * https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-create-through-portal#endpoints
# * https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-java-java-getstarted
#
#
# Example:
#
# export IOTHUB_EVENTHUB_NAME="my-iothub-one"
#
# export IOTHUB_EVENTHUB_ENDPOINT="sb://iothub-ns-myioth-12345-9fb123f456.servicebus.windows.net/"
#
# export IOTHUB_EVENTHUB_PARTITIONS=4
#
# export IOTHUB_IOTHUB_ACCESS_POLICY="service"
#
# export IOTHUB_ACCESS_KEY="6XdNOP12341f+N3uOdEFgKabcdbZZk1K//T2jFabcN4="
#
# see: Endpoints ⇒ Messaging ⇒ Events ⇒ "Event Hub-compatible name"
export IOTHUB_EVENTHUB_NAME=""
# see: Endpoints ⇒ Messaging ⇒ Events ⇒ "Event Hub-compatible endpoint"
export IOTHUB_EVENTHUB_ENDPOINT=""
# see: Endpoints ⇒ Messaging ⇒ Events ⇒ Partitions
export IOTHUB_EVENTHUB_PARTITIONS=""
# see: Shared access policies, we suggest to use "service" here
export IOTHUB_IOTHUB_ACCESS_POLICY=""
# see: Shared access policies ⇒ key name ⇒ Primary key
export IOTHUB_ACCESS_KEY=""