本地端運行設定

從部署的azure拉下本地端用的設定

function部署在azure,有其關聯的儲存體帳戶資訊,在處理檔案存儲時需要連結相關設定。

當然可以自己手動改設定值,但用命令可以完整處理。

  1. 按 F1 鍵來開啟命令選擇區,然後搜尋並執行 Azure Functions: Download Remote Settings.... 命令。

  2. 選擇部署的functionApp。

  3. 檢視下載的設定內容:專案空間>local.setting.json

連線相關機密資訊會被存於local.setting.json 部署時VScode會跳過此檔案。

參考:官方說明 https://docs.microsoft.com/zh-tw/azure/azure-functions/functions-add-output-binding-storage-queue-vs-code?pivots=programming-language-csharp#download-the-function-app-settings

Last updated

Was this helpful?