question

SOUBHAGYAPATRA-1128 avatar image
0 Votes"
SOUBHAGYAPATRA-1128 asked ChaitanyaNaykodiMSFT-9638 answered

I have created an service bus topic trigger in vs 2019. The function version is V3. and it is working fine on local,but when it is deployed on portal it is stoped working it means ,it unable to read the message from the topic.

Please find my setting file on portal,

{
"id": "/subscriptions/8f991c4d-6b4d-4eec-ba53-f0a5083c1b33/resourceGroups/TMA/providers/Microsoft.Web/sites/tmarawscan/functions/Function1",
"name": "tmarawscan/Function1",
"type": "Microsoft.Web/sites/functions",
"location": "Central US",
"properties": {
"name": "Function1",
"function_app_id": null,
"script_root_path_href": "https://tmarawscan.azurewebsites.net/admin/vfs/site/wwwroot/Function1/",
"script_href": "https://tmarawscan.azurewebsites.net/admin/vfs/site/wwwroot/bin/TMARawmessageRead.dll",
"config_href": "https://tmarawscan.azurewebsites.net/admin/vfs/site/wwwroot/Function1/function.json",
"test_data_href": "https://tmarawscan.azurewebsites.net/admin/vfs/data/Functions/sampledata/Function1.dat",
"secrets_file_href": null,
"href": "https://tmarawscan.azurewebsites.net/admin/functions/Function1",
"config": {
"generatedBy": "Microsoft.NET.Sdk.Functions-3.0.11",
"configurationSource": "attributes",
"bindings": [
{
"type": "serviceBusTrigger",
"connection": "AuditConnectionString",
"topicName": "%AuditScanTopic%",
"subscriptionName": "%AuditSubscriptionName%",
"isSessionsEnabled": false,
"autoComplete": true,
"name": "enqueueMessage"
}
],
"disabled": false,
"scriptFile": "../bin/TMARawmessageRead.dll",
"entryPoint": "TMARawmessageRead.Function1.Run"
},
"files": null,
"test_data": "",
"invoke_url_template": null,
"language": "DotNetAssembly",
"isDisabled": false
}
}

azure-functions
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChaitanyaNaykodiMSFT-9638 avatar image
0 Votes"
ChaitanyaNaykodiMSFT-9638 answered

Hello @SOUBHAGYAPATRA-1128, Thank you for reaching out.
Usually when a function app is running locally and does not trigger when deployed on Azure, the error is due to missing application settings. Can you please confirm if all the required connection strings you used during local development are present? (on the portal you can click on the "Configuration" section on the left panel as shown below)

118072-image.png

You can upload these settings to Azure from local environment by following this documentation.

If this is not the issue, Can you try and stream the logs for your function app ? and see if there are any errors.

Please let me know if there are any concerns. Thank you!



image.png (151.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.