Search code examples
azure-functionsmicrosoft-information-protection

Failed to initialize OneDS


I have a Azure Function which uses MIP SDK and I am getting the following error when calling MIP.CreateMipContext(...):

Failed to initialize OneDS (mipns::OneDSHelper::OneDSHelper:src\core\api_impl\diagnostic\oneds\oneds_helper.cpp:173

Surprisingly, the error occurs only when running on Azure. When running locally, everything is fine.

I am using MIP SDK v1.8.86 and .NET Core 3.1.

Any ideas what that OneDS is or what is causing the error?


Solution

  • OneDS is the library used for diagnostic data and to send audit events for AIP Analytics. I reviewed the source for that error, and the failing function does accept the logpath, the base of which will be the path you set when creating the MipContext. Can you check to make sure you're able to write to that location?