Skip to content

Commit 6bb14dd

Browse files
committed
Enhance AzCopy login process: add --use-keychain=false option for improved authentication handling
1 parent e08d335 commit 6bb14dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def upload_with_azcopy(local_dir):
103103
version_result = subprocess.run(["azcopy", "--version"], capture_output=True, text=True, check=True)
104104
logger.info(f"AzCopy version: {version_result.stdout.strip()}")
105105

106-
login_result = subprocess.run(["azcopy", "login", "--identity"], capture_output=True, text=True)
106+
login_result = subprocess.run(["azcopy", "login", "--identity", "--use-keychain=false"], capture_output=True, text=True)
107107
logger.info(f"AzCopy login stdout: {login_result.stdout}")
108108
logger.info(f"AzCopy login stderr: {login_result.stderr}")
109109
if login_result.returncode != 0:

0 commit comments

Comments
 (0)