The az acr CLI provides the functionality to build (and push) the docker image with az acr build.
Does the java sdk give the same option? If so, would you know of any sample?
I've tried finding more info on the sdk's github and microsoft docs, but no luck so far.
There are relevant samples in the sdk github generated samples: https://github.com/Azure/azure-sdk-for-java/blob/2d1d4e228f6d1145f460ab61398ca25d9bd8f96c/sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerregistry/generated/RegistriesScheduleRunSamples.java