azure - AZCOPY_LOG_LOCATION - 在 Powershell ISE 中不起作用?

标签 azure powershell azure-powershell azcopy

这是一个非常简单的问题,但是有人知道如何使命令 AZCOPY_LOG_LOCATION 真正起作用吗?

我正在做:

Set AZCOPY_LOG_LOCATION=C:\backup\azcopylog\

并且它没有被拾取。我也尝试过以下方法,但没有任何结果:

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

最佳答案

更新:在 .ISE 中:

enter image description here

<小时/>

原答案:

请使用$env:AZCOPY_LOG_LOCATION="C:\backup\azcopylog"

我使用的是最新版本的 azcopy 10.3.4,并且使用上面的命令更改日志位置:

enter image description here

关于azure - AZCOPY_LOG_LOCATION - 在 Powershell ISE 中不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60844665/

相关文章:

azure - 如何在 New-AzSqlSyncMember 中设置 -DefaultProfile(IAzureContextContainer 类型)的值

powershell - 从生成的字符串(不是文件)中去除 BOM

Azure:Frontdoor 和存储帐户在 QueryParameterName `comp` 上出现 InvalidQueryParameterValue 错误

ios - 来自 iOS 设备的 Azure Blob 存储 : Server failed to authenticate the request

sql-server - TempDB 已达到其大小配额 : How to increase size quota for tempDB on Azure SQL

regex - Powershell正则表达式替换两个相同字符之间的特定字符

powershell - 使用 Tee-Object 进行重定向

Powershell 测试网络连接 "Name resolution of [domain] failed"错误

azure - 找不到资源组下的资源(SQL Server)

sql-server - 数据库中的 Azure 数据库列表