Last active
September 27, 2015 13:45
-
-
Save gregjhogan/663b4e5be9e9f845ad50 to your computer and use it in GitHub Desktop.
Generate blob SAS URL
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
$cxn = (azure storage account connectionstring show --json --resource-group <resource-group> <storage-account>) | Out-String | ConvertFrom-Json | |
$sas = (azure storage blob sas create --json -c $cxn.string <container> <blob> r (Get-Date).AddHours(1).ToUniversalTime().ToString("s")) | Out-String | ConvertFrom-Json | |
$sas.url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment