last sync: 2025-May-28 17:23:54 UTC

Container Registries enable retention policy

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 8b36505e-b96f-4ab9-a5ed-aefd19476d2c (1.0.0) to Azure
Display name Container Registries enable retention policy
Id 8b36505e-b96f-4ab9-a5ed-aefd19476d2c
Version 1.0.0
Details on versioning
Category Container Registry
Microsoft Learn
Description Ensure registry has a retention policy for stored image manifests that don't have any associated tags (untagged manifests), which are then automatically deleted. This feature prevents the registry from filling up with artifacts that aren't needed and helps you save on storage costs.
Mode Indexed
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.ContainerRegistry/registries/policies.retentionPolicy.status Microsoft.ContainerRegistry registries properties.policies.retentionPolicy.status True False
Rule resource types IF (1)
Microsoft.ContainerRegistry/registries
JSON
EPAC
Deploy policy 8b36505e-b96f-4ab9-a5ed-aefd19476d2c (1.0.0) to Azure