Azure Functions Returning 401 Error in Prisma Cloud Vulnerability Scans

Azure Functions Returning 401 Error in Prisma Cloud Vulnerability Scans

533
Created On 01/21/25 00:55 AM - Last Modified 01/13/26 20:05 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

Screenshot 2025-01-21 at 08.07.40.png



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 to download and scan the function files.



Resolution


  • Set "SCM Basic Auth Publishing Credentials" to "On" within [Your Function] > Settings > Configuration > General Settings

Screenshot 2025-01-21 at 08.10.01.png

  • 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:

https://docs.prismacloud.io/en/enterprise-edition/content-collections/runtime-security/vulnerability-management/scan-serverless-functions



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000sdEUCAY&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail