Hi Ravinder KUMAR,
It sounds like you're encountering a "ConnectionRefused" error when trying to connect to the Service Bus topic from your Logic App Standard in Visual Studio Code. Here are a few things to check:
- Check the Connection String: Make sure the connection string you’re using is correct and matches the one that works in your console application.
- Review Firewall Settings: Ensure that your firewall and port settings allow connections on the necessary ports (5671 and 5672).
- Examine Network Configuration: Confirm that your network isn’t blocking specific IP addresses or ports. You might also want to try using the Web Socket transport option, which connects through port 443.
If possible, test the connection in a different environment to rule out environment-specific issues.
For your reference, please review the following documentations for further clarification:
- Troubleshooting guide for Azure Service Bus
- Quickstart: Get started with Azure Service Bus topics and subscriptions (.NET)
I hope this answers your query! Let me know if you require any additional help or clarification.