You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Response body which Terraform AzureAD receives from Microsoft Graph API
{
"error": {
"code": "BadRequest",
"message": "1007: Incoming ConditionalAccessPolicy object is null or does not match the schema of ConditionalAccessPolicy type. For examples, please see API documentation at https://docs.microsoft.com/en-us/graph/api/conditionalaccessroot-post-policies?view=graph-rest-1.0.",
"innerError": {
"date": "2024-10-29T16:10:00",
"request-id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa",
"client-request-id": "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
}
}
}
Panic Output
Expected Behavior
Conditional Access Policy is created
Actual Behavior
Conditional Access Policy results in Microsoft Graph API returning HTTP 400 Bad Request
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered:
sdx-jkataja
changed the title
azuread_conditional_access_policy resource with external_tenants results in 400 Bad Request from Graph API
azuread_conditional_access_policy resource with external_tenants is not accepted by Graph API
Oct 30, 2024
Community Note
Terraform (and AzureAD Provider) Version
Terraform version: 1.9.5
Terraform Azure AD provider version 3.0.2
Affected Resource(s)
azuread_conditional_access_policy
Terraform Configuration Files
My intention is to create a Conditional Access Policy that excludes an external tenant
Debug Output
Part of request body which Terraform AzureAD sends to Microsoft Graph API
Response body which Terraform AzureAD receives from Microsoft Graph API
Panic Output
Expected Behavior
Conditional Access Policy is created
Actual Behavior
Conditional Access Policy results in Microsoft Graph API returning HTTP 400 Bad Request
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: