Open SuryenduB opened 11 months ago
Thanks for reporting @SuryenduB. There are some challenges around importing/managing CAPs created outside of Terraform although we aim to resolve these were possible. Would you be able to post the affected CAP in full? You can retrieve it using the MS Graph API with the URI https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies/{id}
For the authentication strength policy, it looks like you have specified an invalid policy ID. Like with CAPs, you can list these using MS Graph using the URI https://graph.microsoft.com/v1.0/policies/authenticationStrengthPolicies
.
Community Note
Terraform (and AzureAD Provider) Version
terraform -v Terraform v1.5.5 on windows_386
Your version of Terraform is out of date! The latest version is 1.6.3. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
azuread_conditional_access_policy
azuread_authentication_strength_policy
Terraform Configuration Files
Debug Output
https://gist.github.com/SuryenduB/3f36659227e599c54fb1ef1c3eeadcc8
Panic Output
Expected Behavior
Conditional Access Policy and Authentication Strength Policy should have been imported
Actual Behavior
Steps to Reproduce
1.
terraform plan -generate-config-out azuread_conditional_access_policy.tf
terraform apply
Important Factoids
References
0000