Open MatthiasCami8 opened 1 year ago
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @luisdlp, @northtyphoon.
Author: | MatthiasCami8 |
---|---|
Assignees: | - |
Labels: | `Service Attention`, `Container Registry`, `question`, `customer-reported`, `Auto-Assign`, `Azure CLI Team` |
Milestone: | Backlog |
Adding Service team to look into this.
Changing the assignment to @northtyphoon and @terencet-dev for next steps.
@MatthiasCami8, did you find a workaround for this while waiting for this functionality in the Python SDK?
Hi @MatthiasCami8 , apologies for the delay. Are you still experiencing this issue?
Related command
az acr build
Is your feature request related to a problem? Please describe. Currently it's not possible (or I did not find an easy solution at least) to call the build image command within python code (with SDK). We want to do this for example in a running docker container.
Describe the solution you'd like A clean way of calling
acr build
with Python.Describe alternatives you've considered
[acr_build](https://github.com/Azure/azure-cli/blob/6928cee824b2dcbc95b66976cf992a6c9d76ffe5/src/azure-cli/azure/cli/command_modules/acr/build.py#L25C54-L25C54)
python function that exists in theazure-cli
. However, the firstcmd
argument is not documented, and I can't find what I should give as argument here (and if this is even a clean way of doing this).Additional context We have a container app that is responsible of creating new images (based on incoming arguments) and pushing them to acr. So it needs to call
az acr build
somehow. This could be done via a bash script, but then you would have to do things such asaz login...
, which I've already tried, but is either not straight forward or not very clean (you also need a subprocess to call the script). Preferably, we would just call the acr-build python function, with as arguments:Thanks in advance!