< Back

New-AzureStorageTableStoredAccessPolicy

Tue Jan 29, 2019 9:27 pm

NAME New-AzureStorageTableStoredAccessPolicy



SYNOPSIS

Creates a stored access policy for an Azure storage table.





SYNTAX

New-AzureStorageTableStoredAccessPolicy [-Table] <String> [-Policy] <String> [-Context <IStorageContext>] [-ExpiryTime <DateTime>] [-Permission

<String>] [-StartTime <DateTime>] [<CommonParameters>]





DESCRIPTION

The New-AzureStorageTableStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage table.





PARAMETERS

-Context <IStorageContext>

Specifies an Azure storage context. To obtain a storage context, use the New-AzureStorageContext cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-ExpiryTime <DateTime>

Specifies the time at which the stored access policy becomes invalid.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Permission <String>

Specifies permissions in the stored access policy to access the storage table.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Policy <String>

Specifies a name for the stored access policy.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-StartTime <DateTime>

Specifies the time at which the stored access policy becomes valid.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Table <String>

Specifies the Azure storage table name.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

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

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



INPUTS

IStorageContext

Parameter 'Context' accepts value of type 'IStorageContext' from the pipeline



String

Parameter 'Table' accepts value of type 'String' from the pipeline





OUTPUTS

System.String







NOTES









Example 1: Create a stored access policy in a table



PS C:\\>New-AzureStorageTableStoredAccessPolicy -Table "MyTable" -Policy "Policy02"



This command creates an access policy named Policy02 in the storage table named MyTable.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... cesspolicy

Get-AzureStorageTableStoredAccessPolicy

New-AzureStorageContext

Remove-AzureStorageTableStoredAccessPolicy

Set-AzureStorageTableStoredAccessPolicy