CmdID / az / az iot / az iot hub
az iot hub show-connection-string
Show the connection strings for an IoT hub. Azure CLI reference
4 options Its page in the Azure CLI reference
Options
--allAllow to show all shared access policies.--hub-name, --name, -n--keyThe key to use.--policy-nameShared access policy to use.