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

[FEATURE] Get-PnPSiteTemplate exports site information using SP Site template JSON schema #4639

Closed
DrEnnui opened this issue Dec 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@DrEnnui
Copy link

DrEnnui commented Dec 18, 2024

Since Add-SPOSiteScript requires the site settings in JSON, it would be nice if Get-PNPSiteTemplate could export the site information in JSON and in the correct schema for immediate use by Add-SPOSiteScript.

@DrEnnui DrEnnui added the enhancement New feature or request label Dec 18, 2024
@gautamdsheth
Copy link
Collaborator

hi @DrEnnui , those are two completely different cmdlets.
The Get-PNPSiteTemplate is to used to with Invoke-PnPSiteTemplate cmdlet.

If you want, to extract the site schema in JSON , you can use Get-PnPSiteScriptFromWeb , store the output of it and then use Add-PnPSiteScript with that output

@DrEnnui
Copy link
Author

DrEnnui commented Dec 31, 2024

Thanks! I'll try that out.

@DrEnnui DrEnnui closed this as completed Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants