Bicep version
Bicep CLI version 0.39.26 (1e90b06e40)
Resource and API version
"microsoftGraphV1": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:1.0.0"
resource group 'Microsoft.Graph/groups@v1.0'
Auth flow
interactive
Describe the bug
It seems that, when creating a new group with members and the relationshipSemantics: 'replace' parameter, an error is returned "Resource does not exist or one of its queried reference-property objects are not present"
Running the same bicep file immediately after this error (so no modification) works: members are added.
Creating a group without the 'relationshipSemantics: replace' parameter also works. But I want to use 'replace' always, even for new groups, to ensure that only the members specified in a bicep deployment are member of the group.
To Reproduce
Create a not-yet-existing group with some existing users and the relationshipSemantics parameter set to 'replace'
Bicep version
Bicep CLI version 0.39.26 (1e90b06e40)
Resource and API version
"microsoftGraphV1": "br:mcr.microsoft.com/bicep/extensions/microsoftgraph/v1.0:1.0.0"
resource group 'Microsoft.Graph/groups@v1.0'
Auth flow
interactive
Describe the bug
It seems that, when creating a new group with members and the relationshipSemantics: 'replace' parameter, an error is returned "Resource does not exist or one of its queried reference-property objects are not present"
Running the same bicep file immediately after this error (so no modification) works: members are added.
Creating a group without the 'relationshipSemantics: replace' parameter also works. But I want to use 'replace' always, even for new groups, to ensure that only the members specified in a bicep deployment are member of the group.
To Reproduce
Create a not-yet-existing group with some existing users and the relationshipSemantics parameter set to 'replace'