Create an Azure App Registration for Create-TeamsCallAccountingReport script

The below is from Lee Ford’s Get-TeamsPSTNCallRecords script on GitHub. I have used his connection method in my Teams Call Accounting Script which I have also published on GitHub here.

Create an Azure App Registration

Before you can use the tool, you will need to create an Azure AD application with the relevant Graph API permissions:

  1. Login to Azure portal
  2. Go to Azure Active Directory > App registrations and select New registration

  3. Give the app an arbitrary Name and leave the rest as-is and click Register

  4. Take a copy of the Application ID and Directory ID from the Overview page

  5. Go to Certificates and secrets and create a New client secret. Again, take a copy of this

  6. Next, go to API permissions and Add a permission. Select Microsoft Graph and choose Application permissions. Search for CallRecords.Read.All and select Add permissions

  7. Finally, you need to Grant admin consent for (tenant name)

With the Application IDDirectory ID and Secret to hand, place these in the relevant variables in the .ps1 script:

Andrew Morpeth
Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Andrew Morpeth
Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Latest Articles