Hey,
I am in a situation where I have two remote storages, both up-to-date. The .dvc/config fil looks like this (my machine only has access to dev_remote):
[core]
remote = prod_remote
['remote "dev_remote"']
url = azure://xyz
account_name = my_dev_account_name
allow_anonymous_login = false
['remote "prod_remote"']
url = azure://abc
account_name = my_prod_account_name
allow_anonymous_login = false
I now run
dvc get "url_to_my_remote_repo" "file_path" --remote "dev_remote" --rev "a_rev"
This throws an error:
ERROR: unexpected error - Operation returned an invalid status 'This request is not authorized to perform this operation using this permission.'
If I run:
dvc get --show-url "url_to_my_remote_repo" "file_path" --remote "dev_remote" --rev "a_rev"
I get the URL to the file on prod_remote.
What am I doing wrong and why does dvc ignore the remote argument?