azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzConsumptionUsageDetail ignores "Tags not supported" Items

Open Gill-Bates opened this issue 5 years ago • 5 comments

When I am using the cmdlet Get-AzConsumptionUsageDetail the CostItems without Tag support are for some reason ignored.

Get-AzConsumptionUsageDetail -StartDate 2021-06-01 -EndDate 2021-06-30,

Result:

image

The expeced Value should be:

image

Reason:

Ressources with no Tag-Support are ignored by the cmdlet

image

4,606.30 + 1,048.53 = 5,654.83

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-AzConsumptionUsageDetail                       2.0.0      Az.Billing

Gill-Bates avatar Jul 14 '21 09:07 Gill-Bates

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @laxagr.

Issue Details

When I am using the cmdlet Get-AzConsumptionUsageDetail the CostItems without Tag support are for some reason ignored.

Get-AzConsumptionUsageDetail -StartDate 2021-06-01 -EndDate 2021-06-30,

Result:

image

The expeced Value should be:

image

Reason:

Ressources with no Tag-Support are ignored by the cmdlet

image

4,606.30 + 1,048.53 = 5,654.83

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-AzConsumptionUsageDetail                       2.0.0      Az.Billing
Author: Gill-Bates
Assignees: -
Labels:

Consumption-Billing, Service Attention, customer-reported, needs-triage, question

Milestone: -

ghost avatar Jul 15 '21 00:07 ghost

I have found that the Cost API is working correctly. I wrote myself a query with Invoke-RestCommand and get the correct total.

Powershell:

image

Portal:

image

Therefore I can prove that the error is definitely in the CMDlet Get-AzConsumptionUsageDetail and not in the Cost API.

Gill-Bates avatar Jul 19 '21 06:07 Gill-Bates

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TiagoCrewGitHubIssues.

Issue Details

When I am using the cmdlet Get-AzConsumptionUsageDetail the CostItems without Tag support are for some reason ignored.

Get-AzConsumptionUsageDetail -StartDate 2021-06-01 -EndDate 2021-06-30,

Result:

image

The expeced Value should be:

image

Reason:

Ressources with no Tag-Support are ignored by the cmdlet

image

4,606.30 + 1,048.53 = 5,654.83

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Get-AzConsumptionUsageDetail                       2.0.0      Az.Billing
Author: Gill-Bates
Assignees: -
Labels:

Service Attention, question, customer-reported, Consumption-UsageDetailsandExport

Milestone: -

ghost avatar Aug 10 '21 17:08 ghost

@adwise3 can you pls have a look and route this correctly? We have missed the sla on this one already it seems.

ShilpiGautam avatar Aug 10 '21 17:08 ShilpiGautam

@Gill-Bates can you please submit a support ticket here https://azure.microsoft.com/en-us/support/create-ticket/? We need more information about the call you made to drill down on the issue. Since billing information is sensitive, we would like to continue this investigation over a support ticket, as opposed to a public forum like this one.

paornela avatar Aug 17 '21 19:08 paornela