sudo iotedge config apply - Config Argument not found

Jeffrey K 171 Reputation points
2021-06-01T18:14:52.76+00:00

I'm trying to install IoT runtime in Linux "Linux (ubuntu 18.04)" VM and configuring the device provisioning from the steps in link, but I get the error for the config command
https://learn.microsoft.com/en-us/azure/iot-edge/how-to-auto-provision-x509-certs?view=iotedge-2020-11#linux-device

Command: sudo iotedge config apply

Found argument 'config' which wasn't expected, or isn't valid in this context
USAGE:
iotedge [OPTIONS] <SUBCOMMAND>

Please let me know what I'm missing here? This used to work earlier in the same Linux VM but no more.

Installed IotEdge version: 1.1.3

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
418 questions
0 comments No comments
{count} vote

Accepted answer
  1. QuantumCache 20,356 Reputation points
    2021-06-02T19:09:31.22+00:00

    Hello @Jeffrey K Thanks for reaching out on this issue,

    Please confirm the version of IoTEdge running on your device?

    Below is the repro of the issue, because I am running IoT Edge 1.1 and using document(command) for version 1.2 which is not the right one.

    101795-image.png

    Please make sure to use the relevant document which suits your IoTEdge version.

    101734-image.png


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.