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."