How to troubleshoot web preview in cloud shell

Eric Bardes 40 Reputation points
2024-01-18T08:04:19.5133333+00:00

Hello, I'm following training Exercise - Use shared access signatures to delegate access to Azure Storage in which I have to run a web application in the cloudshell of the sandbox and expose web app port on internet to be able to connect to it via public address this is done via cloudshell proxy/relay (similar to web preview in the portal). To expose the port to internet we are supposed to run command:

curl -X POST http://localhost:8888/openPort/8000;

Which is supposed to print back as a result something of this kind:

{"message":"Port 8000 is open","url":"https://gateway11.northeurope.console.azure.com/n/cc-4016c848/cc-4016c848/proxy/8000/"}

But instead I get

{"message":"Port 8000 is open","url":"https://ux.console.azure.com//proxy/8000/"}

and when trying to connect to that url I get

azureuser [ ~ ]$ curl  https://ux.console.azure.com//proxy/8000/







<pre>Cannot GET /proxy/8000/</pre>


I guess this is an issue with cloudshell proxy/relay but how to further investigate as the cloudshell vm of the sandbox is not accessible from the portal?

To be noted: web preview in portal cloud shell is having the same behavior returning exact same url as above

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,580 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Carlo Kammler 10 Reputation points
    2024-02-12T15:19:50.93+00:00

    I have the same issue - I did not find a solution on neither Github nor the Microsoft Learn forum. Any progress?

    2 people found this answer helpful.

  2. Aouss Al-Twaijry 5 Reputation points
    2024-03-18T20:34:50.7233333+00:00

    I am having the same issue.

    1 person found this answer helpful.
    0 comments No comments

  3. Petr Živný 0 Reputation points
    2024-04-07T06:05:36.32+00:00

    Same issue. It looks like it is still not fixed.


  4. SUDHEERA PUNCHIHEWAGE DON 0 Reputation points
    2024-05-22T08:29:22.7866667+00:00

    I tried the sand box still the error is there. link isn't working

    0 comments No comments

  5. Axilleas Karatzas 0 Reputation points
    2024-05-29T09:43:08.4466667+00:00

    Same issue here

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.