How to disable storage analytics

Shweta Mathur 29,441 Reputation points Microsoft Employee
2020-07-05T19:22:52.663+00:00

I am trying to delete $logs container from storage account but can't able to proceed through portal or explorer and getting below error.

'Failed to delete 1 out of 1 container(s):
$logs: ContainerOperationFailure: The account being accessed does not have sufficient permissions to execute this operation.'

I have checked twice, there is no lock, policy defined on resources.

I switch off the diagnostics settings status too of the storage account, but still cant able to delete $logs container. Although successfully able to delete other containers created in the same storage account.

Also, I have created new storage account in another resource group , but there is no $logs container exist in that new account. Is there any settings need to check at resource group level. Please clarify.

11307-error.jpg

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,895 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vaibhav Chaudhari 38,681 Reputation points
    2020-07-06T09:50:33.057+00:00

    As per the documentation -

    All logs are stored in block blobs in a container named $logs, which is automatically created when Storage Analytics is enabled for a storage account. The $logs container is located in the blob namespace of the storage account, for example: http://<accountname>.blob.core.windows.net/$logs. This container cannot be deleted once Storage Analytics has been enabled, though its contents can be deleted.

    Reference: https://learn.microsoft.com/en-us/azure/storage/common/storage-analytics-logging?tabs=dotnet#how-logs-are-stored

    ----------

    If the response helped, do "Accept Answer" and upvote it Vaibhav

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful