Standard Logic app having service bus Queue does not auto work after deployment from git actions

Anagh Bhatt 21 Reputation points
2022-12-15T14:27:46.477+00:00

Hi
I have deployed Standard logic app many times having service bus queue as trigger . It gets deployed successfully many times. Queue name can be seen in drop down list after deployment but cannot auto start picking messages.
When manually i provide connection string it starts working.
Appreciate if any help is provided on this issue,

Regards
Anagh

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-12-16T05:51:44.763+00:00

    @Anagh Bhatt Posting as Answer due to character limit. Are you using Azure or In-built service bus trigger? When you create the workflow there would be workflow.json file and it will define your workflow and another i.e. connection.json that you have shared will have the connection details for your standard logic app.

    271286-image.png

    workflow.json

    {  
        "definition": {  
            "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",  
            "actions": {},  
            "triggers": {  
                "When_a_message_is_received_in_a_queue_(peek-lock)": {  
                    "type": "ApiConnection",  
                    "inputs": {  
                        "host": {  
                            "connection": {  
                                "referenceName": "servicebus"  
                            }  
                        },  
                        "method": "get",  
                        "path": "/@{encodeURIComponent(encodeURIComponent('cxtest'))}/messages/head/peek",  
                        "queries": {  
                            "queueType": "Main",  
                            "sessionId": "None"  
                        }  
                    },  
                    "recurrence": {  
                        "frequency": "Minute",  
                        "interval": 15  
                    }  
                }  
            },  
            "contentVersion": "1.0.0.0",  
            "outputs": {}  
        },  
        "kind": "Stateful"  
    }  
    

    connection.json

    {  
      "managedApiConnections": {  
        "servicebus": {  
          "api": {  
            "id": "/subscriptions/5a975eab-234f-40cb-aa31-1c4c0344477c/providers/Microsoft.Web/locations/northcentralus/managedApis/servicebus"  
          },  
          "connection": {  
            "id": "/subscriptions/subid/resourceGroups/resourcegroup/providers/Microsoft.Web/connections/servicebus"  
          },  
          "connectionRuntimeUrl": "https://dc7081be1cd1508c.17.common.logic-northcentralus.azure-apihub.net/apim/servicebus/guidid/",  
          "authentication": {  
            "type": "Raw",  
            "scheme": "Key",  
            "parameter": "@appsetting('servicebus-connectionKey')"  
          }  
        }  
      }  
    }  
    

    To learn more about the code structure and creating standard workflow using VS code you can refer to this document.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.