PowerShell ile Azure Storage Account Container Icerisinden Dosya Indirmek

Storage Account icerisindeki Container’lerden birinde bulunan bir dosyayi indirmedek icin asagidaki komutlari kullanabiliriz. Oncesinde Storage Access Key’i Portal’den ya da PowerShell yardimiyla alip Context olusturmayi unutmayalim lutfen.

$context = New-AzStorageContext -StorageAccountName rbacstracc
-StorageAccountKey “xxxxxxxxxxxxxx”
$BlobConfig = @{
Blob = ‘testdosyasi1.txt’
Container = ‘klasor1’
Destination = ‘D:\temp\’
Context = $Context
}
Get-AzStorageBlobContent @BlobConfig