Search code examples
azurelogicazure-logic-appsservicebus

Logic app stand error while completeing msg from topic subscription: VNetPrivatePortsNotConfigured


I've received session messages from the Service Bus topic subscription using SB trigger: When a message is received in a topic subscription (peek-lock). Which doesn't delete the messages after processing. To delete the message from the topic subscription I'm using a connector:

Complete the message with message-id. However, it gives me an error:

{ "code": "ServiceProviderActionFailed", "message": "The service provider action failed with error code 'VNetPrivatePortsNotConfigured' and error message 'Using this service provider action in stateful workflows requires VNet integration and the site configuration vnetPrivatePortsCount to be set to a value greater than or equal to 2.'." }

I am looking forward to any suggestions to fix the issue.


Solution

  • To complete message use below design:

    enter image description here

    And now you need to integrate same vnet for both Logic apps and Service bus as below:

    Logic apps:

    enter image description here

    Service Bus:

    enter image description here

    In Logic app, In Configuration section-->General Settings-->2 to VNet Private Ports:

    enter image description here

    Then it will work.

    Output:

    enter image description here