Giter VIP home page Giter VIP logo

Import of Teams Config from tenant A to tenant B fails: PowerShell DSC resource MSFT_TeamsUpdateManagementPolicy failed to execute Test-TargetResource functionality with error message: One or more errors occurred. about microsoft365dsc HOT 2 OPEN

StephenieVee avatar StephenieVee commented on June 5, 2024
Import of Teams Config from tenant A to tenant B fails: PowerShell DSC resource MSFT_TeamsUpdateManagementPolicy failed to execute Test-TargetResource functionality with error message: One or more errors occurred.

from microsoft365dsc.

Comments (2)

StephenieVee avatar StephenieVee commented on June 5, 2024

Today tried from another different machine. same outcome.
Where is that log that elaborates on this:
"PowerShell DSC resource MSFT_TeamsUpdateManagementPolicy failed to execute Test-TargetResource functionality with error message: One or more errors occurred."

from microsoft365dsc.

StephenieVee avatar StephenieVee commented on June 5, 2024

In #2308 andikrueger recommended:
Did you setup your tenant Graph PowerShell and PnPManagementShell accrodingly?
see> https://microsoft365dsc.com/user-guide/get-started/authentication-and-permissions/#microsoft-graph-permissions
Could you check the event logs on your computer, if there are any more meaningful error messages available?

I am trying to understand the "authentication and permissions" part of the documentation.
I use global admin for the whole thing. very plain. Do I have to setup anything else?
The Documentation does not inform what is needed if one uses global admin.
Do I still need to set up Graph permissions?
Anyway, I checked Graph. We do not have Graph Powershell in Enterprise Applications, this is not even an option to install.
But we have Microsoft Graph Command line tools. Do I need Graph for the Teams configuration?
I can login to Teams with Connect-MicrosoftTeams from powershell without any issue.

Get-CsTeamsUpdateManagementPolicy yields a configuration

I did a Register-PnPManagementShellAccess to our tenant with my admin.
But error persists. when I execute the start-dscconfiguration.

When I enter Get-M365DSCCompiledPermissionList -ResourceNameList @('AADUser', 'AADApplication') -PermissionsType 'Application'
I get:
Get-M365DSCCompiledPermissionList : A parameter cannot be found that matches parameter name 'PermissionsType'.

THIS: "Since Desired State Configuration is an unattended process, the use of Multi Factor Authentication for user credentials is not supported by Microsoft365DSC."
Ok I removed the need of MFA for my admin, but still, error persists.

If I do it manually:
set-csTeamsUpdateManagementPolicy -identity Global -AllowPublicPreview disabled
This works without any problem.

I clearly need help.
Thank you so much.

from microsoft365dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.