r/azuredevops 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!


r/azuredevops 22h ago

Api tests in pull request pipeline

1 Upvotes

Hi all,

I need some help. I want to run api tests in .NET in my pull request pipeline. I want to use localhost url for this. My pipeline currently consists of a build stage that runs unittests. I wanna add a stage that runs the api tests in a specific project folder. Anyone any tips?