cx-server { health-check { port = 9009 } protocol { //port=8081 // You can find the configuration parameters for your IoT Hub by logging into portal.azure.com and following the hints below. // If necessary, create a new IoT Hub: https://azure.microsoft.com/en-us/documentation/articles/iot-hub-java-java-getstarted/ // A policy name that is related to a key specified below. This policy is typically a built in, pre defined policy called "service", // but it is possible to use a custom policy if you add it to your hub. // All resources > your-hub > Settings > Shared access policies > service (or custom service with "service connect" permission consumerPolicyName = "service" // A key that supplies credentials to access services specified in the related policy. // All resources > your-hub > Settings > Shared access policies > {consumerPolicyName} > Primary (or Secondary) key consumerPolicyKey = "JxxxxxxxxxxxxxxxxxxxxxxxxxxJ3s=" // A policy name that is related to the key specified below. This policy is typically a built in, predefined policy called // "registryReadWrite", but it is possible to use a custom policy if you add it to your hub. // The shared access policy requires the registry read and registry write permissions. registryPolicyName = "registryReadWrite" // A key that supplies credentials to access services specified in the related policy. registryPolicyKey= "XkxxxxxxxxxxxxxxxxxxxpwpI=" // A name that defines the IoT Hub related to this adapter, which manages your things and their related messages. // Hubs can be scaled via hub units at different price tiers per unit. Hubs are related to a resource group, which is // related to a subscription Id and a cloud Location. // *** If the hub name EXCEEDS 25 CHARACTERS in length, be sure to change the eventHubName below accordingly *** hubName = "jmpthingworx" // The Event Hub-compatible name utilized by SDKs and integrations that expect to read from Event Hubs. An Event Hub is an internal // component of an IoT Hub that handles device to cloud events for related things. In many cases the IoT Hub name and // Event Hub-compatible name are the same, so default to the IoT Hub name. Note that long hub names require special care here. // All resources > your-hub > Messaging > Endpoints > Events(built-in endpoint) > Event Hub-compatible name eventHubName = "jmpthingworx" //${cx-server.https.hubName} // A built-in endpoint (Name=Events) utilized by SDKs and integrations that expect to read from Event Hubs. // All resources > your-hub > Messaging > Endpoints > Events(built-in endpoint) > Event Hub-compatible endpoint (hostname without ".servicebus.windows.net") eventHubNamespace = "iothub-ns-jmpthingwo-xxxxxxx" // A consumer group name is required to pull data from the IoT Hub. // All resources > your-hub > Settings > Message > Consumer groups // null means to use the $Default consumer group consumerGroup = null // IoT Hubs have a hostname that is defined by the hubName, plus a domain name of Azure's choosing, normally azure-devices.net. // All resources > your-hub > Overview > Essentials section > Hostname //hubHostname = ${cx-server.https.hubName}".azure-devices.net" hubHostname = "jmpthingworx.azure-devices.net" // Settings for Azure blob storage. Used for device-export for an Azure IoT Hub. // Create a "Storage Account" in the Azure portal, then use the navigation hints below. blob-storage { accounts { default { endpoint-protocol = "https" // > Settings > Access Keys > Storage account name account-name = "jmpthingworx" // > Settings > Access Keys > key1 or key2 account-key = "kXiBxxxxxxxxxxxxxxOtzww==" } } event-processor-host { container-name = "eph-storage-"${cx-server.protocol.eventHubName} account = default } } } transport.websockets { // ThingWorx platform application key app-key = "xxxxxxxxxb" // One or more platforms can be specified here, comma separated platforms = "ws://localhost:80/Thingworx/WS" } // platform.extensions { // Filesystem location of extension zips. This is needed for the connector to deploy extensions to the platform // location = "C:\Thingworx-Azure-IoT-Hub-Connector-2.0.0.141\extensions" // } }