Open manishgonsalves opened 5 years ago
@manishgonsalves You can run the following command to update the settings of the concerned storage to set the Hour Metrics property of the "File" Storage type:
Set-AzStorageServiceMetricsProperty -MetricsType 'Hour' -ServiceType 'File> -Context '
' -MetricsLevel 'ServiceAndApi' -RetentionDays '365' -PassThru
You can then go to theStorage Account --> Settings --> Export template
option to download the template with the correct setting for Diagnostic metric logging and use it as a sample ARM Template.
Below is the image for your reference:
When running the SVT for Azure Blob Storage V2, we get failures to the controlID Azure_Storage_Audit_AuthN_Requests. On debugging we found that it's due to the fact that for the "File" Azure Storage type diagnostics retention days is not set to 365. While we have ARM templates to set Retention days for Blob, Queue and Table, we have not found any ARM template that can help us set the Retention Days of "File" Storage type for Hour metrics. The example ARM template for Storage does not have sections for setting Diagnostic metric logging at all. Any guidance?