This file contains 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
$ScriptPath = Split-Path -parent $PSCommandPath | |
. "$ScriptPath\Get-ChildItem-Color\Get-ChildItem-Color.ps1" | |
Set-Alias l Get-ChildItem-Color -option AllScope | |
Set-Alias ls Get-ChildItem-Format-Wide -option AllScope | |
function Get-ChildItem-Force { l -Force } | |
set-alias la Get-ChildItem-Force -option AllScope | |
# Load posh-git example profile |
This file contains 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
$resourceGroupName = "fabiofirstresourcegroup" | |
$storageContainerName = "picturecontainer" | |
$storageaccount = Get-AzureRmStorageAccount -ResourceGroupName $resourceGroupName | |
$storagecontext = New-AzureStorageContext -StorageAccountName $storageaccount.StorageAccountName -StorageAccountKey $storageKey.Key1 | |
$storageContainer = New-AzureStorageContainer -Name $storageContainerName -Context $storagecontext -Permission Blob | |
$storageKey = Get-AzureRmStorageAccountKey -ResourceGroupName $resourceGroupName -AccountName $storageaccount.StorageAccountName | |
$blobName = "20150123_194040.jpg" | |
$localFile = "C:\Users\A501205\OneDrive\Pictures\$blobName" | |
Set-AzureStorageBlobContent -File $localFile -Container $storageContainerName -Blob $BlobName -Context $storagecontext |