How to deploy NServiceBus Implemented in Windows Service with MSMQ on Azure VM

We have Implemented the NserviceBus in Window Service(with MSMQ). Now we want to deploy it on Azure. We created a VM on Azure and we are not been able to connect the queue running on VM through Web API. So suggest how we can do that.

Note: We are using DIRECT=TCP:{ServerIP}\private${queuename}

Help us to get it resolved. Thanks.

I’m not sure what you mean with the following sentence

we are not been able to connect the queue running on VM through Web API

Are you unable to connect with NServiceBus to MSMQ in your Virtual Machine or via other means?

Because normally in NServiceBus you don’t specify anything in configuration related to queue-names. If you check out our sample, the only configuration is the transport type and the name of the endpoint.