Manage copilot provisioning

This article explains how to manage the provisioning of copilot features in Microsoft Power Pages. Specifically, it provides instructions that show how service administrators can use PowerShell scripts to disable the default copilot provisioning. By following the steps, admins can ensure that copilots are created only when they are wanted.

Service admins who are members of any of the following Microsoft Entra roles can use a PowerShell script to change the tenant-level enableChatbotOnWebsiteCreation setting:

The default value of the tenant-level setting is null. This value is equivalent to a value of true and creates a bot during site creation. An admin can set the value to true or false.

Get the current value of the setting

To get the current value of the tenant-level setting, use the Get-TenantSettings command. Here is an example:

$myTenantSettings = Get-TenantSettings
$myTenantSettings.powerPlatform.powerPages

Note

The Get-TenantSettings command doesn't list tenant settings where the value is null. Because the default value of the tenant-level enableChatbotOnWebsiteCreation setting is null, this setting doesn't appear in the list the first time that you run the script. However, after you set its value to true or false, the setting appears in the list.

Set the value

To set a value for enableChatbotOnWebsiteCreation, use the Set-TenantSettings command. The following example sets the value to false:

$requestBody = @{
    powerPlatform = @{
        powerPages = @{
            enableChatbotOnWebsiteCreation = $false
        }
    }
}
Set-TenantSettings -RequestBody $requestBody