azure-cli
azure-cli copied to clipboard
Unable to uncheck 'Allow requestors to approve their own changes' under Completion options
I was not able to find the switch to be able to uncheck the "Allow requestors to approve their own changes". There is no switch for update policy.
$requiredReviewer = az repos policy required-reviewer create --blocking true
--branch "main" --branch-match-type "exact"
--enabled true --repository-id $($repositoryid)
--required-reviewer-ids $reviewerGroupId --org $adoOrg
--project $adoProject `
--message $reviewerMessage

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: c8131327-0712-d643-9fd5-f172b25bd88e
- Version Independent ID: d39c0fdb-90a3-e3f2-92cc-c5135e93bd7d
- Content: az repos policy required-reviewer
- Content Source: latest/docs-ref-autogen/repos/policy/required-reviewer.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Thank you for your feedback. This has been routed to the support team for assistance.
route to CXP team
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @v-anvashist, @V-hmusukula.
Issue Details
I was not able to find the switch to be able to uncheck the "Allow requestors to approve their own changes". There is no switch for update policy.
$requiredReviewer = az repos policy required-reviewer create --blocking true
--branch "main" --branch-match-type "exact"
--enabled true --repository-id $($repositoryid)
--required-reviewer-ids $reviewerGroupId --org $adoOrg
--project $adoProject `
--message $reviewerMessage
After creating the policy I also tried this code by supplying the PolicyID but no luck.
az repos policy approver-count update --creator-vote-counts false
--allow-downvotes false --blocking true
--reset-on-source-push true --repository-id $repositoryId
--org $adoOrg --project $adoProject
--enabled true `
--policy-id 422
I get ERROR: A policy configuration's policy type cannot be changed once set.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: c8131327-0712-d643-9fd5-f172b25bd88e
- Version Independent ID: d39c0fdb-90a3-e3f2-92cc-c5135e93bd7d
- Content: az repos policy required-reviewer
- Content Source: latest/docs-ref-autogen/repos/policy/required-reviewer.yml
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
| Author: | omerzubair |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
Adding the Service team for the Devops issue.
@v-anvashist, @V-hmusukula. Could you please look into this issue and provide an update once you get a chance ?
Thank you for your feedback. This has been routed to the support team for assistance.
any update?
similarly, this one needs attention from API team @v-anvashist?
Hi @omerzubair, we dropped mail to API team and waiting for their response. we will get back to you once we received response from the API team.
Thanks!
@omerzubair we received response from API team. They do have this covered in the REST API (Configurations - Create - REST API (Azure DevOps Policy) | Microsoft Docs). Parameter is named “creatorVoteCounts”. Can you check if this will be good enough?
Hi @v-soujanya , thanks for your response. I will certainly try and revert back. cheers
Hi, all! How can the creatorVoteCounts parameter be used in the AZ CLI to uncheck the "Allow requestors to approve their own changes"?
Hey @v-soujanya Is there any update on this issue?
@gpolcode Hi, we are owning only Azure CLI service and right now with Az CLI we don't have feasibility for this request. Just to help here I have raised the concern to the API team and posted the response. we received response from API team. They do have this covered in the REST API (Configurations - Create - REST API (Azure DevOps Policy) | Microsoft Docs). Parameter is named “creatorVoteCounts”. Can you check if this will be good enough? Please try it & let me know if that would work for you.
owning only Azure CLI service and right now with Az CLI we don't have feasibility for this request. Just to help here I have raised the concern to the API team and posted the respo
Its a MS product and we are reliant on AzDO team to help us , so we can provide ability to the clients. Will really appreciate, if we AzDO team can add this highly requested item on the radar. its been 18 months already
Is there any update on this issue?
We also experience the same issue as the issue author:
The AZ CLI lacks the CLI argument --creator-vote-counts {true, false} for command az repos policy required-reviewer create to enable or disable the completion option "Allow requestors to approve their own changes".
@DevDavido please can you provide an email I can reach you via, need your help on something you posted on your blog