Hello, can you try this in PowerShell
Here's an example using Azure PowerShell:
$vmName = "YourVMName"
$resourceGroupName = "YourResourceGroupName"
$metrics = Get-AzMetric -ResourceId "/subscriptions/your-subscription-id/resourceGroups/$resourceGroupName/providers/Microsoft.Compute/virtualMachines/$vmName" -MetricName "Percentage Disk Space Used" -TimeAggregation Total -DetailedOutput
Replace "YourVMName", "YourResourceGroupName", and "your-subscription-id" with your VM's name, resource group name, and subscription ID.
Export to CSV: You can then export the metrics data to a CSV file for further analysis using PowerShell:
$metrics | Export-Csv -Path "DiskUsageReport.csv" -NoTypeInformation