What is the problem you are having with rclone?
Rclone copy from one Azure BLOB to another Azure BLOB fails with "ManagedIdentityCredential.GetToken() requires exactly one scope"
Run the command 'rclone version' and share the full output of the command.
rclone v1.70.2
- os/version: oracle 8.10 (64 bit)
- os/kernel: 5.15.0-307.178.5.el8uek.x86_64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.24.4
- go/linking: static
- go/tags: none
Issue exists in versions 1.70.0 - 1.70.2
Versions 1.69.1 - 1.69.3 are not affected.
Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads
We are on the latest version (1.70.2).
Which cloud storage system are you using? (eg Google Drive)
Azure BLOB.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
"/bin/rclone" "copy" "-cvvP" "--stats=1m" "--transfers=1" "--min-age=1m" "--no-traverse" "--log-file=/logs/az_upload_config_host_2025-07-01_06_19_54.log" "blob1:host/test/config" "blob2:host/test/config"
The rclone config contents with secrets removed.
[blob2]
type = azureblob
use_msi = true
chunk_size = 100M
access_tier = Cool
account = XXX
msi_mi_res_id = XXX
[blob1]
type = azureblob
use_msi = true
chunk_size = 100M
access_tier = Hot
account = XXX
msi_mi_res_id = XXX
A log from the command with the -vv
flag
2025/07/01 06:19:54 DEBUG : rclone: Version "v1.70.2" starting with parameters ["/bin/rclone" "copy" "-cvvP" "--stats=1m" "--transfers=1" "--min-age=1m" "--no-traverse" "--log-file=/logs/az_upload_config_host_2025-07-01_06_19_54.log" "blob1:host/test/config" "blob2:host/test/config"]
2025/07/01 06:19:54 DEBUG : Creating backend with remote "blob1:host/test/config"
2025/07/01 06:19:54 DEBUG : Using config file from "/etc/rclone.conf"
2025/07/01 06:19:54 DEBUG : Creating backend with remote "blob2:host/test/config"
2025/07/01 06:19:54 DEBUG : contents/test_backup_config_2025-07-01_05_00_17.xml: Need to transfer - File not found at Destination
2025/07/01 06:19:54 DEBUG : logs/test_backup_config_2025-07-01_05_00_17.log: Need to transfer - File not found at Destination
2025/07/01 06:19:54 ERROR : contents/test_backup_config_2025-07-01_05_00_17.xml: Failed to copy: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 DEBUG : Azure container host path test/config: Waiting for transfers to finish
2025/07/01 06:19:54 ERROR : logs/test_backup_config_2025-07-01_05_00_17.log: Failed to copy: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 ERROR : Attempt 1/3 failed with 2 errors and: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 DEBUG : contents/test_backup_config_2025-07-01_05_00_17.xml: Need to transfer - File not found at Destination
2025/07/01 06:19:54 DEBUG : logs/test_backup_config_2025-07-01_05_00_17.log: Need to transfer - File not found at Destination
2025/07/01 06:19:54 DEBUG : Azure container host path test/config: Waiting for checks to finish
2025/07/01 06:19:54 DEBUG : Azure container host path test/config: Waiting for transfers to finish
2025/07/01 06:19:54 ERROR : contents/test_backup_config_2025-07-01_05_00_17.xml: Failed to copy: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 ERROR : logs/test_backup_config_2025-07-01_05_00_17.log: Failed to copy: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 ERROR : Attempt 2/3 failed with 2 errors and: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 DEBUG : contents/test_backup_config_2025-07-01_05_00_17.xml: Need to transfer - File not found at Destination
2025/07/01 06:19:54 DEBUG : logs/test_backup_config_2025-07-01_05_00_17.log: Need to transfer - File not found at Destination
2025/07/01 06:19:54 DEBUG : Azure container host path test/config: Waiting for checks to finish
2025/07/01 06:19:54 DEBUG : Azure container host path test/config: Waiting for transfers to finish
2025/07/01 06:19:54 ERROR : logs/test_backup_config_2025-07-01_05_00_17.log: Failed to copy: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 ERROR : Attempt 3/3 failed with 2 errors and: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope
2025/07/01 06:19:54 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Errors: 2 (retrying may help)
Checks: 180 / 180, 100%, Listed 192
Elapsed time: 0.2s
2025/07/01 06:19:54 DEBUG : 49 go routines active
2025/07/01 06:19:54 NOTICE: Failed to copy with 2 errors: last error was: multipart copy: failed to create access token: ManagedIdentityCredential.GetToken() requires exactly one scope