Skip to content

New-AzStorageContainerSASToken specify version #14066

Answered by blueww
SwagataChaudhuri asked this question in Q&A
Discussion options

You must be logged in to vote

@SwagataChaudhuri

Currently generate SAS can't specify the version.
Could you share the reason why you need a customized version?

BTW, if you would like to generate a SAS with recent version, you can add a permission that old version not support like "t" or "x".
In the way, with the latest release Az.Storage 3.2.1, the generated SAS has version 2020-02-10.

PS C:\WINDOWS\system32> New-AzStorageContainerSASToken -Name $containerName -Permission wrx   -Context $ctx 
?sv=2020-02-10&se=2021-02-05T08%3A10%3A56Z&sr=c&sp=rwx&sig=[Hidden]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dingmeng-xue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants