none
Monitor performance and availability of Azure File Share services

    Question

  • Hi,

    We currently use an Azure File Share to host some content in IIS. We have random performance issues (IIS doesn't seem to be able to access the share for a period of time).

    We wanted to configure monitoring but it doesn't seem to be available for Files either in the old portal the new portal or trough PowerShell. Despite documentation saying it is available.

    Storage Analytics metrics is available for the Blob, Queue, Table, and File services

    https://msdn.microsoft.com/en-us/library/dn782843.aspx

    Here is what we tried in PowerShell

    Set-AzureStorageServiceMetricsProperty -Context $ctx -ServiceType File -MetricsType Minute -retentiondays 7 

    Get-AzureStorageServiceMetricsProperty : It doesn't support metrics in Microsoft Azure File service.

    Any idea how I can activate storage monitoring or any other way to monitor the availability and performance of Azure File Shares?

    regards

    Olivier


    Wednesday, November 4, 2015 3:32 PM

Answers

All replies

  • Hi Olivier,

    Here the error is for "Get-AzureStorageServiceMetricsProperty" So what happens when you use the following cmdlet to enable the Storage Metrics?

    Set-AzureStorageServiceMetricsProperty -MetricsType Minute 
    -ServiceType Blob -MetricsLevel ServiceAndApi  -RetentionDays 5

    Have you confirmed that the Storage Metrics has been successfully enabled?
    To retrieve metrics you could us:

    Get-AzureStorageServiceMetricsProperty -MetricsType Hour 
    -ServiceType Blob

    You could refer the following link for details:
    https://msdn.microsoft.com/en-us/library/azure/dn782843.aspx

    Regards,
    Malar.

    Thursday, November 5, 2015 11:36 AM
  • Hi,

    The error for Set-AzureStorageServiceMetricsProperty is the same.

    Set-AzureStorageServiceMetricsProperty : It doesn't support metrics in Microsoft Azure File service.

    It works for the ServiceType blob, but not with files.

    The documentation in your link says

    ServiceType possible value are BlobQueueTable, and File.

    However this page https://msdn.microsoft.com/en-us/library/dn806391.aspx says

    Specifies the storage service type. This cmdlet modifies the metrics properties for the service type that this parameter specifies. Valid values are: 

    -- Blob 
    -- Table
    -- Queue
    -- File

    The value of File is not currently supported.

    My version of the PowerShell azure module is 0.9.12

    And several other sources says that metrics are supported for files

    Azure Storage Analytics now supports metrics for File storage. With metrics data, you can trace requests and diagnose issues.

    https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/#troubleshooting-file-storage-using-metrics

    Thursday, November 5, 2015 2:42 PM
  • Hi ogaumond,

    I recommend that you update your PowerShell cmdlets. The newest version is 1.0.0.0. It can be found here:

    https://github.com/Azure/azure-powershell/tree/release-1.0.0

    I'm betting you aren't using a new enough version of PowerShell.

    Robin

    Saturday, November 7, 2015 12:04 AM