[BUG] Microsoft.Consumption/usageDetails does not return entries with multiple tags when a tag is included in the filter #29063
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Consumption Service
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue points to a problem in the management-plane of the library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/consumption/resource-manager/Microsoft.Consumption/stable/2023-11-01/consumption.json
API Spec version
2023-11-01
Describe the bug
Will return entries for a resource with
"tags": {"dev": "tools"}
But it will not return entries for a resource with
"tags": {"dev": "tools", "foo": "bar"}
Expected behavior
Entries are returned for all resources matching the tag supplied in the filter, even if they have additional other tags.
Actual behavior
Entries are not returned for resources with additional tags beyond just the one supplied in the filter.
Reproduction Steps
1. Create two resources with the given tags:
Resource One:
Resource Two:
2. Attempt to get usageDetails filtering by tag:
3. Observe that only one resource is returned
👀
Environment
Reproduced with:
azure-mgmt-consumption==10.0.0
with API versions2023-05-01
and2023-11-01
on Python 3.9.192023-05-01
and2023-11-01
The text was updated successfully, but these errors were encountered: