Hello lwerthm,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your ADX plugin postgresql_request failed to load System.Security.Cryptography.Algorithms.
The error you’re posted shows that the postgresql_request
plugin in Azure Data Explorer (ADX) indicates that the required .NET
library (System.Security.Cryptography.Algorithms
) is either missing or not properly loaded.
This is what you can do to fix it:
- Make sure that the
postgresql_request
plugin is properly configured and enabled in your ADX environment. Using KQL as in the following query:
If the plugin is enabled and its version is correct (.show plugins | where PluginName == "postgresql_request"
Version=2
), proceed to the next step. - Confirm that your ADX instance is running on the latest version. Azure Data Explorer updates can include bug fixes or compatibility improvements and check for updates or version notes related to your ADX cluster.
- Make sure your PostgreSQL connection string is correct and follows the required format:
evaluate postgresql_request(
'Host=your_postgresql_server.postgres.database.azure.com; Port=5432;'
'Database=your_database;'
'User Id=your_user; Password=your_password;'
'select * from "test_adx_meta"'): (id: int, value: string)
Ensure:
- Hostname is correct.
- Proper port (5432 for PostgreSQL) is used.
- Credentials (
User Id
andPassword
) are accurate. - Database name matches exactly, including case sensitivity.
- Also, note that the
System.Security.Cryptography.Algorithms
library issue might occur due to a misconfigured or outdated plugin runtime environment. Update .NET Dependencies, ADX’s plugin framework depends on .NET components. While this is managed by Azure, the issue could stem from an outdated environment in the cluster. You can address this by:
- Go to the Azure Data Explorer Cluster settings in the Azure portal.
- Under **Settings > Configurations, restart the cluster to refresh its runtime dependencies.
- Ensure that all plugin dependencies are loaded by running using KQL:
.show diagnostics
Look for any errors or warnings related to postgresql_request
or missing assemblies. If dependencies like System.Security.Cryptography.Algorithms
are still not loaded, it might indicate a cluster environment issue.
- If the issue persists, try using external tools (like PowerShell or Azure Data Studio) to validate that PostgreSQL can be accessed using the same connection string. Alternatively, test querying PostgreSQL via an external ADX query client using similar setup.
- If the above steps don’t resolve the issue: Raise a support request** through the Azure portal and provide them with:
- The error message.
- Plugin details.
- ADX version and cluster diagnostics.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.