az iot hub module-identity connection-string

Manage IoT device module's connection string.

Commands

az iot hub module-identity connection-string show

Show a target IoT device module connection string.

az iot hub module-identity connection-string show

Show a target IoT device module connection string.

az iot hub module-identity connection-string show --device-id
                                                  --module-id
                                                  [--hub-name]
                                                  [--key-type {primary, secondary}]
                                                  [--login]
                                                  [--resource-group]

Required Parameters

--device-id -d

Target Device.

--module-id -m

Target Module.

Optional Parameters

--hub-name -n

IoT Hub name.

--key-type --kt

Shared access policy key type for auth.

accepted values: primary, secondary
default value: primary
--login -l

This command supports an entity connection string with rights to perform action. Use to avoid session login via "az login". If both an entity connection string and name are provided the connection string takes priority.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.