Edit

Share via


Get-AzStorageTableStoredAccessPolicy

Gets the stored access policy or policies for an Azure storage table.

Syntax

Default (Default)

Get-AzStorageTableStoredAccessPolicy
    [-Table] <String>
    [[-Policy] <String>]
    [-Context <IStorageContext>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzStorageTableStoredAccessPolicy cmdlet lists the stored access policy or policies for an Azure storage table.

Examples

Example 1: Get a stored access policy in a storage table

Get-AzStorageTableStoredAccessPolicy -Table "Table02" -Policy "Policy50"

This command gets the access policy named Policy50 in the storage table named Table02.

Example 2: Get all stored access policies in a storage table

Get-AzStorageTableStoredAccessPolicy -Table "Table02"

This command gets all access policies in the table named Table02.

Parameters

-Context

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

Parameter properties

Type:IStorageContext
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Policy

Specifies a stored access policy, which includes the permissions for this Shared Access Signature (SAS) token.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Table

Specifies the Azure storage table name.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:N, Name

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

IStorageContext

Outputs

SharedAccessTablePolicy