Acr tasks only allows running a task file from a context and we want to enable storing the task file running without a context.
There are 2 primary scenarios here
- Running a task with an image or encoded or stored file.
- Creating a Task with an image or encoded task file.
Running a task with an image
| Description |
Command |
Notes |
| Running an image |
az acr run -t hello-world |
|
| Image with Args |
`az acr run --image bash echo "hello-world" |
Arguments follows image similar to docker run |
| Image with timeout |
az acr run --timeout 100 --cmd nginx |
run properties come before image args` |
Creating a Task with an Image or task file without a Source or GIT context
| Description |
Command |
Notes |
| Create a task without context |
az acr task create -f task.yaml --values --import |
Used to import values file from local context. |
| Create a task with an image |
az acr task create --image hello-world |
This can run an image against a and args as a file if needed. |
Acr tasks only allows running a task file from a context and we want to enable storing the task file running without a context.
There are 2 primary scenarios here
Running a task with an image
az acr run -t hello-worldaz acr run --timeout 100 --cmd nginxCreating a Task with an Image or task file without a Source or GIT context
az acr task create -f task.yaml --values --importaz acr task create --image hello-world