Please suggest a way to export the usage details of Microsoft sponsored subscriptions as there are no API;s to achieve this. WE have multiple subscriptions with multiple user access as well. Need to handle authentication safely without MFA as we cant keep

MahalingamAnusuya-6050 0 Reputation points
2025-10-30T11:11:14.7833333+00:00

Please suggest a way to export the usage details of Microsoft sponsored subscriptions as there are no API;s to achieve this. WE have multiple subscriptions with multiple user access as well. Need to handle authentication safely without MFA as we cant keep authenticating for multiple users for multiple logins via MFA. Checked using Power automate Desktop using App passwords created for particular user but it didn't work as it works only legacy UI and not for modern UI it seems. I am looking for other options to achieve this. Can someone help me on this. It would be very grateful.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Naveena Patlolla 7,505 Reputation points Microsoft External Staff Moderator
    2025-10-30T16:38:44.8333333+00:00

    Hi MahalingamAnusuya-6050

    We understand that you’d like to automatically export usage and cost details for your Microsoft Sponsored subscriptions, but you’re facing challenges because APIs aren’t available for sponsorship offers, and MFA makes it difficult to automate access across multiple subscriptions and users.

    Here’s the recommended and secure approach:

    1. MFA Microsoft Sponsored Subscriptions: Please note that some sponsorship offers may have limited API support. If you find that the export feature is unavailable for your specific subscription, while using a service principal avoids MFA, it is crucial to protect its credentials (especially the client secret) just as you would any other important password. After creating SPN provide RBAC permission on Subscription and Entra.  https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-service-principal-portal
    2. Assign Minimal Permissions
      • We’ll give this service principal Cost Management Reader access on each subscription.
      • This allows it to read usage and cost data only — it cannot modify resources.
    3. Set Up Cost Management Exports
      • Within each subscription, we’ll configure Cost Management Exports to automatically send detailed cost and usage data (CSV files) to a designated Azure Storage account daily or monthly.
      • Once configured, these exports run automatically — no sign-ins or MFA are needed.
    4. Centralize and Access the Data
      • All exported files can be stored in a central storage account for easy access and reporting (for example, using Excel, Power BI, or automation scripts).
    5. Note on Microsoft Sponsored Subscriptions
      • Some sponsorship offers may have limited API support.
      • If exports are unavailable, cost data can still be viewed or downloaded directly from the Azure Sponsorship Portal, or Microsoft Support can help enable programmatic access.

    Please let me know if you face any challenge here, I can help you to resolve this issue further

    Provide your valuable Comments.

    Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.