Right now az acr run follows az acr build except it doesn't guarantee a Dockerfile is present, so what can happen is you can have a dockerignore which ignores the Dockerfile* and have az acr build work but az acr run with a simple build: -f Dockerfile . step will fail.