Skip to content

Retry failed data source / Error: Could not retrieve group owners for group with object ID / connect: network is unreachable #1849

@langnercl-citti

Description

@langnercl-citti

Hi together,

I have a question about azuread_group data sources.
Randomly, we have intermittent connection errors for some data sources when retrieving a large number of resources data sources while doing a drift detection.

This happens when running on self-hosted agents and on microsoft hosted agents.

One example:

╷
│ Error: Could not retrieve group owners for group with object ID: "/groups/REDACTED"
│ 
│   with module.user_create_devs["REDACTED"].data.azuread_group.lz_devs_mfa_old_exclude_prod,
│   on .terraform/modules/user_create_devs/data.tf line 1, in data "azuread_group" "lz_devs_mfa_old_exclude_prod":
│    1: data "azuread_group" "lz_devs_mfa_old_exclude_prod" {
│ 
│ Get
│ "[https://graph.microsoft.com/beta/groups/REDACTED/owners"](https://graph.microsoft.com/beta/groups/REDACTED/owners%22):
│ dial tcp [2603:1026:3000:a8::81]:443: connect: network is unreachable
╵

Is there any option within this provider to retry affected resources, when having such errors?
We need to retry the whole pipeline again to ensure everything is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions