Hello @Hoeneveld, T.A. (Tim) ,
Thank you for your question.
The secondary workspace serves as a "shadow" workspace solely for resiliency purposes. It is not visible in the Azure portal, and you cannot manage or access it directly.
Based on the provided JSON, it appears that replication is enabled, and the provisioning state is successful.
If you are using the Azure Monitor Agent and the Logs Ingestion API, you will utilize data collection rules (DCR). When workspace replication is enabled, Azure Monitor creates a system data collection endpoint (DCE) with a name identical to your workspace ID.
To replicate data, you need to associate your data collection rules with this system DCE. This ensures that only the specified log streams are replicated, helping control replication costs.
Here are the steps to associate DCR with the system DCE:
-
In the Azure portal, select Data collection rules.
-
Choose a data collection rule that sends data to your primary Log Analytics workspace.
-
On the Overview page, select Configure DCE and choose the system DCE from the list.
Note: Data collection rules connected to a workspace’s system DCE can only target that specific workspace and not other destinations.
Before switching to the secondary workspace during switchover, ensure it contains sufficient logs. It is recommended to wait at least one week after enabling replication to allow for adequate data availability in the secondary region.
To trigger the switchover, use the POST command, which is a long-running operation that can take some time to complete. A successful call returns a 202-status code.
If the API is not responding, ensure that your request is correctly formatted and that you have the necessary permissions.
After the switchover, the secondary workspace should now be active, and the primary workspace should be inactive. You can verify this in the Azure portal under the Log Analytics workspace settings. When you also go to the Workspace Overview Page you should see a banner telling you that you are in Failover and some operations are not supported.
If this answers your question, please accept the answer to help community members with similar questions.