< Back

New-AzureStorageFileSASToken

Sun Jan 12, 2020 4:42 pm

NAME New-AzureStorageFileSASToken



SYNTAX

New-AzureStorageFileSASToken [-ShareName] <string> [-Path] <string> [-Permission <string>] [-Protocol {HttpsOnly |

HttpsOrHttp}] [-IPAddressOrRange <string>] [-StartTime <datetime>] [-ExpiryTime <datetime>] [-FullUri] [-Context

<IStorageContext>] [<CommonParameters>]



New-AzureStorageFileSASToken [-ShareName] <string> [-Path] <string> -Policy <string> [-Protocol {HttpsOnly |

HttpsOrHttp}] [-IPAddressOrRange <string>] [-StartTime <datetime>] [-ExpiryTime <datetime>] [-FullUri] [-Context

<IStorageContext>] [<CommonParameters>]



New-AzureStorageFileSASToken -File <CloudFile> [-Permission <string>] [-Protocol {HttpsOnly | HttpsOrHttp}]

[-IPAddressOrRange <string>] [-StartTime <datetime>] [-ExpiryTime <datetime>] [-FullUri] [<CommonParameters>]



New-AzureStorageFileSASToken -File <CloudFile> -Policy <string> [-Protocol {HttpsOnly | HttpsOrHttp}]

[-IPAddressOrRange <string>] [-StartTime <datetime>] [-ExpiryTime <datetime>] [-FullUri] [<CommonParameters>]





PARAMETERS

-Context <IStorageContext>

Azure Storage Context Object



Required? false

Position? Named

Accept pipeline input? true (ByValue)

Parameter set name NameSasPermission, NameSasPolicy

Aliases None

Dynamic? false



-ExpiryTime <datetime>

Expiry Time



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-File <CloudFile>

CloudFile instance to represent the file to get SAS token against.



Required? true

Position? Named

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name FileSasPermission, FileSasPolicy

Aliases None

Dynamic? false



-FullUri

Display full uri with sas token



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-IPAddressOrRange <string>

IP, or IP range ACL (access control list) that the request would be accepted by Azure Storage.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-Path <string>

Path to the cloud file to generate sas token against.



Required? true

Position? 1

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name NameSasPermission, NameSasPolicy

Aliases None

Dynamic? false



-Permission <string>

Permissions for a file. Permissions can be any subset of "rwd".



Required? false

Position? Named

Accept pipeline input? false

Parameter set name NameSasPermission, FileSasPermission

Aliases None

Dynamic? false



-Policy <string>

Policy Identifier



Required? true

Position? Named

Accept pipeline input? false

Parameter set name NameSasPolicy, FileSasPolicy

Aliases None

Dynamic? false



-Protocol <SharedAccessProtocol>

Protocol can be used in the request with this SAS token.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ShareName <string>

Share Name



Required? true

Position? 0

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name NameSasPermission, NameSasPolicy

Aliases None

Dynamic? false



-StartTime <datetime>

Start Time



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

System.String

Microsoft.WindowsAzure.Storage.File.CloudFile

Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext





OUTPUTS

System.String





ALIASES

None





REMARKS

None