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

azuread_directory_role reports nil #1526

Open
cveld opened this issue Oct 12, 2024 · 2 comments
Open

azuread_directory_role reports nil #1526

cveld opened this issue Oct 12, 2024 · 2 comments

Comments

@cveld
Copy link

cveld commented Oct 12, 2024

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

Terraform (and AzureAD Provider) Version

terraform 1.9.5
azuread 3.0.2

Affected Resource(s)

  • azuread_directory_role

Terraform Configuration Files

resource "azuread_directory_role" "example" {
  display_name = "Application Developer"
}

Debug Output

https://gist.github.com/cveld/a49641198271a87ce18dc377c2f29680

Panic Output

Expected Behavior

The role provisioning should succeed.

Actual Behavior

The role provisioning resulted in an unexpected nil.

Steps to Reproduce

  1. terraform apply

Important Factoids

It seems when I run this for roles that have identities assigned to, it runs fine. E.g. for Global Administrator I don't get any errors.

References

philband added a commit to philband/terraform-provider-azuread that referenced this issue Nov 27, 2024
…with filter returns empty array instead of 404; fixes hashicorp#1526
@jomadu
Copy link

jomadu commented Dec 1, 2024

Me too. I'm also getting this issue with the following versions:

$ terraform -version
Terraform v1.6.6
on darwin_arm64
+ provider registry.terraform.io/hashicorp/azuread v3.0.2
+ provider registry.terraform.io/hashicorp/azurerm v3.105.0

@epomatti
Copy link

Got the error for the Security Administrator role, using both display_name and template_id arguments, for versions 3.0.0, 3.0.1, and 3.0.2.

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

No branches or pull requests

3 participants