Share via

Azure function trigger not able to debug local machine on VS 2022 while uploading blob on storage

Abdul Qadir 0 Reputation points
2023-04-06T03:27:05.0533333+00:00

Hi, I created one sample application through visual studio 2022 and provided connection string from storage for AzureWebJobsStorage and MyDemo but while uploading file on blob location is not hitting the debugger . It is trigger based so it should report itself but it is not. Please suggest what could be the issue?


        [FunctionName("Function1")]
        public void Run([BlobTrigger("samples-workitems/{name}", Connection = "MyDemo")]Stream myBlob, string name, ILogger log)
        {
            log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
        }
    }
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

Azure Blob Storage
Azure Blob Storage

An Azure service that stores unstructured data in the cloud as blobs.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.