Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating [agent.config] needs updating [agent] too #122500

Open
sandervandevelde opened this issue May 14, 2024 · 2 comments
Open

Updating [agent.config] needs updating [agent] too #122500

sandervandevelde opened this issue May 14, 2024 · 2 comments

Comments

@sandervandevelde
Copy link
Contributor

The documentation tells me to update the [agent.config] section:

[agent.config]
image: "mcr.microsoft.com/azureiotedge-agent:1.5"

if the [agent] section is still commented out, this will lead to a generic error:

abc@xyz:/etc/aziot$ sudo iotedge config apply
Command failed: could not parse config file: TOML parse error at line 1, column 1
  |
1 | # ==============================================================================
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing field `name`

To fix this error, uncomment the [agent] section too:

[agent]
name = "edgeAgent"
type = "docker"

Be sure to put this above the [agent.config] section.

This has to be part of the documentation too, step 6 of this Update parent configuration file.

The same goes for the 'Update downstream configuration file' section too, I expect.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@TPavanBalaji
Copy link

@sandervandevelde
Thanks for your feedback! We will investigate and update as appropriate.

@TPavanBalaji
Copy link

@sandervandevelde
Thank you for bringing this to our attention.
I've delegated this to content author, who will review it and offer their insightful opinions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants