author | ms.service | ms.topic | ms.date | ms.author |
---|---|---|---|---|
ggailey777 |
azure-functions |
include |
09/26/2019 |
glenga |
You can use the az storage queue list
command to view the Storage queues in your account, as in the following example:
az storage queue list --output tsv
The output from this command includes a queue named outqueue
, which is the queue that was created when the function ran.
Next, use the az storage message peek
command to view the messages in this queue, as in this example:
echo `echo $(az storage message peek --queue-name outqueue -o tsv --query '[].{Message:content}') | base64 --decode`
The string returned should be the same as the message you sent to test the function.
Note
The previous example decodes the returned string from base64. This is because the Queue storage bindings write to and read from Azure Storage as base64 strings.