Why there is no AzureDiagnostics table for Azure Key Vault Managed HSM in Log Analytics workspace

Waqas 0 Reputation points
2024-07-24T23:52:54.8366667+00:00

AzureDiagnostics table is available for most resources in Azure and we can see log table in Log Analytics workspace. But for Azure Key Vault Managed HSM there is no AzureDiagnostics table in Log Analytics workspace.

If I change scope in Log Analytics workspace to some AKV, I can see AzureDiagnostics table, but if I change scope to Azure Key Vault Managed HSM, then AzureDiagnostics table is not available.

There is an article about enabling diagnostic settings using az commands, but that sends events to blob storage in json format and it's not clear how to run queries on these events.

https://video2.skills-academy.com/en-us/azure/key-vault/managed-hsm/logging?source=docs

Azure Dedicated HSM
Azure Dedicated HSM
An Azure service that provides hardware security module management.
31 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 32,986 Reputation points Microsoft Employee
    2024-07-25T09:08:44.87+00:00

    @Waqas Thank you for reaching out to us, As I understand you are looking to manage the logs generated by Azure Key Vault Managed HSM resource using log analytics workspace.

    Based on my research (reviewed old support cases with a similar ask), Managed HSM saves information in an Azure storage account, there is no option to send the logs to log analytics workspace directly, also with logs getting stored in storage account in json format, one has to download the each json file to review the operations is challenging as well.

    However you can follow this approach where you would need to pull the data into a server or a VM and then give it the correct format in order to ingest it into the log analytics workspace via Log ingestion API - https://video2.skills-academy.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.