Skip to content
Example of sending messages to Service Bus, Storage Queues, Event Grid and Event Hub.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Common
FuncApp1
WebApp1
.gitignore
MJR032.postman_collection.json
MJR032.sln
README.md

README.md

FuncApp1

Add a local.settings.json file.

Add the following code snippet to your local.settings.json file.

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "EventGridMessageAddOptions:TopicKey": "EVENT_GRID_TOPIC_KEY",
    "EventGridMessageAddOptions:TopicEndpoint": "EVENT_GRID_TOPIC_ENDPOINT",
    "EventHubMessageAddOptions:ConnectionString": "EVENT_HUB_CONNECTION_STRING",
    "ServiceBusMessageAddOptions:ConnectionString": "SERVICE_BUS_CONNECTION_STRING",
    "StorageQueueMessageAddOptions:ConnectionString": "STORAGE_QUEUE_CONNECTION_STRING"
  }
}

WebApp1

Add a appsettings.Development.json file.

Add the following code snippet to your appsettings.Development.json file.

{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "System": "Information",
      "Microsoft": "Information"
    }
  },
  "EventGridMessageAddOptions": {
    "TopicKey": "EVENT_GRID_TOPIC_KEY",
    "TopicEndpoint": "EVENT_GRID_TOPIC_ENDPOINT"
  },
  "EventHubMessageAddOptions": {
    "ConnectionString": "EVENT_HUB_CONNECTION_STRING"
  },
  "ServiceBusMessageAddOptions": {
    "ConnectionString": "SERVICE_BUS_CONNECTION_STRING"
  },
  "StorageQueueMessageAddOptions": {
    "ConnectionString": "STORAGE_QUEUE_CONNECTION_STRING"
  }
}
You can’t perform that action at this time.