Posts

Showing posts with the label azure

How to get Hub Context with Azure SignalR?

How to get Hub Context with Azure SignalR? I'm using Azure SignalR service. I want to use SignalR hub context in console app. In the old version, I could call: GlobalHost.ConnectionManager.GetHubContext with previously registered: GlobalHost.DependencyResolver.UseRedis(redisHost, redisPort, string.Empty, redisEventName); How can I do this with Azure SignalR in application without ASP.net core? 1 Answer 1 Azure SignalR Service doesn't support ASP.NET SignalR in current phase (public preview). Because Azure SignalR Service is based on ASP.NET Core SignalR. There are a lot of gaps to fill in order to support ASP.NET SignalR. We are actively working on it. You can follow up the progress on this issue https://github.com/Azure/azure-signalr/issues/101 . By clicking "Post Your Answer", you acknowledge that you have read our updated terms of serv...

How much garbage collection is too much

Image
How much garbage collection is too much Our web application has several hundreds of users and is (as always) mainly consisting of legacy code. After our move to Azure we were able to see and measure more metrics than before. We are experiencing performance issues and I see that our garbage collection is going through the roof (As measured in the diagnostics tab of the web app, under the performance counters section). In one minute we were able to have these numbers: And this for a mere 18580 HTTP requests, so on average we have: These numbers are still rising, even though the amount of requests stays about the same (see graph) My question / remarks are: Thank you very much in advance, John Update 1: 30/06/2018 @ 8:16 UTC+2 After updating application insights to monitor the garbage collection more closely I found a big eye-opener in performance hit. First of all, this is the average percent of time spent in GC: It averages around 4,5 percent of the time (but there has been an inactive ...

Active Directory(AD) Authentication in Azure Sql not working

Active Directory(AD) Authentication in Azure Sql not working I am trying to get Azure AD Authentication working against my Azure SQL Database. Next, I logged in to SSMS using MY domain account to create the user: CREATE USER [xxx@yyy.com] FROM EXTERNAL PROVIDER; GO sp_addrolemember db_datareader, [xxx@yyy.com]; GO sp_addrolemember db_datawriter, [xxx@yyy.com]; GO When I attempt to login with the xxxxx@yyy.com account , I get back: Login failed for user 'NT AUTHORITYANONYMOUS LOGON'. (.Net SqlClient Data Provider) Server Name: zzzzz.database.windows.net Error Number: 18456 Severity: 14 State: 1 Line Number: 65536 What am I missing ? Weird observation, if I intentionally use the wrong password I get back this error: AADSTS70002: Error validating credentials. AADSTS50126: Invalid username or password , that tells the AD is somehow working, but something is broken in the overall process. Another weird observation: If I add a valid AD account, it succeeds ...