az repos policy
Manage branch policy. Azure CLI extensions reference
13 commands 8 options Its page in the Azure CLI extensions reference
Commands
approver-countManage approver count policy.buildManage build policy.case-enforcementManage case enforcement policy.comment-requiredManage comment required policy.createCreate a policy using a configuration file.deleteDelete a policy.file-sizeManage file size policy.listList all policies in a project.merge-strategyManage merge strategy policy.required-reviewerManage required reviewer policy.showShow policy details.updateUpdate a policy using a configuration file.work-item-linkingManage work item linking policy.Options
--blockingWhether the policy should be blocking or not--branch-match-typeDetermines how the branch argument is used to apply a policy.--branchBranch on which this policy should be applied.--enabledWhether the policy is enabled or not--path-filterFilter path(s) on which the policy is applied.--policy-configuration, --configLocal file path for configuration file.--policy-id, --idID of the policy.--repository-idId of the repository on which to apply the policy