< Back

Add-AzureRmStorageQueueMessage

Sat Jan 11, 2020 10:48 am

NAME Add-AzureRmStorageQueueMessage



SYNOPSIS

Adds a message into the queue.





SYNTAX

Add-AzureRmStorageQueueMessage [-queue] <AzureStorageQueue> [-message] <Object> [[-expirationTimeSpan] <TimeSpan>]

[<CommonParameters>]





DESCRIPTION

Adds a message into the queue.





PARAMETERS

-queue <AzureStorageQueue>

Name of the queue to add the message.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-message <Object>

Content that will be added to the queue. If the message is type hashtable, that is converted to a json string.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-expirationTimeSpan <TimeSpan>

Optional time span used to set the expiration of the message



Required? false

Position? 3

Default value

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Add-AzureRmStorageQueueMessage -queue $queue -message

@{"type"="copy";"vhdname"="newvhd.vhd";"sourceStorageAccount"="pmcstorage05";"subscription"="pmcglobal"}















RELATED LINKS