Open donky-bison opened 1 year ago
Did you assign any permission role to the application? see: https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-application-authentication#setup-application-based-authentication
and for the roles:
https://learn.microsoft.com/en-us/microsoftteams/using-admin-roles#teams-roles-and-capabilities
Hello @andikrueger I am also getting the similar error while exporting the configuration Export-M365DSCConfiguration -Components @("TeamsVoiceRoute", "TeamsVoiceRoutingPolicy", "TeamsWorkloadPolicy") -ApplicationId 0aefaf9c-a720-4144-9baa-5e55121af831 -TenantId xx.xxx.xx -CertificateThumbprint.
The Permission Roles which has been assigned to the Azure AD App are as below :
Organization.Read.All User.Read.All Group.Read.All AppCatalog.Read.All TeamSettings.Read.All Channel.ReadBasic.All ChannelSettings.Read.All ChannelMember.Read.All
However regarding the role i have assigned "Global Reader" & "Security Reader" to the Azure AD App.
Description of the issue
Export-M365DSCConfiguration -Components @("TeamsVoiceRoute", "TeamsVoiceRoutingPolicy", "TeamsWorkloadPolicy") -ApplicationId 0aefaf9c-a720-4144-9baa-5e55121af831 -TenantId xx.xxx.xx -CertificateThumbprint xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Exporting Microsoft 365 configuration for Components: TeamsVoiceRoute, TeamsVoiceRoutingPolicy, TeamsWorkloadPolicy
Authentication methods specified:
Connecting to {MicrosoftTeams}...✅ [1/3] Extracting [TeamsVoiceRoute] using {CertificateThumbprint}...Correlation id for this request : 9bbac2c9-a72a-4f07-88d8-48d228ef4770 ❌ Error Log created at {file://C:/Users/urs.egli/46352-M365DSC-ErrorLog.log} [2/3] Extracting [TeamsVoiceRoutingPolicy] using {CertificateThumbprint}...Correlation id for this request : 3fc46d11-3a89-45a4-a875-4b8ea01936d4 ❌ Error Log created at {file://C:/Users/urs.egli/46352-M365DSC-ErrorLog.log} [3/3] Extracting [TeamsWorkloadPolicy] using {CertificateThumbprint}...Correlation id for this request : 7127eb42-a3f4-409b-8c33-8bcb11e1fc50 ❌ Error Log created at {file://C:/Users/urs.egli/46352-M365DSC-ErrorLog.log} ⌛ Export took {6 seconds}
Destination Path: ./
Microsoft 365 DSC Version
'1.23.1101.1'
Which workloads are affected
Teams
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version