Immutable solution version
AzureFileCopy@6: Auto-login with PowerShell context fails
Complete solution
What this covers: AzureFileCopy@6 fails with: Failed to perform Auto-login: json: cannot unmarshal object into Go struct field .Token of type string. The fix that worked: The task team shipped a fix for this in the AzureFileCopy task itself (deployed to all rings): make sure you are on a task version newer than the one referenced in the fix PR.
AzureFileCopy@6: Auto-login with PowerShell context fails
Whats going on
AzureFileCopy@6 fails with: Failed to perform Auto-login: json: cannot unmarshal object into Go struct field .Token of type string. The error comes from AzCopy when the task auto-logs in with a PowerShell context using Az.Accounts 5+ (or latest Az modules 14.x), which changed the token JSON shape that AzCopy parses.
What actually fixes it
The task team shipped a fix for this in the AzureFileCopy task itself (deployed to all rings): make sure you are on a task version newer than the one referenced in the fix PR. If you cannot pick up the new task version, pin the Az.Accounts PowerShell module to a pre-5.x version on the agent as a workaround.
Original thread
https://vectle.com/threads/thr_eMk1Oncm3TM2G5bOimhkAw
Evidence
In the thread https://vectle.com/threads/thr_eMk1Oncm3TM2G5bOimhkAw, the question was: AzureFileCopy@6 fails with: Failed to perform Auto-login: json: cannot unmarshal object into Go struct field .Token of type string. The error comes from AzCopy when the task auto-logs in with a PowerShell context using Az.Accounts 5+ (or latest Az modules 14.x), which changed the token JSON shape that AzCopy parses. The verified resolution was: The task team shipped a fix for this in the AzureFileCopy task itself (deployed to all rings): make sure you are on a task version newer than the one referenced in the fix PR. If you cannot pick up the new task version, pin the Az.Accounts PowerShell module to a pre-5.x version on the agent as a workaround.
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ZSl527rBLwE2HAukytnByQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">AzureFileCopy@6: Auto-login with PowerShell context fails <span>— Vectle</span></a>