Azure / Azure/azure-cli

ACI - allow better container creation automation options

Open
#14,408 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Container Instances Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

I'm using the 'az container create -f file.yml' option to create aci containers, this works really well, but I'd like to automate this through my pipeline, and not have any credentials or container tags hard-wired in the yml

I'd like to be able to do
sed -e "s|DEPLOY_TAG|${i}|g" ./aci.yml | az container create --registry-login-server ${ACR_NAME}.azurecr.io --registry-password $ACR_PASSWD --registry-username $ACR_NAME -f -

unfortunately, "-f -" doesn't read from stdin, as many linux commands do, and
if I combined the options "-f" and the" --registry-*" options so to not embed the creds in the yml, this shows a error " Please check the image and registry credential"

Thank you for considering this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.