Sorry for bothering. Finally I understood the process and was able to build ACI with secrets and volumes For reference: az container create --resource-group rgname --name creditapp --image xyz.azurecr.io/creditapp:latest --dns-name-label appname --ip-address Public --ports 80 8080 --protocol TCP --restart-policy OnFailure --registry-login-server xyz.azurecr.io --registry-username username --registry-password $TOKEN --azure-file-volume-account-key keyvalue --azure-file-volume-account-name accountname --azure-file-volume-mount-path /opt/scr/config/db --azure-file-volume-share-name scr --secrets db.secrets="value" --secrets-mount-path /opt/scr/secrets/db