Edited: added screenshot of errors from build summary page.
I'm having issues with the task running in my environment. I've got Bicep files that I would like to have scanned, but it seems that the IaC category scanners all fail in various modes.
In my pipeline I have the following:
- task: MicrosoftSecurityDevOps@1
displayName: "Run Microsoft Security Scan"
inputs:
policy: 'azuredevops'
categories: 'IaC'
publish: false
artifactName: 'CodeAnalysisLogs'
It appears that Microsoft Defender for Cloud picks up the runs, unless I don't understand the dashboard in Azure fully. Not sure what is failing within the task. I believe this is running within a container, which is not publicly available like the task code is on GitHub. Otherwise, I would dig in and see what is going on with it.
See screenshots below.
Microsoft Defender for Cloud Dashboard:

Checkov Results:

IaC File Scanner Results:

Template Analyzer Results:

Final Results:

Azure DevOps Build Summary:

Raw Task Log:
rawlog.txt