Logging and Diagnostics Options for Azure Quantum Workspaces

Martin, Laura (STFC,RAL,NQCC) 0 Reputation points
2024-09-11T11:29:44.69+00:00

Hi all!

I was wondering what logging data and diagnostics options are available broadly for Azure Quantum workspaces? I am interested in any and all data - metrics, diagnostics, threat detection, etc for audit purposes. Where would I find the range of data available, and how would I log it using Log Analytics?

Thanks!

Azure Quantum
Azure Quantum
An Azure service that provides quantum computing and optimization solutions.
71 questions
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,397 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 1,150 Reputation points Microsoft Vendor
    2024-09-11T17:25:36.18+00:00

    Hi Martin, Laura (STFC,RAL,NQCC),

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here. Here are the details for your query.

    Azure Quantum workspaces offer a range of logging, metrics, and diagnostics options to help you monitor and audit your quantum computing environment.

    Azure Monitor, allowing you to collect metrics related to workspace performance and quantum job execution. You can enable metrics collection through Azure Monitor. These metrics are automatically available in the Metrics blade of the Azure portal for Azure Quantum.

    For more information regarding Azure Monitor metrics, please look into this https://zcusa.951200.xyz/en-us/azure/azure-monitor/essentials/data-platform-metrics

    Diagnostic logs in Azure Quantum capture detailed information about the workspace operations. You can use these logs to trace quantum job submissions, processing, and error handling. To enable Diagnostic logs, go to your Azure Quantum Workspace then Navigate to Diagnostic settings. Configure which types of logs and metrics you want to collect and where to send them (Log Analytics, Event Hub, or Storage Account).

    For more information about Diagnostic logs, please look into this https://zcusa.951200.xyz/en-us/azure/azure-monitor/essentials/diagnostic-settings

    Azure Security Center (Defender for Cloud) can be configured to monitor your Quantum workspace for potential security threats. Threat detection might include Suspicious API calls, Unauthorized access attempts, Potential misconfigurations that could lead to vulnerabilities. Enable Azure Defender for Cloud to monitor your Quantum workspace and generate threat detection logs and alerts. These can be sent to Log Analytics or integrated into your security information and event management (SIEM) solution for further analysis.

    To centralize and analyze all diagnostic logs and metrics, you can send them to Log Analytics. Once the data is in Log Analytics, you can use Kusto Query Language (KQL) to run custom queries for deeper insights and generate visual reports for monitoring.

    To enable In the Azure Portal, go to your Quantum Workspace > Diagnostic Settings. Choose which logs and metrics to collect (e.g., job logs, API requests, etc.) and Select Log Analytics as the destination.

    Here's an example of how to create a Log Analytics workspace and configure it to collect data from your Azure Quantum workspace using Azure CLI:

    # Create a Log Analytics workspace
    az monitor log-analytics workspace create --resource-group <resource-group> --workspace-name <workspace-name>
    # Configure diagnostic settings to send logs to Log Analytics
    az monitor diagnostic-settings create --resource-group <resource-group> --name <diagnostic-setting-name> --resource <azure-quantum-workspace-resource-id> --logs '[
        {
            "category": "ResourceLogs",
            "enabled": true,
            "retentionPolicy": {
                "enabled": true,
                "days": 30
            }
        }
    ]' --workspace-id <log-analytics-workspace-id>
    

    For more information regarding Log Analytics, please look into https://zcusa.951200.xyz/en-us/azure/azure-monitor/logs/log-analytics-overview

    If you have any further queries, please do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."


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.