Logic app workflow failing with error "VNetPrivatePortNotConfigured"

151 views Asked by At

I have configured stateful logic app workflow using service bus queue message(peek-lock) connector. After processing message, the "Complete" action failing to remove message from queue using MessageId and throwing exception as enter image description here

Tried to test after updating the below logic app configurations but in that case workflow itself was not triggering

enter image description here

2

There are 2 answers

1
Kaishu On BEST ANSWER

It started working after changing the built-in "Complete Message" action connector to a managed action connector.

1
RithwikBojja On

Logic app workflow failing with error "VNetPrivatePortNotConfigured"

To remove above error you need to do below steps :

Firtsly create vnet in same location as of logic app and service bus and then configure outbound traffic as below:

enter image description here

Then:

enter image description here

Then click Configuration and then click on general settings and change VNet Private Ports to 2:

enter image description here

By following above steps the error you are getting will be resolved.