Update Workspace Retention and Verify
A 3-step recipe with Azure Log Analytics. We can help you get access.
Recipe · 3 steps
Update Workspace Retention and Verify
with Azure Log Analytics
Capture current retention, patch the workspace, then verify the new value.
- Read the workspace to capture its current retention setting before the patch is applied.
- Apply a patch that sets the new retention value on the workspace.
- Read the workspace again to confirm the new retention value is in effect.
What you'll need to have ready
- subscriptionId: The ID of the target Azure subscription.
- resourceGroupName: The resource group that contains the workspace.
- workspaceName: The management name of the Log Analytics workspace.
- retentionInDays: The new data retention value in days to apply to the workspace.
- managementApiVersion: The management API version to use.
For your developer
Arazzo workflow azure-log-analytics:update-workspace-retention, 3 operations: getWorkspace → updateWorkspace → getWorkspace. Specs on APIs.io.