Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teams Export is failing #3369

Closed
NaveenRamakrish opened this issue Jun 8, 2023 · 12 comments
Closed

Teams Export is failing #3369

NaveenRamakrish opened this issue Jun 8, 2023 · 12 comments

Comments

@NaveenRamakrish
Copy link

Details of the scenario you tried and the problem that is occurring

Verbose logs showing the problem

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here
@NaveenRamakrish
Copy link
Author

Module Version: 1.23.517.1
image

@NikCharlebois
Copy link
Collaborator

We would need additional details here. Can you share the error in the log? Also, are you using Credentials to authenticate or a Service Principal? Thanks

@NaveenRamakrish
Copy link
Author

We would need additional details here. Can you share the error in the log? Also, are you using Credentials to authenticate or a Service Principal? Thanks

I am using credentials, Attaching the error logs
LogFile_09June2023.log

@NikCharlebois
Copy link
Collaborator

Looks like a licensing issue. Can you try the following and post the output?

$creds = Get-Credential -Message "Your credentials"
Connect-M365Tenant -Credential $creds -Workload SecurityComplianceCenter

Get-Command 'Get-AuditConfigurationPolicy'

Thanks

@NaveenRamakrish
Copy link
Author

$creds = Get-Credential -Message "Your credentials"
Connect-M365Tenant -Credential $creds -Workload SecurityComplianceCenter

Get-Command 'Get-AuditConfigurationPolicy'

Below is the result.

image

@NikCharlebois
Copy link
Collaborator

Definitively looks like a licensing issue. What roles/licenses is the user you are connecting with assigned? Thanks

@NaveenRamakrish
Copy link
Author

Definitively looks like a licensing issue. What roles/licenses is the user you are connecting with assigned? Thanks

It has Global Reader Permission, I am using this module for the last 5 months and everything was working fine. It stopped working after May 18th, 2023.

Can you let me know what has changed and what changes need to be done on our end?

-Naveen

@NikCharlebois
Copy link
Collaborator

Nothing has changed in the underlying module for the past 2 months. The error is not coming from M365DSC but from its underlying Exchange Online Management PowerShell module. The only other recommendation I would have would be for you to run Update-M365DSCModule and make sure you only have 1 instance of the ExchangeOnlineManagement module installed on the machine, or try the tool from another machine to see if you get different results.

@NaveenRamakrish
Copy link
Author

Nothing has changed in the underlying module for the past 2 months. The error is not coming from M365DSC but from its underlying Exchange Online Management PowerShell module. The only other recommendation I would have would be for you to run Update-M365DSCModule and make sure you only have 1 instance of the ExchangeOnlineManagement module installed on the machine, or try the tool from another machine to see if you get different results.

I understand, But the issue is only with Teams Services, the remaining services are getting exported without any issues. And in Teams Service I do see some components are getting exported without any issues and stop in the mid and not proceeding.

-Naveen

@NikCharlebois
Copy link
Collaborator

Got it, sorry I was looking at the wrong entry in the error log. Let's dive into the authentication stack here. Can you try the following two set of commands, each in separate PowerShell consoles and let me know if you get any errors?

#1

$creds = get-Credential
Connect-M365Tenant -Workload MicrosoftTeams -Credential $creds
Get-CsTeamsAppPermissionPolicy

#2

$creds = get-Credential
Connect-MicrosoftTeams -Credential $Creds
Get-CsTeamsAppPermissionPolicy

@NaveenRamakrish
Copy link
Author

```powershell
$creds = get-Credential
Connect-M365Tenant -Workload MicrosoftTeams -Credential $creds
Get-CsTeamsAppPermissionPolicy

#2

$creds = get-Credential
Connect-MicrosoftTeams -Credential $Creds
Get-CsTeamsAppPermissionPolicy

I didnt get any error, I was able to execute the command successfully. When I execute any export configuration command it gives the errors mentioned in the screenshot.

Export-M365DSCConfiguration -ConfigurationName SPOTenantSettings -Credential $Credential -FileName C:\temp\SPO_Test.ps1 -Verbose

image

@NaveenRamakrish
Copy link
Author

Please close this issue, Issue got resolved after reinstall the module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants