az feedback auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
I'm running this command from an Azure DevOps pipeline as part of our infrastructure deployment and without additional care these commands fail for subsequent runs.
To Reproduce
az ad group member add -g $rg --member-identity $id
az ad group member add -g $rg --member-identity $id
One or more added object references already exist for the following modified properties: 'members'.
Describe the bug I'm running this command from an Azure DevOps pipeline as part of our infrastructure deployment and without additional care these commands fail for subsequent runs.
To Reproduce az ad group member add -g $rg --member-identity $id az ad group member add -g $rg --member-identity $id
Expected behavior No error.
Environment summary
Additional context I've run the same command on ubuntu, macOs and Windows. Here's my workaround: https://twitter.com/MRiezebosch/status/1359533376777179137