Skip to Content
Learning Microsoft Azure Storage
book

Learning Microsoft Azure Storage

by Mohamed Waly
November 2017
Intermediate to advanced
276 pages
7h 6m
English
Packt Publishing
Content preview from Learning Microsoft Azure Storage

Creating Blob storage using PowerShell

In this topic, we will cover how to create Blob storage that everyone has read/write access to in the storage account we created in the last chapter:

$ContainerName = packtpubbs$SAK = Get-AzureRmStorageAccountKey -StorageAccountName "packtpubsaps" -ResourceGroupName packtpub$SAK = $SAK | Where {$_.KeyName -like “key1”}$SC = New-AzureStorageContext -StorageAccountName packtpubsaps -StorageAccountKey $SAK.ValueNew-AzureStorageContainer -Name $ContainerName -Permission Container -Context $SCSet-AzureStorageBlobContent -Container $ContainerName -File C:\test.txt -Context $SC

Steps in detail:

  1. Create a variable for the container name, so you do not have to write it repeatedly.
  2. Create a variable for the storage ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Azure Storage - The Complete Guide

Microsoft Azure Storage - The Complete Guide

Vijay Saini
Learning Microsoft Azure

Learning Microsoft Azure

Jonah Carrio Andersson

Publisher Resources

ISBN: 9781785884917Other