Have you ever wondered how to determine if any devices are still using a storage account blob, file, table, or queues? In this blog post I will talk about the process of setting up monitoring to understand if/what devices are still communicating to a storage account. What we will not cover is how to determine what the purpose of the storage account is or the impact of removing the storage account. This is an exercise that would need to be done by yourself and may include others within your organization.
Before we start setting the solution up, we first need to understand our options for collecting the data. To collect the data for a storage account we need to enable diagnostics logs, to configure diagnostic logs we have the following options:
I will be focusing on determining if the storage account is being accessed using log analytics, but I will show you an easy way to configure:
If you will be using Log analytics workspace, then the only thing you will need to pre-create would be the log analytics workspace.
Let’s review first what we will be doing and what this will look like once we have completed this exercise. When we are completed with this exercise, blob, queue, table, and files diagnostic status will be Enabled and the storage account status will be Disabled still. This is to be expected as the only thing we can collect on the storage account itself is metric data.
Storage Service |
Example Query |
Blob |
StorageBlobLogs |
Files |
StorageFileLogs |
Queues |
StorageQueueLogs |
Table |
StorageTableLogs |
NOTE: Replace "<storageaccount>" with the storage account name.
There you have it; with this list you can now start to understand what devices by ip address are connecting to the storage account. Thank you for taking the time to read this blog, I hope this helps you and see you next time.
Disclaimer
The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without a warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.