發表文章

目前顯示的是 3月 18, 2019的文章

Siege of Eretria

圖片
Siege of Eretria Part of The Greco-Persian Wars A map showing the invasion of 490 BC Date 490 BC Location Eretria, Euboea 38°23′34″N 23°47′39″E  /  38.392801°N 23.794298°E  / 38.392801; 23.794298 Result Persian victory Belligerents Eretria Persian Empire Commanders and leaders Unknown Datis, Artaphernes Strength Unknown Ancient sources: 100,000-300,000 men, 10,000 Persian Immortals, 600 ships c. 25,000 men (modern consensus) Location of the Siege of Eretria v t e First Persian invasion of Greece Lindos Naxos Karystos Eretria Marathon The Siege of Eretria took place in 490 BC, during the first Persian invasion of Greece. The city of Eretria, on Euboea, was besieged by a strong Persian force under the command of Datis and Artaphernes. The first Persian invasion was a response to Greek involvement in the Ionian Revolt, when the Eretrians and Athenians had sent a force to support the cities of Ionia in their attempt to overthrow Persian rule. The Eretrian and Athenian force had succ

Get-AzureStorageBlob returns null

圖片
0 I am trying to get a blob from azure: $name = "myfolder/20180223_064819[1].jpg" $blob = Get-AzureStorageBlob -Container $container.Name -Context $context -Blob $name -ErrorAction Stop $blob -eq $null # is True and the file is present in storage, in the location specified above, I can see it using the azure storage explorer. However $blob is $null rather than throwing an error which is what usually happens when no file is found. I have been accessing other files fine. If I create another file myfile/201802230648191.jpg. In this code $blob2 returns an object (which is what you'd expect) $name = "myfolder/201802230648191.jpg" $blob2 = Get-AzureStorageBlob -Container $container.Name -Context $context -Blob $name -ErrorAction Stop $blob2 -eq $null # is False I have tried url escaping the name but then it throws a not found exception. I have looked at the naming rules here: https://docs.microsoft.com/en-us/rest/api/storageservices/Naming-and-Referencin