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
The issue is with the behavior of the attributes within the activation_rules block. Lets take the required_conditional_access_authentication_context attribute as an example. This should be the reference to an Entra ID authentication context (e.g. c1 up to c99). If I change this value from c1 to null I would expect that this attribute would be omitted.
Actual Behavior
Nothing happens when setting the attributes to null. It keeps the current value, in my testing with required_conditional_access_authentication_context this was an authentication context (c1).
Steps to Reproduce
Set the required_conditional_access_authentication_context within activation_rules to c1
Run terraform plan and terraform apply
Set the required_conditional_access_authentication_context to null
Run terraform plan and you will see that the required_conditional_access_authentication_context will remain unchanged.
Important Factoids
All the terraform resources are put in a module and we are invoking the module. During my testing I have made the changes to both the variables passed to the module which are then used as attribute values as well as directly changing the values of the attributes in the module.
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
Terraform v1.9.2
hashicorp/azuread 3.0.2
Terraform Configuration Files
Debug Output
Link to Gist
Expected Behavior
The issue is with the behavior of the attributes within the
activation_rules
block. Lets take therequired_conditional_access_authentication_context
attribute as an example. This should be the reference to an Entra ID authentication context (e.g.c1
up toc99
). If I change this value fromc1
tonull
I would expect that this attribute would be omitted.Actual Behavior
Nothing happens when setting the attributes to
null
. It keeps the current value, in my testing withrequired_conditional_access_authentication_context
this was an authentication context (c1
).Steps to Reproduce
required_conditional_access_authentication_context
withinactivation_rules
toc1
terraform plan
andterraform apply
required_conditional_access_authentication_context
tonull
terraform plan
and you will see that therequired_conditional_access_authentication_context
will remain unchanged.Important Factoids
All the terraform resources are put in a module and we are invoking the module. During my testing I have made the changes to both the variables passed to the module which are then used as attribute values as well as directly changing the values of the attributes in the module.
References
The text was updated successfully, but these errors were encountered: