< Back
New-AzureStorageQueueStoredAccessPolicy
Post
NAME New-AzureStorageQueueStoredAccessPolicy
SYNOPSIS
Creates a stored access policy for an Azure storage queue.
SYNTAX
New-AzureStorageQueueStoredAccessPolicy [-Queue] <String> [-Policy] <String> [-Context <IStorageContext>] [-ExpiryTime <DateTime>] [-Permission
<String>] [-StartTime <DateTime>] [<CommonParameters>]
DESCRIPTION
The New-AzureStorageQueueStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage queue.
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 queue.
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
-Queue <String>
Specifies the Azure storage queue name.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
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
<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 'Queue' accepts value of type 'String' from the pipeline
OUTPUTS
System.String
NOTES
Example 1: Create a stored access policy in a storage queue
PS C:\\>New-AzureStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy01"
This command creates an access policy named Policy01 in the storage queue named MyQueue.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... cesspolicy
Get-AzureStorageQueueStoredAccessPolicy
New-AzureStorageContext
Remove-AzureStorageQueueStoredAccessPolicy
Set-AzureStorageQueueStoredAccessPolicy
SYNOPSIS
Creates a stored access policy for an Azure storage queue.
SYNTAX
New-AzureStorageQueueStoredAccessPolicy [-Queue] <String> [-Policy] <String> [-Context <IStorageContext>] [-ExpiryTime <DateTime>] [-Permission
<String>] [-StartTime <DateTime>] [<CommonParameters>]
DESCRIPTION
The New-AzureStorageQueueStoredAccessPolicy cmdlet creates a stored access policy for an Azure storage queue.
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 queue.
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
-Queue <String>
Specifies the Azure storage queue name.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName, ByValue)
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
<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 'Queue' accepts value of type 'String' from the pipeline
OUTPUTS
System.String
NOTES
Example 1: Create a stored access policy in a storage queue
PS C:\\>New-AzureStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy01"
This command creates an access policy named Policy01 in the storage queue named MyQueue.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... cesspolicy
Get-AzureStorageQueueStoredAccessPolicy
New-AzureStorageContext
Remove-AzureStorageQueueStoredAccessPolicy
Set-AzureStorageQueueStoredAccessPolicy