Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSMQ on Azure Website

I have an existing ASP.NET Web Service (asmx), which I am trying to move into Azure. The logging component of the web service logs the messages in to MSMQ and there is a windows service which reads the message and update the database.

Is this possible using Azure Web APP (Websites) ? Will the web service code be able to create message queues at run time and could push messages into it?

like image 457
Sarvesh Avatar asked Jan 27 '26 05:01

Sarvesh


1 Answers

MSMQ isn't available as an Azure service and you can't create a Windows service with App Service. What you can do is use a storage queue instead of MSMQ with minimal impact on your Web service code. Replace you Windows service with a Web Job that will be triggered when a new message is sent to the queue. You'll have to do a little refactoring but it shouldn't be that bad.

Here's a link to get you started: https://azure.microsoft.com/en-us/documentation/articles/websites-dotnet-webjobs-sdk-get-started/


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!