< Back

New-AzureStorageBlobSASToken

Sun Jan 12, 2020 4:36 pm

NAME New-AzureStorageBlobSASToken



SYNTAX

New-AzureStorageBlobSASToken [-Container] <string> [-Blob] <string> [-Permission <string>] [-Protocol {HttpsOnly |

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

<IStorageContext>] [<CommonParameters>]



New-AzureStorageBlobSASToken -CloudBlob <CloudBlob> -Policy <string> [-Protocol {HttpsOnly | HttpsOrHttp}]

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

<IStorageContext>] [<CommonParameters>]



New-AzureStorageBlobSASToken -CloudBlob <CloudBlob> [-Permission <string>] [-Protocol {HttpsOnly | HttpsOrHttp}]

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

<IStorageContext>] [<CommonParameters>]



New-AzureStorageBlobSASToken [-Container] <string> [-Blob] <string> -Policy <string> [-Protocol {HttpsOnly |

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

<IStorageContext>] [<CommonParameters>]





PARAMETERS

-Blob <string>

Blob Name



Required? true

Position? 1

Accept pipeline input? false

Parameter set name BlobNameWithPermission, BlobNameWithPolicy

Aliases None

Dynamic? false



-CloudBlob <CloudBlob>

CloudBlob Object



Required? true

Position? Named

Accept pipeline input? true (ByPropertyName)

Parameter set name BlobPipelineWithPolicy, BlobPipelineWithPermission

Aliases ICloudBlob

Dynamic? false



-Container <string>

Container Name



Required? true

Position? 0

Accept pipeline input? false

Parameter set name BlobNameWithPermission, BlobNameWithPolicy

Aliases None

Dynamic? false



-Context <IStorageContext>

Azure Storage Context Object



Required? false

Position? Named

Accept pipeline input? true (ByValue, ByPropertyName)

Parameter set name (All)

Aliases None

Dynamic? false



-ExpiryTime <datetime>

Expiry Time



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

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



-Permission <string>

Permissions for a blob. Permissions can be any not-empty subset of "rwd".



Required? false

Position? Named

Accept pipeline input? false

Parameter set name BlobNameWithPermission, BlobPipelineWithPermission

Aliases None

Dynamic? false



-Policy <string>

Policy Identifier



Required? true

Position? Named

Accept pipeline input? false

Parameter set name BlobNameWithPolicy, BlobPipelineWithPolicy

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



-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

Microsoft.WindowsAzure.Storage.Blob.CloudBlob

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





OUTPUTS

System.String





ALIASES

None





REMARKS

None