Edit

Share via


Log Forwarding Persists After Service Is Disabled

This article addresses a scenario where log forwarding continues unexpectedly after an Azure Native Integrations service is disabled. It explains the underlying cause and provides steps to resolve the issue by managing resource locks in Azure.

Tip

If the delete lock is removed after the service has already been deleted, the diagnostic settings must be manually cleaned up to stop log forwarding.

Symptoms

Logs continue to be emitted and diagnostic settings remain active on monitored resources, even after the service is disabled or tag rules are modified to exclude certain resources.

Cause

A delete lock is applied to the resource or the resource group containing the resource. This lock prevents the cleanup of diagnostic settings, which causes logs to continue being forwarded.

Solution

To remove the delete lock from the affected resource or resource group:

  1. Go to Azure Portal and sign in using your Azure credentials.
  2. Use the Search bar at the top of the portal to locate the specific resource or resource group.
  3. Select the resource name to open its Overview page.
  4. In the left-hand menu, under the Settings section, select Locks.
  5. You’ll see a list of any management locks applied to the resource.
  6. Look for a lock with Lock type: Delete (often labeled as CanNotDelete).
  7. Select the ellipsis (⋯) next to the lock entry.
  8. Choose Delete from the dropdown menu.
  9. Confirm the deletion when prompted.

Lock resources using the Azure portal Configure locks - Azure portal