Azure Functions with Python


Posted by jerryeml on 2021-03-27

Overview

  • Azure 提供的雲端計算服務
  • 支援非常多種語言 C#,Javascript,Java,Python,Powershell
  • Serverless 架構
  • 易於開發,且支援多種EVENT DRIVEN
  • Pay What You Use,有用到才付錢

Scenario

如果你想要... 那麼你可以選... Notes
建立Web api Http trigger Text
上傳檔案後執行 Blob storage trigger Text
建立整串function Duralbe functions Text
資料庫變更後執行 Cosmos GB trigger Text
定期執行 Timmer trigger Text
Azure Event trigger Queue storage, Service Bus, Event Hubs Trigger Text
Process data in real time SignalR Trigger Text

Functions vs Function App

Function App是佈署的一個單位,很多Functions聚在一起被佈署上去到雲端
他們可以擁有同樣的環境變數或是APP設定,然後可以一起被彈性擴展

Pricing

  • 執行時間或是執行次數 (100萬次內/月 免費)

Build up your first functions with python

  1. Install Azure Function Core Tools
  2. Open VS code
  3. Add Azure Function extension
  4. Add a http trigger function
  5. Execute your function func host start
  6. If success, then

What is Authorization Level of azure function

目前支援以下三種方式:

  1. Anonymous
  2. Function
  3. Admin

紀錄在 function.json
任何人想要存取這個Function時都必須在Header 裡加入 x-function-key

Reference


#azure-function #funct-app #azure #cloud #serverless







Related Posts

JS Object

JS Object

第 19 期 Python 程式設計入門-作業任務7

第 19 期 Python 程式設計入門-作業任務7

Modern Web 2018 簡短心得

Modern Web 2018 簡短心得


Comments