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

Add support for clientApplications in azuread_conditional_access_policy #985

Closed
antonvdl opened this issue Jan 23, 2023 · 1 comment · Fixed by #1047
Closed

Add support for clientApplications in azuread_conditional_access_policy #985

antonvdl opened this issue Jan 23, 2023 · 1 comment · Fixed by #1047

Comments

@antonvdl
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritise this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritise the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Please add support for clientApplications in azuread_conditional_access_policy to support Managed Identity policies.
clientApplications is already available in v1 of the Microsoft Graph API

New or Affected Resource(s)

  • azuread_conditional_access_policy

Potential Terraform Configuration

resource "azuread_conditional_access_policy" "limit_app_to_ip" {
  display_name = "Limit application to IP"
  state        = "enabledForReportingButNotEnforced"

  conditions {
    client_app_types = ["all"]

    applications {
      included_applications = ["All"]
    }

    locations {
      included_locations = ["All"]
      excluded_locations = [azuread_named_location.trusted_location.id]
    }

    users {
      included_users = ["None"]
    }

    service principals {
      included_service_principals = [azuread_service_principal.service1.id]
      excluded_service_principals = []
    }
  }
  grant_controls {
    operator          = "OR"
    built_in_controls = ["block"]
  }
}

References

https://learn.microsoft.com/en-us/graph/api/resources/conditionalaccessconditionset?view=graph-rest-1.0

@benoit74
Copy link
Contributor

I'm working on it

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants