Skip to content

🪲 MT.1071: At least one Conditional Access policy explicitly includes Azure DevOps fails when App ID is not available #1826

@JonesMikael

Description

@JonesMikael

Pre-submission checklist

  • I can reproduce this issue using the latest released version of Maester.
  • I have searched the existing issues and did not find a similar report.

Describe the bug

I understand and confirm that this is a valid test to perform and works for most tenants:
MT.1071: At least one Conditional Access policy explicitly includes Azure DevOps

However, we have a few smaller tenants where the App ID 499b84ac-1321-427f-aa17-267ca6975798 does not exist and no "Azure DevOps" or "Microsoft Visual Studio Team Services" exist in the tenant at all. I suspect this is because Azure DevOps was never activated in the tenant in the first place. Therefore this test fails and there is no way to get it to Pass.

Steps to reproduce

  1. Find a tenant without "Azure DevOps" or "Microsoft Visual Studio Team Services" with App ID 499b84ac-1321-427f-aa17-267ca6975798
  2. Run the test and verify it 'Fail'
  3. No way to get it to pass since the App ID does not exist and therefore can't be excluded in the CA policy

Expected behavior

Only run the test IF 499b84ac-1321-427f-aa17-267ca6975798 exist. If this App ID does not exist in the tenant = Skip the test

Debug output


Module version

2.1.0

Environment data

Version
7.4.16

Edition
Core

Platform
Unix (running i Azure DevOps)

Screenshots

No response

Additional context

No response

Metadata

Metadata

Labels

bugSomething isn't workingmaester-testRelated to a Maester test

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions