Forum Discussion

RicSantos's avatar
RicSantos
Advocate I
11 years ago
Solved

Data Refresh on SQL Server on Microsoft Azure Virtual Machine

I have a scenario where the data refresh has been working manually and automatically, and from 07/07/2015 i started receiving errors:

"Last refresh attempt failed. Your gateway is offline or could not be reached. Ensure the computer on which the gateway is installed is not switched off or logged off during the scheduled refresh period."

According to documentation i should not need the Personal Gateway for a connection to SQL Server in Microsoft Azure Virtual Machine.

The scenario where this occurs, and was refreshing data before, is set up with a excel workbook stored in oneDrive for Business.The data is imported with the PowerPivot in Excel and with a connection to a SQL Server in Microsoft Azure Virtual Machines.

I set up the credentials in powerbi the same as the excel powerpivot connection, and this has been working before, and am now getting an error on automatic refresh and manual refresh operations.

The data is not being updated anymore.

9 Replies

  • ashishrj's avatar
    ashishrj
    Power Participant
    Yes you are correct! Data in Sql which is on Azure VM does not need a gateway. But your Azure VM needs to be in running state while refreshing data.
    Also check your SQL server login credentials. It might have been expired. So reset it and keep your Azure VM running and then try refreshing.
    • RicSantos's avatar
      RicSantos
      Advocate I

      ashishrj thank you for your reply!

      Unfortunately none of the cases u suggested happened, i made sure that either the credentials and the AZURE VM was running.

      andre Thank you but this is a VM with SQL and i could not find any "Allow Azure Services" on the machine settings.

      Still hoping to get a solution from @powerbiteam because all reported was working before the latest updates.

  • andre's avatar
    andre
    Memorable Member

    You should make sure that Allow access to Azure services is set to "ON" for the SQL Azuyre Server that is housing your database.

     

    This setting is located in "Firewall Settings" section of your SQL Azure Server properties.

  • andre's avatar
    andre
    Memorable Member
    I am sorry, this setting is for SQL Azure PaaS and not VM... I just realized I misunderstood your issue. Is it possible that this is firewall issue on the VM?
    • PBI77's avatar
      PBI77
      New Member

      are there any guidlines how to connect to a SQL DB on Azure VM. I have tried all sorts but seems like i cant get it to work

    • jason435's avatar
      jason435
      Helper II

      Although I am using PostgreSQL in an Ubunty VM on Azure, I think I am in the same situation.

       

      If I want to upload a Power BI report to powerbi.com and refresh it, I have to install a data gateway in an Azure VM? There is not way to open the firewall up to Power BI so I don't have to pay for another VM.