SOLVED

Unable to run Apply-PnPProvisioningTemplate command

%3CLINGO-SUB%20id%3D%22lingo-sub-274433%22%20slang%3D%22en-US%22%3EUnable%20to%20run%20Apply-PnPProvisioningTemplate%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-274433%22%20slang%3D%22en-US%22%3E%3CP%3EA%26nbsp%3Bsite%20collection%20has%20a%20site%20provisioning%20solution%20which%20creates%20new%20sites%20and%20applies%20a%20template%20to%20the%20new%20sites%20using%20Apply-PnPProvisioningTemplate.%20When%20trying%20to%20run%20this%20command%20now%2C%20we%20get%20the%20following%20error%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F57576i803A99201A127FEC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22t1.png%22%20title%3D%22t1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAt%20first%2C%20we%20were%20thinking%20that%20there%20might%20have%20been%20an%20error%20in%20the%20template%20file.%20So%20we%20decided%20to%20try%20retrieve%20a%20new%20template%20file%2C%20but%20then%20this%20command%20failed%20also%20with%20the%20exact%20same%20error.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-275133%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20run%20Apply-PnPProvisioningTemplate%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275133%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20seems%20that%20a%20service%20is%20down%20in%20your%20tennant%20if%20it%20still%20exists%20create%20a%20tickets%20at%20Microsoft.%3C%2FP%3E%0A%3CP%3ERegarding%20your%20question%20about%20Powershell%20functions%20they%20changed%20to%20function%202.0%20and%20the%20powershell%20is%20gone.%20I%20would%20user%20uservoice%20to%20ask%20for%20powershell%20in%20v2.0%3C%2FP%3E%0A%3CP%3Ethis%20blog%20from%20Chris%20will%20help%20you%20%3CA%20href%3D%22https%3A%2F%2Fwww.sharepointnutsandbolts.com%2F2018%2F10%2FAzure-Functions-Visual-Studio-Code-CLI.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.sharepointnutsandbolts.com%2F2018%2F10%2FAzure-Functions-Visual-Studio-Code-CLI.html%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-275088%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20run%20Apply-PnPProvisioningTemplate%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275088%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Paul%2C%3C%2FP%3E%3CP%3EThanks%20for%20your%20response.%3C%2FP%3E%3CP%3EIt%20is%20a%20SharePoint%20Online%20issue.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-275084%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20run%20Apply-PnPProvisioningTemplate%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-275084%22%20slang%3D%22en-US%22%3E%3CP%3EAdditional%20info%20for%20the%20error.%3C%2FP%3E%3CP%3E%3CSPAN%3EThe%20opportunity%20to%20create%20Function%20Apps%20written%20with%20PowerShell%20is%20now%20gone%20after%20being%20an%20%22Experimental%20language%22%20for%20some%20time%20(in%201.0).%20Will%20we%20be%20able%20to%20create%20new%20Function%20Apps%20(2.0)%20written%20in%20PowerShell%20in%20the%20future%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWe%20are%20suddenly%20experiencing%20more%20error%20messages%20in%20our%20previous%20Function%20Apps%20(version%201.0%26nbsp%3Bwritten%20with%20PowerShell)%2C%20could%20this%20be%20due%20to%20the%26nbsp%3Bremoval%20of%20PowerShell%20in%26nbsp%3BFunction%20Apps%20version%202.0%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-274717%22%20slang%3D%22en-US%22%3ERe%3A%20Unable%20to%20run%20Apply-PnPProvisioningTemplate%20command%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-274717%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20seems%20something%20is%20happening%20with%20the%20uRL%20this%20is%20a%20Onpremm%20issue%20or%20not%3F%20do%20you%20use%20the%20latest%20version%3F%20did%20you%20try%20other%20versions%20as%20well%3F%3C%2FP%3E%0A%3CP%3Eif%20it%20stays%20a%20issue%20please%20at%20a%20error%20in%20Github%20repo%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

A site collection has a site provisioning solution which creates new sites and applies a template to the new sites using Apply-PnPProvisioningTemplate. When trying to run this command now, we get the following error: 

t1.png

At first, we were thinking that there might have been an error in the template file. So we decided to try retrieve a new template file, but then this command failed also with the exact same error.

4 Replies
Highlighted

It seems something is happening with the uRL this is a Onpremm issue or not? do you use the latest version? did you try other versions as well?

if it stays a issue please at a error in Github repo

Highlighted
Best Response confirmed by Vinita VERMA (Occasional Contributor)
Solution

Additional info for the error.

The opportunity to create Function Apps written with PowerShell is now gone after being an "Experimental language" for some time (in 1.0). Will we be able to create new Function Apps (2.0) written in PowerShell in the future?

We are suddenly experiencing more error messages in our previous Function Apps (version 1.0 written with PowerShell), could this be due to the removal of PowerShell in Function Apps version 2.0?

Highlighted

Hello Paul,

Thanks for your response.

It is a SharePoint Online issue.

Highlighted

This seems that a service is down in your tennant if it still exists create a tickets at Microsoft.

Regarding your question about Powershell functions they changed to function 2.0 and the powershell is gone. I would user uservoice to ask for powershell in v2.0

this blog from Chris will help you https://www.sharepointnutsandbolts.com/2018/10/Azure-Functions-Visual-Studio-Code-CLI.html