-
Notifications
You must be signed in to change notification settings - Fork 460
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
Not able to restart the custom edge module while using the inbuilt "RestartModule" direct method of $edgeAgent from custom iot edge module. #7116
Comments
|
@rido-min, That I already know. But I don't know how to get the service credential and also, it's supported by .NET sdk or not. Do you have any idea regarding that? The same link I have shared with one of the Microsoft Q & A page.(In the comment section you can read the conversion of mine.) Thanks. |
yes, this API is exposed as a REST endpoint https://learn.microsoft.com/en-us/rest/api/iothub/service/modules/invoke-method but keep in mind this requires the iothub credentials (from portal->Security->Shared access policies). Using those key from the device side is strongly discouraged, since if the key is leaked, it will have access to all your devices and modules. .. used from the az cli, and the service side sdk |
The second one I have already tried but got the unauthorize access error. And regarding the first one as you mentioned that's not the best practice as there is a high chance of security issue if key will be leaked. If you want will provide sample code for second one and also screen shot of the issue. |
following in the sdk repo |
@rido-min, have you close the issue? |
Expected Behavior
We can restart the custom module by invoking the $edgeAgent "RestartModule" direct method.But as of now it will be giving the error.
Current Behavior
See the image attached image for current behavior.
Steps to Reproduce
Provide a detailed set of steps to reproduce the bug.
The text was updated successfully, but these errors were encountered: