Remove-AzContainerRegistryManifest Method not allowed

DENNISON, John 31 Reputation points
2022-03-16T12:47:56.02+00:00

Hi,

I am trying the cleanup untagged manifests in multiple container registries via powershell. However when I try to execute the following command, it fails with the message: Remove-AzContainerRegistryManifest: Operation returned an invalid status code 'MethodNotAllowed'

Update-AzContainerRegistryRepository -RegistryName XXXXXXXXXXXXX -Name XXXXXXXXXXXXX -DeleteEnable $true  
  
Remove-AzContainerRegistryManifest -RegistryName XXXXXXXXXXXXX -RepositoryName XXXXXXXXXXXXX -Manifest sha256:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  

As explained in the documentation I am enabling deletion using the first command. When the command is executed with the -WhatIf parameter, it returns correctly.

Regards

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
428 questions
{count} votes