Service Broker on SQL Azure - signalr

I've implemented a notifications module using SignalR. It works well in the test environment but out production application is in Microsoft Azure with SQL Azure. I can't enable Service Broker there. Is there any alternative to this issue?
Thanks in advance

Related

How to deploy asp.net webapp in azure virtual machine

I am quite new to azure and need a quick pointer to how to host an asp.net website in Azure VM. Thanks for your help in advance.
A little background...
We were using a windows server 2012 R2 and were hosting the site in IIS 6. This was an intranet site. Now we are migrating to public cloud so that it is accessible over internet. For this we have acquired an Azure VM (Windows OS). We have installed Visual studio 2013 and SQL server 2012 here. I have installed azure core SDK too.
Here are my questions:
What do I use instead of IIS to host? (Because I am not able to find any related app in azure VM)
Do I need to buy any more licenses for the same?
Should I host it in IIS only and because it is in public cloud, will it be accessible over internet?
Appreciate your help!
Since you have chosen the Infrastructure as a service ( IaaS) route you have to simply replicate the setup that you have on premises.
if IIS component is not there you just have to enable it in windows features.
If you do not want to use IIS you can explore self hosted asp.net applications.
Since you have chosen the Windows server VM image and created the VM you do not need to pay for anything additional for windows license.
By default only 2 endpoints( ports) will be open in a Windows VM. 1 for remote desktop and other for powershell remoting.
refer this post for enabling endpoints for you hosted applications.
https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-classic-setup-endpoints
You have two options basically
Use Azure Paas - Here you would host your existing application as a Cloud service using a web role and a Azure SQL Database. This might mean some changes to the existing application but would need less management from you. You can find the migration steps here
Use Azure Iaas - This is pretty much what you are trying to do. Host your application to a VM and manage all the required software (IIS,Sql server etc) on your own. Although this option might be easier in terms of migrating your application it involves managing the infrastructure on your own. Here is a link on how to install IIS on a Azure VM.
You don't need any additional licenses since you are paying for the VM which includes all required licenses. In case you decide to use SQL Server as Iaas you can also use your existing SQL Server license when running SQL Server on an Azure VM.

Azure PaaS Compatibility Check

I have a client willing to move to Azure PaaS with their ASP.NET web service layer. We are likely to move as Azure Web App with some jobs as Web Jobs. Is there any tool that I can run to check whether the code is compatible with PaaS Web App?
I heard a tool called xRay but not able to find it out. Would love to get your suggestions on this?
What about SQL Server On Prem to Azure SQL - is there any similar tool to check compatibility?
Azure App Service Migration Assistant
The Azure App Service Migration site and the tool can be utilized to migrate sites from Windows and Linux web servers to Azure App Service. As part of the migration the tool will create Web Apps and databases on Azure if needs be, publish content and publish your database.
SQL Database Migration Wizard
The SQL Database Migration Wizard can be used to migrate an on-premises SQL Server database to the latest Azure SQL Database Update (V12).
References:
Azure App Service Migration Assistant
Azure App Service Migration Assistant Compatibility Analysis
Migrate an enterprise web app to Azure App Service
SQL Database Migration Wizard
Fix SQL Server database compatibility issues using SQL Azure Migration Wizard before migration to Azure SQL Database

deploying VISUAL STUDIO 2010 web application to azure cloud services

I have a Web application in Visual Studio 2010 in 4.0 Framework.I want to deploy this app to azure cloud services.The application contains a local sql database as well as session variables.Can anyone please guide me on the steps to follow regarding the same.Do I have to create another database or the local database will do?
You can use a local database for an Azure web application.
However, as mentioned in this article, if you want to reduce the impact that latency will have on your application, you should use an Azure SQL Database.
If you need to migrate your local database to an Azure SQL Database you can look at some of Azure SQL's migration options.
Hope this helps!

SignalR notifications not working. Is IIS required?

I am trying to execute a sample demo SignalR application as shown in this post.
When I am making database changes, notifications are not shown on browser. It remains a blank page.
Is IIS installation required for SignalR to work?
I am building on VS 2013 Community Edition with SQL Server 2012 Express. II8 Express is already installed.
In one other site it is suggested to use:
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO "DOMAIN\ASPNET"
When I execute this, it gives error: Cannot find the user 'DOMAIN\ASPNET', because it does not exist or you do not have permission.
Which domain I need to mention?
I have also enabled BROKER from SSMS.
SignalR can be hosted in IIS or it can be self hosted. I believe in that example you are trying to follow your best bet is to host it in IIS or you can run it in IIS Express or as stated part of a windows service which self hosts a SignalR hub. I actually worked on something similar where we used SQL Notification to update a grid via a SignalR hub. We ended up having to use Change Data capture instead of Sql Dependency because of the limitations with Sql Dependency.
Here are the system requirements for SignalR hub

Deploying .NET application in azure

I have this .NET web forms application which uses SQl server database, It runs fine on local server but as soon as I add windows azure deployment project to it, it is not able to access the database. what should I do ?
To answer your broad question with a broad answer: have you tried to troubleshoot using the Guidelines for Connecting to SQL Azure Database (http://msdn.microsoft.com/en-us/library/windowsazure/ee336282.aspx)?

Resources