Azure / azure-devops-cli-extension

Azure DevOps Extension for Azure CLI
https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/?view=azure-cli-latest
MIT License
628 stars 241 forks source link

ERROR: Could not resolve identity: SOME-SECURITY-GROUP #1365

Open casras opened 1 year ago

casras commented 1 year ago

Is your feature request related to a problem? Please describe. When using az devops security group Membership add --group-id $GroupDescriptor --member-id $Member --organization "https://dev.azure.com/$organizationName"

I get an error "ERROR: Could not resolve identity: SOME-SECURITY-GROUP" And the member is not added to the group

Describe the solution you'd like I want to be able to add a security group, as a member of the devops groups. Without having to add it manually beforehand :-)

Additional context If I go to the Azure DevOps portal and add the member aka. security group manually, then the command runs with no error. If I then remove the member manually, and run the command again, it fails with the same error.

If the security group is aldready added on another project, then the command runs with no error, and the security group is added as a member.