Home > Blockchain >  azure function in 'read only mode' - AzureDevops pipeline deployment from zip
azure function in 'read only mode' - AzureDevops pipeline deployment from zip

Time:01-19

I am deploying azure function using Azure Devops pipeline: enter image description here

Check your function contents... Additionally, you may run it manually through the Test/Run button:

enter image description here

Test you function with async keyword like here: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-javascript#example

module.exports = async function (context, myTimer) {
    var timeStamp = new Date().toISOString();

    if (myTimer.isPastDue)
    {
        context.log('Node is running late!');
    }
    context.log('Node timer trigger function ran!', timeStamp);   
};

CodePudding user response:

it turns out the binding:

{
    "type": "queue",
    "name": "operationRequest",
    "queueName": "operations-queue",
    "connection": "AzureWebJobsStorage",
    "direction": "out"
}

was causing this. basically I have some rights issue with this request which causes the function not to invoke. still investigating this, but it is the reason.

  • Related