Bitzu

AZ-400 ยท Repository management

Repository permissions and tags

Azure Repos security groups and per-repo/branch permissions, GitHub repository roles, lightweight vs annotated tags, tag-based releases and tag protection.

Key points

  • Azure Repos permissions: All Repositories or per repo; repos inherit the project-level entry.
  • Contributors: contribute, create branches and tags.
  • Force push (rewrite history, delete branches and tags) and bypass-policy: not set for any group by default.
  • Deny generally overrides Allow; Not set grants nothing.
  • Lightweight tag: commit pointer only. Annotated tag (git tag -a): tagger, message, date; for releases.

Source: https://learn.microsoft.com/en-us/azure/devops/repos/git/set-git-repository-permissions?view=azure-devops

Practice questions

Single choice

Which Azure Repos permission is required to delete a tag from the remote repository?

  1. Create tag
  2. Manage notes
  3. Edit policies
  4. Force push
Show answer

Answer: D. Force push

Deleting tags (and branches, or rewriting history) needs Force push at the repository or All tags level. Create tag only allows adding tags.

Select all that apply

Which statements about Azure Repos permission states and inheritance are true?

  1. Not set neither grants nor denies the permission
  2. Deny generally overrides Allow, including one from another group
  3. An Allow from one group always overrides a Deny from another
  4. A repository inherits permissions from the project-level Git repositories entry
  5. Branch creators automatically receive Edit policies
Show answer

Answer: A. Not set neither grants nor denies the permission, B. Deny generally overrides Allow, including one from another group, D. A repository inherits permissions from the project-level Git repositories entry

Not set grants nothing, Deny generally overrides Allow, and an individual repo inherits from the All Repositories entry. An Allow from one group does not beat a Deny, and branch creators no longer automatically receive Edit policies.

True or false

A lightweight tag records the tagger, a message and a date, just like an annotated tag.

Show answer

Answer: False

False. A lightweight tag is only a name pointing at a commit. Annotated tags store tagger, date and message, which is why they suit releases.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module