Table of contents
Quick Scripts
Tips and Tricks
Enable APIs and services for functions
gcloud services enable \
cloudfunctions \
cloudbuild.googleapis.com \
chat.googleapis.com
Write Function
Client Libraries
DotNet Functions Framework
Local Development
Running Function with Framework
Triggers
PubSub 1st Gen
PubSub 2nd Gen
Deploy
Gen 1
where my-first-function is the registered name by which your function will be identified in the Google Cloud console, and –entry-point specifies
your function’s fully qualified class name (FQN).
gcloud functions deploy my-first-function --entry-point HelloWorld.Function --runtime dotnet6 --trigger-http --allow-unauthenticated
test
gcloud functions describe my-first-function
logs
gcloud functions logs read my-first-function