While exporting a managed solution from the Power Apps maker portal , the browser blocked the download with a Virus detected warning.

Here is what caused it in my case, and the PAC CLI workaround that got the export through.

Possible Reason:

  • Solution exports that include a code app package the Vite-built JS bundle inside the zip.
  • Edge SmartScreen flags minified JavaScript inside a zip as suspicious and blocks the download.
  • The file is not actually infected.

The workaround: export via PAC CLI

The PAC CLI writes the solution zip directly to disk and never goes through the browser download scanner.

  • Authenticate PAC CLI to the target environment (skip if already authenticated):
pac auth create --environment <environment-id-or-url>
pac solution export --path .\HTMLFileApp_1_0_0_4_managed.zip --name HTMLFileApp --managed

🙂

Leave a Reply

Discover more from Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

Subscribe now to keep reading and get access to the full archive.

Continue reading