[Python][Azure VM] Azure Django app: connect to MySQL running on Azure VM RRS feed

  • Question

  • I have created an Azure Django Web app and an Azure VM (Ubuntu) VM on which I have installed MySQL. I've also created a DB and a mysql user with * host.

    Now I need to connect to the MySQL DB from the Django App. The Azure Django tutorials that I have looked at all assume that I am running MySQL with ClearDB MySQL, which I am not.

    I added an Endpoint (MySQL) to the VM, which means that I can now access MySQL remotely. But, how can I limit this so only the Django App (or, at least, only my Azure resources) have MySQL access (even if the password becomes known)?MySQL users can be created that only allow access from specific IP addresses, but can I get a single static ip address for the app that will never change? If so, how? 

    Sunday, September 27, 2015 9:34 AM


All replies