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.
Practice questions
Which Azure Repos permission is required to delete a tag from the remote repository?
- Create tag
- Manage notes
- Edit policies
- 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.
Which statements about Azure Repos permission states and inheritance are true?
- Not set neither grants nor denies the permission
- Deny generally overrides Allow, including one from another group
- An Allow from one group always overrides a Deny from another
- A repository inherits permissions from the project-level Git repositories entry
- 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.
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.
