Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save eduvto/d8efcc6c46ab7610c07cab7f356bc4f8 to your computer and use it in GitHub Desktop.

Select an option

Save eduvto/d8efcc6c46ab7610c07cab7f356bc4f8 to your computer and use it in GitHub Desktop.
Azure Blob Storage Upload with Sitecore PowerShell Extension
# Storage details
$storageAccountName = "<storageAccountName>"
$storageAccountKey = "<storageAccountKey>"
$storageContainerName = "<storageContainerName>"
# File Location
$localFilePath = "<localFilePath>"
# Create storage context
$storageContext = New-AzStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageAccountKey
# Upload the file
Set-AzStorageBlobContent -File $localFilePath -Container $containerName -Context $storageContext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment