Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to get Kind = Modern usage details #19086

Closed
dejan-shuki opened this issue Jun 3, 2021 · 6 comments
Closed

Not able to get Kind = Modern usage details #19086

dejan-shuki opened this issue Jun 3, 2021 · 6 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@dejan-shuki
Copy link

  • Package Name:

  • Package Name: azure.mgmt.consumption

  • Operating System:
    Win 10

  • Python Version:
    3.9

Describe the bug

  1. Usage details for scope = Enrolment returns only data for one subscription.
  2. We are not able to get columns that listed in kind = Modern (we got list from REST API page and from Portal).

To Reproduce
Steps to reproduce the behavior:
SCOPE = '/providers/Microsoft.Billing/enrollmentAccounts/{}/providers/Microsoft.Billing/billingPeriods/{}'.format(BILLING_ACC_ID, BILLING_PERIOD)
bill_consumption = consumption_client.usage_details.list(SCOPE)

Expected behavior
When we specify Enrollment as scope we expect to receive data for all subscriptions.
We expect more columns:

BillingPeriodEndDate | BillingProfileId | BillingProfileName | AccountOwnerId | AccountName | SubscriptionId | SubscriptionName | Date | Product | PartNumber | MeterId | ServiceFamily | MeterCategory | MeterSubCategory | MeterRegion | MeterName | Quantity | EffectivePrice | Cost | UnitPrice | BillingCurrency | ResourceLocation | AvailabilityZone | ConsumedService | ResourceId | ResourceName | ServiceInfo1 | ServiceInfo2 | AdditionalInfo | Tags | InvoiceSectionId | InvoiceSection | CostCenter | UnitOfMeasure | ResourceGroup | ReservationId | ReservationName | ProductOrderId | ProductOrderName | OfferId | IsAzureCreditEligible | Term | PublisherName | PlanName | ChargeType | Frequency | PublisherType | PayGPrice | PricingModel

received cols:

type | tags | billing_period_id | usage_start | usage_end | instance_name | instance_id | instance_location | currency | usage_quantity | pretax_cost | is_estimated | meter_id | subscription_guid | subscription_name | account_name | department_name | product | consumed_service | cost_center

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 3, 2021
@annatisch annatisch added Consumption Mgmt This issue is related to a management-plane library. labels Jun 4, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jun 4, 2021
@annatisch
Copy link
Member

Thanks for the report @dejan-shuki!
Adding @msyyc to take a look :)

@RAY-316
Copy link
Contributor

RAY-316 commented Jun 17, 2021

hi @dejan-shuki Could you provide a more detailed example about it?

@RAY-316 RAY-316 self-assigned this Jun 17, 2021
@ShilpiGautam ShilpiGautam added Consumption-UsageDetailsandExport Service Attention Workflow: This issue is responsible by Azure service team. and removed Consumption labels Jul 8, 2021
@ghost
Copy link

ghost commented Jul 8, 2021

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

Issue Details
  • Package Name:

  • Package Name: azure.mgmt.consumption

  • Operating System:
    Win 10

  • Python Version:
    3.9

Describe the bug

  1. Usage details for scope = Enrolment returns only data for one subscription.
  2. We are not able to get columns that listed in kind = Modern (we got list from REST API page and from Portal).

To Reproduce
Steps to reproduce the behavior:
SCOPE = '/providers/Microsoft.Billing/enrollmentAccounts/{}/providers/Microsoft.Billing/billingPeriods/{}'.format(BILLING_ACC_ID, BILLING_PERIOD)
bill_consumption = consumption_client.usage_details.list(SCOPE)

Expected behavior
When we specify Enrollment as scope we expect to receive data for all subscriptions.
We expect more columns:

BillingPeriodEndDate | BillingProfileId | BillingProfileName | AccountOwnerId | AccountName | SubscriptionId | SubscriptionName | Date | Product | PartNumber | MeterId | ServiceFamily | MeterCategory | MeterSubCategory | MeterRegion | MeterName | Quantity | EffectivePrice | Cost | UnitPrice | BillingCurrency | ResourceLocation | AvailabilityZone | ConsumedService | ResourceId | ResourceName | ServiceInfo1 | ServiceInfo2 | AdditionalInfo | Tags | InvoiceSectionId | InvoiceSection | CostCenter | UnitOfMeasure | ResourceGroup | ReservationId | ReservationName | ProductOrderId | ProductOrderName | OfferId | IsAzureCreditEligible | Term | PublisherName | PlanName | ChargeType | Frequency | PublisherType | PayGPrice | PricingModel

received cols:

type | tags | billing_period_id | usage_start | usage_end | instance_name | instance_id | instance_location | currency | usage_quantity | pretax_cost | is_estimated | meter_id | subscription_guid | subscription_name | account_name | department_name | product | consumed_service | cost_center

Author: dejan-shuki
Assignees: RAY-316
Labels:

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

Milestone: -

@adwise3
Copy link

adwise3 commented Sep 9, 2021

@dejan-shuki I apologize for the confusion here. We have two types of usage details records, "legacy" and "modern". The kind of record is related to the agreement you have signed with Microsoft. Since you have an Enterprise Agreement, your usage details records will always come in the legacy format. Only customers who have signed a Microsoft Customer Agreement will receive usage details of kind "modern".

@adwise3
Copy link

adwise3 commented Oct 12, 2021

@dejan-shuki We are closing this issue now as it has been > 1 week since my last reply here. If you are still having issues you can reopen as needed.

@ShilpiGautam
Copy link

Closing this based on above comment from @adwise3 . @dejan-shuki we will be happy to help if above guidance does not work. Please free free to re-open the thread if more help is needed.

azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this issue Jun 2, 2022
Review request for Microsoft.ContainerService to add version 2022-05-02-preview (Azure#19262)

* Adds base for updating Microsoft.ContainerService from version preview/2022-04-02-preview to version 2022-05-02-preview

* Updates readme

* Updates API version in new specs and examples

* update readmes (Azure#19081)

* add blob csi driver into 0502preview (Azure#19095)

Co-authored-by: weizhichen <[email protected]>

* Add read only field for `currentOrchestratorVersion` (Azure#19107)

* currentOrchestratorVersion is read-only property

* Only apply change to 2022-05-02-preview

* Add keyVaultNetworkAccess and keyVaultResourceId into securityProfile.azureKeyVaultKms to support key vault with private link (Azure#19086)

* Add keyVaultNetworkAccess and keyVaultResourceId into securityProfile.azureKeyVaultKms to support key vault with private link

* fix

* Add KEDA configuration options (Azure#19153)

* 2022-05-02-preview defender updates (Azure#19172)

* 2022-05-02-preview defender updates

* update example

* Typo

* Update sample

* typo

* another typo

Co-authored-by: weizhi <[email protected]>
Co-authored-by: weizhichen <[email protected]>
Co-authored-by: Thalia Wang <[email protected]>
Co-authored-by: Bin Xia <[email protected]>
Co-authored-by: Jatin Sanghvi <[email protected]>
Co-authored-by: Or Parnes <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants