Hi Mistyron,
Since the InvokeUploadModuleLogs
function is being triggered every 15 minutes, the next step is to ensure that the logs are correctly uploaded to your Blob Storage. Verify SAS URL Configuration:
Ensure that the sasUrl
parameter is correctly set in the payload of the InvokeUploadModuleLogs
function. This URL should have the necessary permissions to write to the Blob Storage container.
Check Environment Variables:
Confirm that all required environment variables are correctly set in your Function App. These typically include the IoT Hub connection string, device ID, module ID, and the SAS URL for the Blob Storage container.
Ensure that the function code for InvokeUploadModuleLogs
is correctly invoking the direct method with the appropriate payload
Monitor Logs and Storage:
Check the logs of your Function App to ensure that the InvokeUploadModuleLogs
function is executing without errors,Verify that the logs are being uploaded to the elmsstoragecontainer
in your Blob Storage account.
Permissions and Access:
Ensure that the SAS URL has the correct permissions (write access) to the Blob Storage container,Confirm that the IoT Edge device has the necessary permissions to upload logs to the specified Blob Storage container.
you can refer similar thread for more information: https://learn.microsoft.com/en-us/answers/questions/2123684/(duplicate)-elms-how-to-save-module-logs-to-blob-s
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.