Apologies for the error you're facing!
You can try to manually define the blob path and push it to the queue binding yourself. Since PowerShell doesn’t allow direct retrieval of the actual blob path from the output binding. You can update the MyTimerFunction/run.ps1
with the code below:
param($Timer)
# Define timestamp format
$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
# Construct blob name using the same timestamp
$blobPath = "output-2025/blob-$timestamp.json"
# Generate JSON content (simulate API response)
$jsonContent = @{
"id" = "12345"
"name" = "Example Data"
} | ConvertTo-Json -Depth 3
# Push data to Blob Storage
Push-OutputBinding -Name outputBlobs -Value $jsonContent
# Push blob path to Queue Storage
Push-OutputBinding -Name workQueue -Value $blobPath
Write-Host "Blob written: $blobPath and pushed to queue"
Then edit the function.json file and configure Blob and Queue output bindings as follows:
{
"bindings": [
{
"name": "Timer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 */5 * * * *"
},
{
"name": "outputBlobs",
"type": "blob",
"direction": "out",
"path": "output-2025/blob-{DateTime}.json",
"connection": "AzureWebJobsStorage"
},
{
"name": "workQueue",
"type": "queue",
"direction": "out",
"queueName": "work-queue",
"connection": "AzureWebJobsStorage"
}
]
}
You can refer to this link https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob?tabs=isolated-process%2Cextensionv5%2Cextensionv3&pivots=programming-language-powershell
Also, check if this is useful in your case - https://stackoverflow.com/questions/59581748/azure-function-blob-output-binding-path-parameter-javascript