Enabling log based bucket replication in Microsoft Azure
Before you begin
-
Refer to Microsoft Azure documentation and ensure that you have completed the following tasks in the Microsoft Azure portal:
-
Ensure that have created a new application and noted down the name, application (client) ID, and directory (tenant) ID.
For information, see Register an application.
- Ensure that a new client secret is created and the application secret is noted down.
-
Ensure that a new Log Analytics workspace is created and its name and workspace ID is noted down.
For information, see Create a Log Analytics workspace.
-
Ensure that the
Reader
role is assigned under Access control and members are selected and the name of the application that you registered in the previous step is provided.For more information, see Assign Azure roles using the Azure portal.
- Ensure that a new storage account is created and the Access keys are noted down.
-
In the Monitoring section of the storage account created, select a blob and in the Diagnostic settings screen, select only
StorageWrite
andStorageDelete
, and in the destination details add the Log Analytics workspace that you created earlier. Ensure that a blob is selected in the Diagnostic settings screen of the Monitoring section of the storage account created. Also, ensure that onlyStorageWrite
andStorageDelete
is selected and in the destination details, the Log Analytics workspace that you created earlier is added.For more information, see Diagnostic settings in Azure Monitor.
- Ensure that two new containers for object source and object destination are created.
-
- Administrator access to OpenShift Web Console.
Procedure
What to do next
- Verification steps:
- Write objects to the source bucket.
- Wait until MCG replicates them.
- Delete the objects from the source bucket.
- Verify the objects were removed from the target bucket.