【发布时间】:2019-04-08 09:03:55
【问题描述】:
我正在尝试将 zip 文件从 Azure Blob 容器移动到 Azure 文件共享。我想添加在目标端解压缩文件的选项。我在自动化运行手册中使用 Powershell。以下是我的功能的片段。我无法弄清楚所有活动都在存储帐户中发生的 Expand-Archive cmdlet(没有本地路径 c:\ 等)
if ($blob.name.StartsWith($blobMatch)) {
$destFile
$blobName = $blob.name
#Get-AzureStorageFileContent
#Expand-Archive -Path $blob -DestinationPath $destFile
Start-AzureStorageFileCopy `
-SrcBlobName $blob.name `
-SrcContainerName $sourceContainer `
-DestShareName $destinationShare `
-DestFilePath $destFile `
-Context $ctx `
-DestContext $ctx `
-Force
}
【问题讨论】:
-
这个问题有更新吗?如果我的回复有帮助,请标记为答案。
标签: azure powershell zip archive expand