< Back

Remove-AzureStorageQueueStoredAccessPolicy

Tue Jan 29, 2019 9:27 pm

NAME Remove-AzureStorageQueueStoredAccessPolicy



SYNOPSIS

Removes a stored access policy from an Azure storage queue.





SYNTAX

Remove-AzureStorageQueueStoredAccessPolicy [-Queue] <String> [-Policy] <String> [-Context <IStorageContext>] [-PassThru] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Remove-AzureStorageQueueStoredAccessPolicy cmdlet removes a stored access policy from 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



-PassThru [<SwitchParameter>]

Indicates that this cmdlet returns a Boolean that reflects the success of the operation. By default, this cmdlet does not return a value.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Policy <String>

Specifies the name of the stored access policy that this cmdlet removes.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Queue <String>

Specifies the Azure storage queue name.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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





OUTPUTS

System.Boolean







NOTES









Example 1: Remove a stored access policy from a storage queue



PS C:\\>Remove-AzureStorageQueueStoredAccessPolicy -Queue "MyQueue" -Policy "Policy04"



This command removes an access policy named Policy04 from the storage queue named MyQueue.







RELATED LINKS

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

Get-AzureStorageQueueStoredAccessPolicy

New-AzureStorageContext

New-AzureStorageQueueStoredAccessPolicy

Set-AzureStorageQueueStoredAccessPolicy