Closed acksoft closed 3 years ago
I can confirm this to be an issue. We are currently looking into what is causing this.
We found the reason causing this issue and we most likely will do an updated release of PnP Sites Core and PnP PowerShell on Thursday.
This may be a "core" issue, but I am not sure so I am cross-posting
Expected behavior
Apply-PnPTenantTemplate should apply the template to the tenant
Actual behavior
After working without issue for several weeks, Apply-PnPTenant Template is now throwing an AAD Error:
Steps to reproduce behavior
The code reads in an empty tenant template, adds some team definitions, exports the .xml and then attempts to apply the generated xml to the tenant. The empty tenant template starts out like this:
When my processing is complete, the template in memory generates this seemingly correct output (references to our tenant have been obscured):
As I mentioned above, I have been using this same code and its output for weeks, but now I am receiving the error listed at the top of this message, which pretty clearly is a Azure AD problem. Perhaps something has changed in the way that the command is calling MS-Graph? In any case, please let me know if this is something that others are experiencing -- I've been applying this template in the same way for some time but now am getting this error I cannot explain.
Thanks.
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
3.24.2008.0
How did you install the PnP-PowerShell Cmdlets?