Created
August 10, 2024 13:59
-
-
Save eduvto/d8efcc6c46ab7610c07cab7f356bc4f8 to your computer and use it in GitHub Desktop.
Azure Blob Storage Upload with Sitecore PowerShell Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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