Skip to content

Commit 067a198

Browse files
author
Xiaoxuan Wang
committed
add field
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
1 parent b67be47 commit 067a198

File tree

1 file changed

+5
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/acr

1 file changed

+5
-1
lines changed

src/azure-cli/azure/cli/command_modules/acr/custom.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,16 @@ def acr_login(cmd,
276276
password=password,
277277
resource_group_name=resource_group_name)
278278

279+
logger.warning("Note: The token in both the accessToken and refreshToken fields is an ACR Refresh Token, not an ACR Access Token. This ACR Refresh Token must be used to obtain an ACR Access Token when performing data plane operations, such as pushing or pulling images.")
280+
279281
logger.warning("You can perform manual login using the provided access token below, "
280282
"for example: 'docker login loginServer -u %s -p accessToken'", EMPTY_GUID)
281283

282284
token_info = {
283285
"loginServer": login_server,
284-
"accessToken": password
286+
"username": EMPTY_GUID,
287+
"accessToken": password,
288+
"refreshToken": password
285289
}
286290

287291
return token_info

0 commit comments

Comments
 (0)