Create Azure Storage using PowerShell and upload video file

What is the use of Container?
I will explain in a simple one-line statement. Containers are basically used to pack many applications into a single physical server.

Azure Container Service provides simplified configuration to create, configure and manage cluster virtual machines. It provides container hosting environment with help of open source tools to host your application.

SharePoint deveopment training course

We can create a container using below power shell script. Make sure you have installed Azure PowerShell.

Refer below link for Azure PowerShell download and installation process.
https://azure.microsoft.com/en-in/documentation/articles/powershell-install-configure/

Script to create Azure Container and upload video blob file

$SubscriptionName = “StorageSubscription”

$StorageAccountName = “samstorage”

$Location = “West US”

$ContainerName = “videocontainer”

$VideoToUpload = “D:\Sam\Videos\Sample.wmv”

Add-AzureAccount

Select-AzureSubscription -SubscriptionName $SubscriptionName –Default

New-AzureStorageAccount –StorageAccountName $StorageAccountName -Location $Location

Set-AzureSubscription -CurrentStorageAccountName $StorageAccountName -SubscriptionName $SubscriptionName

New-AzureStorageContainer -Name $ContainerName -Permission Off

# Upload a blob into a container.

Set-AzureStorageBlobContent -Container $ContainerName -File $VideoToUpload


Read some SharePoint tutorials below:

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Sambita Rath

I have 9 years of exprience into SharePoint implementation, architecture, Administrator, development and Training.Designing Information Architecture in SharePoint 2007, 2010,2013 and Office 365.

View all posts by Sambita Rath →