Reader small image

You're reading from  Learning Microsoft Azure Storage

Product typeBook
Published inNov 2017
PublisherPackt
ISBN-139781785884917
Edition1st Edition
Tools
Right arrow

Automating tasks

As usual when we reach the end of a chapter, we will work on automating the tasks that we have done manually. So, let's get started.

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.Value

New-AzureStorageContainer -Name $ContainerName -Permission Container -Context $SC

Set-AzureStorageBlobContent...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learning Microsoft Azure Storage
Published in: Nov 2017Publisher: PacktISBN-13: 9781785884917