Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Invalid Connection string #49

@elsni

Description

@elsni

I followed exactly the commands.
az iot hub show-connection-string --hub-name IoTHubSmartSafety --policy-name service
shows

This command has been deprecated and will be removed in a future release. Use 'IoT Extension (azure-iot) connection-string command (az iot hub connection-string show)' instead.
{
  "connectionString": "HostName=IoTHubSmartSafety.azure-devices.net;SharedAccessKeyName=service;SharedAccessKey=<key>"
}

I replaced the actual key string with <key>. The connection string does not seem to be working.
npm start

outputs

Using IoT Hub connection string [HostName=IoTHubSmartSafety.azure-devices.net;DeviceId=odroidTemp;SharedAccessKey=<key>]
IoTHubSmartSafetyConsumerGroupOdroid
Using event hub consumer group [IoTHubSmartSafetyConsumerGroupOdroid]
Listening on 3000.
Invalid IotHub connection string.

Node Version: v12.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions