many-dress-54535
12/08/2021, 3:37 PM# Environment variable for container command line
PURGE_CMD="acr purge \
--filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' \
--ago 0d --untagged"
az acr task create --name weeklyPurgeTask \
--cmd "$PURGE_CMD" \
--schedule "0 1 * * Sun" \
--registry myregistry \
--context /dev/null
I am trying to implement that using https://www.pulumi.com/registry/packages/azure-native/api-docs/containerregistry/task but I couldn't find a way to:
• Get the names of the acr repositories at each execution
• Pass the command as a string