Hi Expert,
I was trying to set one of our Powerapps APP as AppAsFeatured with this command
Set-AdminPowerAppAsFeatured -EnvironmentName [envid] -AppName [appid] but i'm getting the below exceptions.
Invoke-WebRequest : {"error":{"code":"ApplicationNotFound","message":"The application
'' could not be found in the tenant ''."}}
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.178\Microsoft.PowerApps
.RestClientModule.psm1:81
Tried searching thru forum and articles but i did not get information. Can someone share some insights how to resolve this things.
Thank you!
Validate if other cmdlets working with your account
Other option: Try running the script with Power Platform admin role?
====================================================
If this response helped you in any way, please give kudos by clicking the 'Thumbs Up'/'Like' button and/or marking it as an 'Accepted Solution'. This helps others by providing a quick way to identify likely solutions to their issues.
https://www.linkedin.com/in/devendravelegandla/
Hi @Velegandla,
Thank you for the info.
Already tried it but still getting the not found error. The Apps is accessible thru UI and i had system admin role. I'm not sure why i'm getting this 😞
*****
Invoke-WebRequest : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\Microsoft.PowerApps.Administration.PowerShell\2.0.178\Microsoft.PowerApps
.RestClientModule.psm1:86 char:25
+ ... $response = Invoke-WebRequest -Uri $Uri -Headers $Headers -Method $Me ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Thanks,
Hunk
Make sure you are connecting properly using the command below
Add-PowerAppsAccount
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
mmbr1606
275
Super User 2025 Season 1