Step 2: Associate Subscription with App Registration for Billing
Ensure that your subscription is associated with the app registration for billing purposes.
If the app registration is not linked with a valid billable subscription, Microsoft Teams Export API access will fail with the following error:
Failed to process team: <Team Name>. To call this API, the app must be associated with an Azure subscription, see https://aka.ms/teams-api-payment-requirements for details.. The remote server returned an error: (402) Payment Required