pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

Get-PnPTenantTemplate: Fixing Configuration parameter not being optional and throwing exception #2873

Closed heinrich-ulbricht closed 3 years ago

heinrich-ulbricht commented 4 years ago

Type

Related Issues?

Fixes at least some of the "Object reference not set to an instance of the object" errors in #2587 (but not the original 403 error).

What is in this Pull Request ?

Fixing Configuration parameter not being optional by inititializing it with reasonable default value that is not just empty, but contains the given SiteUrl. This fixes the surprising and confusing exception one gets when omitting the parameter. See #2587 for samples of that.

erwinvanhunen commented 3 years ago

Thank you!