Hi Anmol,
You need to make sure that you have a rule to open 8000 set up in a NSG or Azure Firewall. Go to your Resource Group that your server resides in > and find your NSG:
Go to Inbound security rules > +Add
Then change your Destination port ranges to 8000 and you can customize your source to your IP address or you can allow Any if you want anyone to be able to access this server.
Create the rule, then try to access your server.
If this is helpful please accept answer.