Extend token lifespan of 'az acr login'
I quite often get an "unauthorized: authentication required" from the registry, when I try to push and pull., which requires me to run 'az acr login' again. This is quite annoying, especially since I work with multiple ACRs in different subscriptions.
To my understanding (correct me if I'm wrong here), 'az acr login' acquires a token that lasts for an hour, after which you need to login again. It would be awesome if it was possible to extend the lifetime of the token, so you don't have to log in as often.
By comparison, when working with Kubernetes clusters created with ACS engine, I have to sign in the first time I use kubectl, after which a token is saved in the kubeconfig. This token only expires when I change my password. If it is possible to achieve something similar with ACR, I would be very happy. :-)

1 comment
-
evin commented
I've got the same problem here, recently my login tokens only last < 24 hours, and I'd like to extend this. It's quiet annoying to have to re-authenticate every day on my dev box