A Cloud Storage triggered .NET Cloud Functions template.
Run the function:
dotnet run
...
2022-11-22T10:48:04.589Z [Microsoft.Hosting.Lifetime] [info] Now listening on: http://127.0.0.1:8080
Inside the scripts folder, run test_local.sh to test the function locally:
./test_local.sh
< HTTP/1.1 200 OK
< Content-Length: 0
Run setup.sh to enable required services, grant the
pubsub.publisher
role to the Cloud Storage service account and create a Google
Cloud Storage (GCS) bucket:
./setup.sh
Cloud Code does not support deploying .NET functions yet but you can deploy with
gcloud
.
Run deploy.sh to deploy to Google Cloud:
./deploy.sh
Run test_cloud.sh to test the function in Google Cloud:
./test_cloud.sh
When you're done, you can cleanup created resources:
./cleanup.sh