Maintaining Atomic Scope
- 21 Jan 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Maintaining Atomic Scope
- Updated on 21 Jan 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Purging
In Atomic Scope, Purging is done by two ways. They are,
- Purging using SQL Job
- Purging using Azure Automation Runbook
If you use Azure Sql for Atomic Scope database you can purge data using Azure Automation Runbook or if you use Normal Sql for Atomic Scope database you can purge data using SQL Job.
Enable Purging in Portal
Follow the below steps to enable purge settings in Atomic Scope,
- To enable purging in Atomic Scope, go to Atomic Scope portal. Navigate to Settings and select Application Settings from the sub-menu on the left.
- By default, purging is turned OFF. You can enable it and mention number of days and click Save to start purging the database on the specified interval.
Cleaning Azure Blobs
In AtomicScope the messages are being sent to a blob.
In order to maintain the blob without filling up with large number of data, there will be powershell script provided with AtomicScope that will cleanup the blobs based on the user's choice. You will need to import the PowerShell Runbook by creating an Automation Account with AzureRunAsConnection.
Note :
- The Run As Account can be created for the Subscription only if you have the administrator or the co-admin permissions and this can be used to create and deploy run books.
- You will get this exception if you don’t update the modules before you run the script
- You will also need to ensure that the AzureModules for that Automation Account are updated.
- Select the UpdateAzureModules button and wait for it to complete
Steps to cleanup blobs :
- Open Azure portal and create an AutomationAccount inside the resourceGroup where AtomicScope resources are deployed
- Make sure you keep the AzureRunAsAccount option enabled while creating Automation account
- After creating the automation account , navigate to the resource and open Modules pane. Now select UpdateAzureModules and wait for it to complete.
- Now goto Runbook and import the one provided from atomicscope installation.
- The runbook is located in
Admin Tools / PowerShell scripts / AzureBlobCleanup.ps1 - Start the runbook and provide mandatory parameters to clean the blobs.
Was this article helpful?