[英]Not able to access Azure FileShare Storage container from Azure Automation Runbook
[英]Azure Runbook Powershell move zip file from Blob Container to FileShare and Unzip the file once in destination
我正在嘗試將zip文件從Azure Blob容器移動到Azure fileShare。 我想添加選項以在目標端解壓縮文件。 我在自動化Runbook中使用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
}
我認為您將無法在存儲文件共享中解壓縮文件,可以在其中放置壓縮的內容,但是不能使Storage Service解壓縮它。 解決方法是先下載文件,然后解壓縮。
這是一個類似的問題,您可以參考它 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.