Important Announcement: Migration of Azure CSP Direct Cloud Account Cost APIs

Important Announcement: Migration of Azure CSP Direct Cloud Account Cost APIs

Overview
Azure is transitioning the CSP cost APIs to a new system. Consequently, we are updating our processes to retrieve cost data for CSP direct cloud accounts using the new APIs.
Reference Link to API: Billed and unbilled daily rated usage reconciliation API v2 (GA) - Partner app developer | Microsoft Learn
Applies to: Partner Center (Excludes Azure Government and Azure China 21Vianet) – CSP direct cloud accounts.
Applicable from: 21st January 2025

What This Means For You
  1. Immediate Actions:
    1. Navigate to the Microsoft Entra home page and select the application created for onboarding CoreStack under the App registrations section.

    2. Grant the necessary permissions by selecting "Add a permission" under the API permissions section.

    3. Select the Microsoft Graph and ensure permission type is set to "Application" and choose the "PartnerBilling.Read.All" in scope.

By completing these steps, you will ensure that your application has the required access to partner billing data.

How it works
  1. Submit the API request to get unbilled/billed daily rated usage line items using the POST method.
  2. Check the request status to fetch the root directory and SAS token.
  3. Access the Azure blobs with SAS token to retrieve unbilled/billed daily rated usage line items.
Reference Link to Old API: Get invoice unbilled commercial consumption line items - Partner app developer | Microsoft Learn – This API will be deprecated by 21st January 2025.

Advantages
  1. These APIs provide you with a shared access signature (SAS) token to access all attributes. This token enhances security by granting limited-time access and offers flexibility in managing data access permissions.
  2. By adopting our optimized APIs, you can achieve faster results with less effort, simplify your data access, and improve overall efficiency.
Limitations: 
  1. The current month's cost will not include reservation costs. These costs will only be displayed after Microsoft issues the invoice.