My Service bus trigger function reads messages from a service bus topic
[Function("Posting")]
public async Task Run(
[ServiceBusTrigger("topicnName", "subscriptionName",Connection = "AppSettings:SERVICE_BUS_CONNSTRING")]
ServiceBusReceivedMessage message,
ServiceBusMessageActions messageActions)
{
}
SERVICE_BUS_CONNSTRING is retrieved from Azure app configuration. And this function is working locally but not in Azure.
My application settings in Azure for worker runtime is set to dotnet-isolated
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "dotnet-isolated",
"slotSetting": false
}
And my host.json is also configured as below:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensions": {
"serviceBus": {
"messageHandlerOptions": {
"autoComplete": false,
"maxConcurrentCalls": 1
}
}
}
}






