top of page

Disable Copilot for Makers in Power Apps


Copilot for Makers in Power Apps is going generally available in the Wave 1 2024 update. 🥳 But the updates have already started to roll out, nearly 3 weeks in advance in some regions 😱


Not all organisations are ready for Copilot, issues and questions around the use of Generative AI in Copilot is rife, especially in large organisations. While we answer the questions and educate people on the use of Copilot and Generative AI, we may need to turn off some of the features of Copilot. The features you can turn off are:


  • Build Apps through Conversation

  • Excel to Table

  • AI Builder GPT


This will change this:


To this:



The first place you would look would be in the settings area of the Power Platform Admin Centre and you find a setting called "Copilot in Power Apps".



Turning this off does not actually turn it off in the maker portal, because this setting is not correctly named. It turns it off while it was in preview, but now that it is generally available, this setting is no longer valid. This is in part due to the feature now being part of the platform. So this article with information telling you to contact support is out of date.


We need to PowerShell to disable this. Firstly open PowerShell as an administrator. If you haven't already, download and install the Microsoft.PowerApps.Administration.PowerShell and Microsoft.PowerApps.PowerShell Modules using the below code:


Install-Module -Name Microsoft.PowerApps.Administration.PowerShell
Install-Module -Name Microsoft.PowerApps.PowerShell -AllowClobber

This code and some of the following steps are found on the Microsoft Learn Documentation here.


Once this is installed, login either via:


Add-PowerAppsAccount

or

Add-PowerAppsAccount -Endpoint "prod"

You will get prompted to sign in via a sign in window.


Next, run the below script:


param(
    [parameter(Mandatory, HelpMessage="Enter a boolean value (true|false)")]
    [ValidateSet("false", "true")]
    $disableCopilot
)
$value = [System.Convert]::ToBoolean($disableCopilot)
$settingName = "PowerApps.disableCopilot"
try {
    $settings = Get-TenantSettings
    "Current value for $($settingName) is: $($settings.powerPlatform.powerApps.disableCopilot)"
    # update the setting
    "Now setting $($settingName) to be: $($value) ..."
    $settings.powerPlatform.powerApps.disableCopilot = $value
    Set-TenantSettings -RequestBody $settings
}
catch {
    "Failed to set $($settingName)"
    $_.Exception
    return
}
# see the updated setting
$updatedSettings = Get-TenantSettings
""
"The value for $($settingName) is now: $($updatedSettings.powerPlatform.powerApps.disableCopilot)"
""

You will be prompted to input a value for disableCopilot




Input true to disable it. You can also run the same script later to re-enable it and input false.

true = disable Copilot

false = enable Copilot




This now gives you a bit of time for education ahead of running Copilot for Power Apps for everyone.


Ciao for now!

MCJ

Comments


bottom of page