I'm using get-azconsumptionusagedetails in Powershell to get consumption of all of the resources for azure sponsorship acc, but for some of the resources it won't show anything (no error either), even though they are in the same RG as the ones that work.
Does anyone know the reason behind it?
I'm using
Get-AzConsumptionUsageDetail -InstanceName $r.Name
I tried to fetch the resource usage details using
Get-AzConsumptionUsageDetailcmdlet but it's not working properly and same is already reported in Github issueAlternatively, you can check the Azure resource cost usage details in Azure CLI command.
Output:
Reference: az consumption usage