PnP-Provisioning-Schema
PnP-Provisioning-Schema copied to clipboard
add DisableCommenting as a flag on the list instance
as far as I can tell the provisioning engine does not yet support setting the DisableCommenting setting on a List Instance?
Currently I call an Azure Function as part of the provisioning and use this kind of code as a workaround, but it would be lovely if the engine could handle it for me :-)
Connect-PnPOnline -Url $targetURL
$List = Get-PnPList $ListName
$List.DisableCommenting = $true
$List.Update()
Invoke-PnPQuery