Search code examples
azurepowershellazure-powershellazcopy

AZCOPY_LOG_LOCATION - doesn't work in Powershell ISE?


This is a really straight forward question, but does anyone know how to make the command AZCOPY_LOG_LOCATION actually work?

I'm doing:

Set AZCOPY_LOG_LOCATION=C:\backup\azcopylog\

and it doesn't get picked up. I've tried the below as well and nothing:

Set AZCOPY_LOG_LOCATION="C:\backup\azcopylog\"

Solution

  • Update: in .ISE:

    enter image description here


    Original answer:

    Please use $env:AZCOPY_LOG_LOCATION="C:\backup\azcopylog".

    I'm using the latest version of azcopy 10.3.4, and the log location is changed by using command above:

    enter image description here