question

VernonZidana-7170 avatar image
0 Votes"
VernonZidana-7170 asked srbhatta-msft commented

Azure is blocking my angular.js routes (works on Aws & GCP)

Hello,

So I have this Angularjs (not newer angular) thats been running on Gcp and I am trying to migrate it to Azure. Right now I am testing it on an Azure VM but somehow some routes are working while others are not working. I am guessing that something is blocking the URLs and I need help figuring what that setting is. The app works on GCP and Aws without any issues.

URLs/route format that work : #something
URLs/route format that don't work : #something@somethingelse

I am suspecting that its a security issue with URLs.

I will appreciate your help

azure-virtual-machines
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Its an Ubuntu serve 20.04LTS Gen2, selected standard security option. Didnt do much else except open HTTP(port 80 tcp) and HTTPS(port 443 tcp) which were initially closed. And has a public ip

0 Votes 0 ·
srbhatta-msft avatar image srbhatta-msft VernonZidana-7170 ·

Hello @VernonZidana-7170 , any update on this?

0 Votes 0 ·

1 Answer

srbhatta-msft avatar image
0 Votes"
srbhatta-msft answered srbhatta-msft commented

Hello @VernonZidana-7170 , Thanks for reaching out to Microsoft QnA.
May I know where did you open these ports for HTTP and HTTPS? Since the application is running on the VM, the ports need to opened both at the network security group level, as well as the OS firewall level of the VM to accept any sort of incoming requests.
Let me know if the above helps?

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello. Thanks for responding! I clicked the VM and then clicked the networking tab. Then I opened/added the ports in the inbound port rules tab. I am new to azure. Can you please tell me where I need to go to open the ports at both the network security group level as well as the OS firewall level?

Did I open the network level already here?

Looking forward to hearing from you

0 Votes 0 ·
srbhatta-msft avatar image srbhatta-msft VernonZidana-7170 ·

Hi @VernonZidana-7170 , yes, you need to open ports at both network security group level as well as OS firewall level. Can you test if the ports 80 and 443 to your VM is working fine or not using the psping tool? You will just have to install the psping tool in your local machine, then open command prompt, navigate to the path where your PSTools suite has been downloaded, and from there try to reach port 80 and port 443 by typing the below commands :
psping <The public IP of your Azure VM>:80
psping <The public IP of your Azure VM>:443

Let me know if it helps? I am assuming the fact that the application is hosted on the VM and you are unable to reach it from other sources (which means inbound port connectivity might not be correctly working).

0 Votes 0 ·

This is what I got(& still the routes are not working)

TCP connect to MY PUBLIC IP:80:
5 iterations (warmup 1) ping test:
Connecting to MY PUBLIC IP:80 (warmup): from 192.168.8.102:54575: 338.35ms
Connecting to MY PUBLIC IP:80: from 192.168.8.102:54576: 343.07ms
Connecting to MY PUBLIC IP:80: from 192.168.8.102:54578: 310.12ms
Connecting to MY PUBLIC IP:80: from 192.168.8.102:54579: 353.33ms
Connecting to MY PUBLIC IP:80: from 192.168.8.102:54580: 328.48ms

TCP connect statistics for MY PUBLIC IP:80:
Sent = 4, Received = 4, Lost = 0 (0% loss),
Minimum = 310.12ms, Maximum = 353.33ms, Average = 333.75ms





TCP connect to MY PUBLIC IP:443:
5 iterations (warmup 1) ping test:
Connecting to MY PUBLIC IP:443 (warmup): from 0.0.0.0:54600:
The remote computer refused the network connection.
Connecting to MY PUBLIC IP:443: from 0.0.0.0:54601:
The remote computer refused the network connection.
Connecting to MY PUBLIC IP:443: from 0.0.0.0:54602:
The remote computer refused the network connection.
Connecting to MY PUBLIC IP:443: from 0.0.0.0:54603:
The remote computer refused the network connection.
Connecting to MY PUBLIC IP:443: from 0.0.0.0:54604:
The remote computer refused the network connection.

TCP connect statistics for MY PUBLIC IP:443:
Sent = 4, Received = 0, Lost = 4 (100% loss),
Minimum = 0.00ms, Maximum = 0.00ms, Average = 0.00ms

0 Votes 0 ·

are you there?

0 Votes 0 ·
Show more comments