Serving Video Content from Azure Blob Storage

后端 未结 5 1543
死守一世寂寞
死守一世寂寞 2020-12-25 08:15

I am trying to serve MP4 Video content from Azure Blob Storage. I can get the video to play in modern browsers by ensuring that the Blob\'s Content Type is set to vid

5条回答
  •  情话喂你
    2020-12-25 08:39

    You can do it via Powershell. Here is an example for Azures ARM (not classic, but you can convert it easily).

    Select-AzureRmSubscription -SubscriptionName "subscription" $Name = 'storageaccountname' $resourcegroup = 'resourcegroup'
    
    $sp = New-Object -TypeName Microsoft.WindowsAzure.Storage.Shared.Protocol.ServiceProperties 
    
    $sp.DefaultServiceVersion = "2017-04-17" $key = (Get-AzureRMStorageAccountKey -StorageAccountName $Name
    -ResourceGroupName $resourcegroup).Value[1]
    
    $context = New-AzureStorageContext -StorageAccountName $Name
    -StorageAccountKey $key
    
    $blobClient = $context.StorageAccount.Create
    

提交回复
热议问题