Skip to content

Adding billing-data common type.#2630

Open
wilcobmsft wants to merge 39 commits intomainfrom
wilcob/billingData
Open

Adding billing-data common type.#2630
wilcobmsft wants to merge 39 commits intomainfrom
wilcob/billingData

Conversation

@wilcobmsft
Copy link
Copy Markdown
Member

@wilcobmsft wilcobmsft commented May 6, 2025

Adding a new billing-data common type. This provides standardization of billing properties in e.g. prepaid resource types. Examples of resource types expected to use this schema include:

  • Microsoft.BillingBenefits/*
  • Microsoft.SaaS/resources
  • Microsoft.SaaSHub/cloudServices
  • Microsoft.EnterpriseSupport/enterpriseSupports
  • Oracle.Databases/accounts
  • ...

This list will grow over time. RP Platform is enabling an integrated "(prepaid/commitment) billing" building block which utilizes this schema, meaning any RP which uses this building block is expected to use this schema.

…ling properties for Resource Providers with prepaid resource types.
@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented May 6, 2025

All changed packages have been documented.

  • @azure-tools/typespec-azure-resource-manager
Show changes

@azure-tools/typespec-azure-resource-manager - feature ✏️

Adding a new billing-data common type. This provides standardization of billing properties in e.g. prepaid resource types.

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented May 6, 2025

You can try these changes here

🛝 Playground 🌐 Website

@wilcobmsft wilcobmsft force-pushed the wilcob/billingData branch from 0b9a483 to f8cedcd Compare May 7, 2025 20:30
Copy link
Copy Markdown
Member

@markcowl markcowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we provide some documentation on how to use this (either a sample using this data, or a section in the ARM getting started, or, preferrably, both).

Also, is this only related to the namespaces mentioned, or is it likely more RPs will want to use this feature for general billing needs?

@wilcobmsft
Copy link
Copy Markdown
Member Author

Can we provide some documentation on how to use this (either a sample using this data, or a section in the ARM getting started, or, preferrably, both).

Also, is this only related to the namespaces mentioned, or is it likely more RPs will want to use this feature for general billing needs?

Updated how-to with an example. Once we land the RP Platform building block that utilizes this pattern also, we will include an example there as well.

@microsoft-github-policy-service microsoft-github-policy-service bot added the lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library label Feb 23, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@azure-tools/typespec-azure-resource-manager@2630

commit: e169a9c

@wilcobmsft wilcobmsft marked this pull request as ready for review March 16, 2026 16:54
@microsoft-github-policy-service microsoft-github-policy-service bot added the meta:website TypeSpec.io updates label Mar 16, 2026
@wilcobmsft wilcobmsft requested a review from markcowl March 24, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library meta:website TypeSpec.io updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants