Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(azuread_service_principals): Support for argument filter #1577

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tiwood
Copy link
Contributor

@tiwood tiwood commented Nov 29, 2024

This adds support for filtering service principals by using a OData filter.

data "azuread_service_principals" "example" {
  filter = "startswith(displayName, 'myPrincipal')"
}
data "azuread_service_principals" "example" {
  filter = "displayName eq 'foo'"
}

Copy link
Member

@jackofallops jackofallops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tiwood - Thanks for this. Just one comment to take a look at which I think will cause problems for cases that don't specify the new property if you can take a look?

Thanks!

Description: "Use a OData filter to search for service principals.",
Type: pluginsdk.TypeString,
Optional: true,
Default: false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will need to be removed as this is a string value, not a bool?

Suggested change
Default: false,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants