pnp / syntex-samples

SharePoint Premium samples
https://pnp.github.io/syntex-samples/
MIT License
34 stars 21 forks source link

Deploy-Template.ps1 checking for user license #31

Open pealmasa opened 2 months ago

pealmasa commented 2 months ago

When deploying templates there is an api request to check for syntex user license which is failing on tenants with pay as you go model. Workaround should be commenting the line:

$syntexLicense = Invoke-PnPSPRestMethod -Method Get -Url "/_api/machinelearning/MachineLearningEnabled/UserSyntexEnabled" -Raw

And add: $syntexLicense = $true

This line probably should be deprecated given the Syntex billing model now is pay as you go.