Anzal M S
Anzal M S

Reputation: 89

SSRS Reports hosted in Azure Virtual Machine not available outside the VM

I have created an ssrs report inside an Azure Virtual Machine (SQL Server 2012 SP1 on Windows Server 2012). When I try to view the report from the Virtual machine it opens up in the browser with a proper url like

    http://mysamplevm/ReportServer/Pages/ReportViewer.aspx?%2fMySampleReport&rs:Command=Render

When I try to open the same url from my local machine, it says webpage is not available. I have completed the following settings too.

Upvotes: 3

Views: 4139

Answers (3)

r2018
r2018

Reputation: 545

You have to log into the VM and open windows firewall advanced settings. In Inbound settings, allow port 80 to accept connections.

In addition to what DivineOps has mentioned. In Azure portal (new version), you have to go into NSG to configure firewall rules.

For me, I had to configure inbound rules, both on VM (via RDP) and via Azure portal for it to be accessible.

Upvotes: 1

DivineOps
DivineOps

Reputation: 1686

While astaykov is correct regarding the URL, there are two more steps you need to go through to make your report server accessible from outside your VM:

  1. Open HTTP/HTTPS endpoint for your VM in Azure management portal

  2. Open a firewall port:

Open Windows PowerShell on your Virtual Machine

Run the following (for port 80):

New-NetFirewallRule -DisplayName “Report Server (TCP on port 443)” -Direction Inbound –Protocol TCP –LocalPort 80

Now you can access your report server from remote computers through: http://yourservername.cloudapp.net/reportserver

Upvotes: 2

astaykov
astaykov

Reputation: 30903

You shall access the report server via the public DNS Name - this is sort of http://mysamplevm.cloudapp.net/ReportServer/Page, and not http://mysamplevm/. You can get this when you navigate to the dashboard of your VM in the management portal - right hand links are named Quick glance, the second is DNS Name.

Because your computer has no idea how to find mysamplevm.

Upvotes: 2

Related Questions