본문 바로가기
Programming/.NET

[Azure Functions] local에서 TimeTrigger Exception

by 째스터 2024. 1. 1.
728x90

TimeTrigger를 개발하고 있는데 로컬에서 아무 설정 없이 디버깅하면 아래 Exception이 발생한다.

The listener for function 'Functions.GenerateTweet' was unable to start. Microsoft.Azure.WebJobs.Extensions.Timers.Storage: Could not create BlobContainerClient for ScheduleMonitor.

local.settings.json 파일에서 아래와 같이 설정하면 정상 동작이 가능하다.

"AzureWebJobsStorage": "UseDevelopmentStorage=true",

Azure Functions은 Azure Storage와 상호 작용하는데
로컬에서 Azurite와 같은 스토리지 에뮬레이터를 사용하기 위한 설정이다.

728x90

댓글