Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Kevin-Bronsdijk/592a1895d0b29eb90e64 to your computer and use it in GitHub Desktop.
Save Kevin-Bronsdijk/592a1895d0b29eb90e64 to your computer and use it in GitHub Desktop.
jaabaw-just-another-azure-blob-api-wrapper
$G_SAN = "xyz"
$G_SAK = "xyz"
Get-Containers -StorageAccountName $G_SAN -StorageAccountKey $G_SAK
New-Container -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1"
Get-ContainerProperties -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1"
$Metadata = @{"x-ms-meta-test1"= "22222";"x-ms-meta-test2" = "111111"}
Set-ContainerMetadata -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1" -Metadata $Metadata
Get-Blobs -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1" -MaxResults 3 -Prefix "Bn"
Set-BlobProperties -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1" -BlobName "testimage.jpg" -ContentType "image/jpeg"
Get-BlobMetaData -StorageAccountName $G_SAN -StorageAccountKey $G_SAK -ContainerName "samplecontainer1" -BlobName "testimage.jpg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment