Azure Functions Returning 401 Error in Prisma Cloud Vulnerability Scans
337
Created On 01/21/25 00:55 AM - Last Modified 08/14/25 15:46 PM
Symptom
Azure Windows functions show the following error in the Prisma Cloud Console:
ERRO 2025-01-21T00:26:02.115 scanner.go:1393 Failed to download function: failed to download [function_name] function: failed to download file, status code 401
Environment
- Prisma Cloud Compute SaaS version
- Prisma Cloud Compute Self-hosted version
- Azure Serverless Scanning - Windows Functions
Cause
Prisma Cloud uses Basic Authentication to authenticate to the function in question, in order to download and scan the function files.
Resolution
- Set "SCM Basic Auth Publishing Credentials" to "On" within [Your Function] > Settings > Configuration > General Settings
- Navigate to Monitor > Vulnerabilities > Functions in the Prisma Cloud Console and trigger a new scan.
- Wait for the scan to finish and refresh the results.
Additional Information
Please see the following documentation for further information regarding scans for serverless functions: