terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
Terraform Refresh State of Groups returns could not check for existing group(s)
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
1.9.8
AzureRM Provider Version
4.6.0
Affected Resource(s)/Data Source(s)
azuread_group
Terraform Configuration Files
resource "azuread_group" "aad-role" {
for_each = toset( ["admin", "analyst", "delivery", "developer", "etl", "read-only", "solutions", "security-reader"] )
display_name = format("%s-%s-%s", var.cm-region, "databricks", each.value)
security_enabled = "true"
prevent_duplicate_names = true
}
### Debug Output/Panic Output
```shell
https://gist.github.com/DevopsMercenary/b93ff28402ea15ad1030ec59e0721e66
Expected Behaviour
Updated the names of my groups
Actual Behaviour
│ Error: could not check for existing group(s): unable to list Groups with filter "displayName eq 'read-only'": the context used must have a deadline attached for polling purposes, but got no deadline
│
│ with azuread_group.aad-role["read-only"],
│ on rbac.tf line 20, in resource "azuread_group" "aad-role":
│ 20: resource "azuread_group" "aad-role" {
│
╵
╷
│ Error: could not check for existing group(s): unable to list Groups with filter "displayName eq 'delivery'": the context used must have a deadline attached for polling purposes, but got no deadline
│
│ with azuread_group.aad-role["delivery"],
│ on rbac.tf line 20, in resource "azuread_group" "aad-role":
│ 20: resource "azuread_group" "aad-role" {
│
╵
╷
│ Error: could not check for existing group(s): unable to list Groups with filter "displayName eq 'developer'": the context used must have a deadline attached for polling purposes, but got no deadline
│
│ with azuread_group.aad-role["developer"],
│ on rbac.tf line 20, in resource "azuread_group" "aad-role":
│ 20: resource "azuread_group" "aad-role" {
│
╵
Steps to Reproduce
No response
Important Factoids
No response
References
No response
@DevopsMercenary , thank you for filing this issue. May I suggest this issue could be filed to the Terraform Azure AD Provider repo given the reported azuread_group resource belongs to that repo?
Sorry, my mistake
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.