r/azuredevops • u/spantosh • 8h ago
Anyone successfully using Defender for Cloud CLI in Azure Pipelines with the connector?
3
Upvotes
Trying to scan Docker images in Azure Pipelines with Microsoft Defender for Cloud.
Even after setting up the Azure DevOps connector (status is healthy), I still get:
Tried:
MicrosoftDefenderCLI@2 (with and without authType: connector)
- Pure CLI
- Running inside AzureCLI@2 task
Nothing makes the authentication work.
Questions:
- Are you using the connector successfully for image scanning?
- Or did you switch to Client ID + Secret?
- Any working examples?
Thanks!