skip to content
Alvin Lucillo

Prevent accidental deletion of image

/ 1 min read

To prevent accidental deletion of an image, you need to update the image with --write-enabled. This locks the image version against deletion and overwriting.

az acr repository update `
    --name $env:ACR_NAME `
    --image inference-api:v1.0.0 `
    --write-enabled false