Can I access Cassandra from Azure Website - azure

I have a cassandra cluster on Azure and a nodejs websites using "node-cassandra-cql" package. It works with on my local machine. When i deploy the nodejs website to Azure websites - I get PoolConnectionError.
Can I access cassandra on some port from Azure Web Sites or I am restricted to using the managed databases there?

when you say local machine, do you mean your nodejs site is on your local machine and it is able to connect to your cassandra cluster on azure?
Please let us know your azure website name.

Related

Connect Azure app service to SQL Server VM using Windows auth?

Is there a way to connect from a web app (azure app service) to a SQL Server VM in Azure using Windows authentication? I'm not exactly sure if I need to impersonate or if the app needs to run under the identity that has access to the DB on the SQL Server.
I believe that you can do this - but you will need to share a Active Directory between the two - or have then in a private network together so that they are in the same broadcast subnet.
If you need to use your own Active Directory the create a network and a VPN to your site.
If you don't need to use Active Directory then use SQL Auth.
Looks like it is not possible, although it may be with Azure SQL. But not a VM running MSSQL. Ref links below.
SQL Server Integrated Security from an Azure Web Site
https://azure.microsoft.com/en-us/documentation/articles/sql-database-aad-authentication/

Can we connect to elasticsearch cluster from Azure website?

I am trying to use elasticsearch for search functionality in my website. I have setup elasticsearch in my local development environment and it works fine.
I have setup the elasticsearch on Ubuntu Linux machine as given here
I have opened endpoints (ports) 9200 and 9300 on the Linux elasticsearch server.
I have created a virtual network and my website and this elasticsearch server are in the same virtual network.
I am able to connect to my Linux elasticsearch server from my local machine using a public IP.
I could not connect to Linux elasticsearch server from my Azure website either from internal IP like 10.0.0.4 and configured public IP.
I want to check whether connecting to elasticsearch port 9200 from Azure website is possible or not? Also please suggest a way to check existing configuration to troubleshoot the Azure website to elasticsearch connectivity issue.
It is definitely possible. We do it for audit logging and event logging from both azure websites and cloud services.
In the above article I mentioned, it says it is not possible, I tried but could not connect. There is something called hybrid connection but that can be setup only for windows servers. Here is the line that is mentioned in this article
http://code972.com/blog/2014/07/74-the-definitive-guide-for-elasticsearch-on-windows-azure
"Unfrotunately, Azure Websites do not currently support running on a Virtual Network, meaning you can only deploy websites as a Cloud Service if you want them to access the cluster this way."
I checked few more blog posts and found such comments. So, I have given up using Linux server and taken a Windows 2012R2 searver, configured elasticsearch and was able to access elasticsearch cluster now.
If anybody has a solid information on how to connect Azure website to Linux VM please give me links or steps.

Azure Website connecting to Virtual Machine

I have an Azure Website and it is required to consume an elastic search service that's running on a VM.
Although I need to be able to lock the access to elastic search down so only the Azure Website can access it, I can't seem to work out how to do this using the endpoint configuration on the VM.
Am I looking in the wrong place?
Thanks
Carl
You will need to setup a Hybrid Connection between your Web Site and the VM:
Hybrid Connections create a safe tunnel between your Web Site and a VM for example. The screenshot shows the integration between a Web Site and the corporate network, but this also works for VMs running in Azure.
The only requirement is that you install the Hybrid Connection Manager on your VM. More information:
http://azure.microsoft.com/en-us/documentation/articles/integration-hybrid-connection-overview/

How to: Connect to Windows Azure SQL Server Database Through Windows virtual machin

Hi guys,
i created sql server database in windows azure. after i integrate this database with my application its working fine.i want to move my application also windows azure virtual machine.i created required Environment(means install java and tomcat) for this.and also allow the ip address in azure sql server database also.but it showing
Connect open connection error
while connecting database.i also allow the port number in wirewall settings but still i am not able to connect database.
please give any suggestions.
From your question it is a little bit unclear which database you're using -
If you're using 'Windows Azure SQL Database' (i.e. the PaaS version), than you need to ensure that your server's firewall, through the Windows Azure Management Portal, is configured to allow Windows Azure Services and then, of course, you need to use the fully qualified name of the server when trying to connect (i.e. ABCD.database.windows.net)
If you have deployed SQL Server as a VM on IaaS you have two options - either define an endpoint for the VM to open port 1433 (or any other port mapped to 1433 for that matter) to the outside world and then use the cloud service's DNS entry to connect to the database or define a virtual network onto which you will deploy both your database VM and your application VM. if you do the latter you will be able to refer to the database using it's private IP.
this might be somewhat useful

Can I host an application in Windows Azure and have the database stored on different server

Can I host an application in Windows Azure and have the database stored on different server? For example I want to keep my data on a server where I dont have to worry about privicy issues. And if this is possible does it remove the value of having an application hosted in the cloud?
thanks
You mean hosting your application on Windows Azure and then hosting the database on your own servers? This is totally possible, but you'd have to publicly expose your database. You could host your database on SQL Azure and that would be a 'separate server' from your Windows Azure host. With SQL Azure, you can set up a firewall rule to allow only your application to access your database.
If you were to host your database on your own servers, I don't think that it would completely diminish the value of hosting your application on the cloud as your app tier at least would still be hosted "in the cloud". Though, you could also run into performance issues in this scenario as SQL is a little slow to access over the internet using TCP.
You can host on premise and use a secure VPN as part of Azure now. This can be done using Azure network in the latest release.
Can setup an Azure site to site VPN and get access to your private data centre that way.

Resources