You have an Azure Bastion host named `bastion-corp-east` that is used to manage virtual machines. You must configure diagnostic logging for the Bastion host to meet the following requirements:
* Capture audit logs for all user remote sessions.
* Retain the session logs for 180 days.
* Ensure the logs can be queried directly using the Kusto Query Language (KQL).
Which diagnostic setting configuration should you implement?
- Create a diagnostic setting on `bastion-corp-east` that forwards the `BastionAuditLogs` category to a Log Analytics workspace, and set the data retention period of the workspace to 180 days.Answer
- BCreate a diagnostic setting on `bastion-corp-east` that forwards the `AllMetrics` category to a Log Analytics workspace, and set the data retention period of the workspace to 180 days.
- CCreate a diagnostic setting on `bastion-corp-east` that forwards the `BastionAuditLogs` category to an Azure Storage account, and configure a 180-day retention period in the diagnostic setting.
- DCreate a diagnostic setting on `bastion-corp-east` that forwards the `BastionAuditLogs` category to an Azure Event Hub, and configure the message retention period of the hub to 180 days.
Answer
Create a diagnostic setting on `bastion-corp-east` that forwards the `BastionAuditLogs` category to a Log Analytics workspace, and set the data retention period of the workspace to 180 days.
The correct configuration forwards the `BastionAuditLogs` category to a Log Analytics workspace. This workspace natively supports Kusto Query Language (KQL) queries. The data retention period must be managed at the workspace level, which is set to 180 days.
Step-by-Step Solution
Key Concept
Azure Monitor Diagnostic Settings routing and log categories for Azure Bastion, including destination-based retention policies.
Estimated Time:1m 30s