Last active
February 12, 2019 22:57
-
-
Save TravisEz13/f75b8d8e2ae35c1f20de193bb6ea8e17 to your computer and use it in GitHub Desktop.
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
param( | |
[uri] $sasUrl, | |
[string] $path, | |
[string] $container = 'signing-upload' | |
) | |
$filename = split-path -leaf $path | |
$newurl=[System.UriBuilder]::new($sasurl) | |
$newurl.path="/$container/$filename" | |
Invoke-WebRequest -Uri $newurl.Uri -Method Put -ContentType application/octet-stream -Headers @{ | |
'x-ms-version'='2018-03-28' | |
'x-ms-blob-type' = 'BlockBlob' | |
} -InFile $path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment