none
Azure Storgae RRS feed

  • Question

  •  We are trying to clear and manage our storage accounts better, and is looking for a way to find unused storage accounts.

    First, I looked at the 'Last Modified' property of the containers in the account, but sadly it doesn't get updated when data is uploaded to the container.
    So what I'm looking for is a timestamp, for the last time a file was added and/or removed from the storage account.
    Can you help me with my case?
    Wednesday, September 18, 2019 4:16 PM

Answers

  • To understand better can you define what is” unused” storage account?

    If it's a prod subscription you need to be especially careful that it won't continue to be used -- like it contains very cold data that is only needed rarely.

    Checking the capacity is one way. Checking the transaction metrics is another way. For non-prod, you can regenerate all keys and revoke all RBAC access and observe if anything breaks.

    Are you referring to unused storage account (disk) in a VM, If so please refer to the suggestion mentioned in this link.

    Since Last Modified Date is a system defined property, you can't really preserve it. Any time a blob is updated, this value will change. One thing you could do is keep the original date/time when the blob was created as blob metadata entry if you're interested in finding out when a blob was created. 

    If you really want to find completely empty accounts, you can write a script that enumerates all containers/queues/tables/shares in the account. If the only ones are the system-managed containers ($logs, the metrics tables) then the account is empty.

    Additional information: Refer to the suggestion mentioned in this SO thread.

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue. 

    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, September 19, 2019 1:23 PM
    Moderator

All replies

  • To understand better can you define what is” unused” storage account?

    If it's a prod subscription you need to be especially careful that it won't continue to be used -- like it contains very cold data that is only needed rarely.

    Checking the capacity is one way. Checking the transaction metrics is another way. For non-prod, you can regenerate all keys and revoke all RBAC access and observe if anything breaks.

    Are you referring to unused storage account (disk) in a VM, If so please refer to the suggestion mentioned in this link.

    Since Last Modified Date is a system defined property, you can't really preserve it. Any time a blob is updated, this value will change. One thing you could do is keep the original date/time when the blob was created as blob metadata entry if you're interested in finding out when a blob was created. 

    If you really want to find completely empty accounts, you can write a script that enumerates all containers/queues/tables/shares in the account. If the only ones are the system-managed containers ($logs, the metrics tables) then the account is empty.

    Additional information: Refer to the suggestion mentioned in this SO thread.

    Hope this helps! 

    Kindly let us know if the above helps or you need further assistance on this issue. 

    ------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Thursday, September 19, 2019 1:23 PM
    Moderator
  • @Raven Peaks Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Monday, September 23, 2019 7:07 AM
    Moderator