Error: (3) URL rejected: No host part in the URL

Tamir Basin 0 Reputation points

In the module "Describe Azure compute and networking services" -> "Exercise - Configure network access" - > "Task 1: Access your web server" -> Excersize 2 (curl --connect-timeout 5 http://$IPADDRESS) I get the error "(3) URL rejected: No host part in the URL"

Running "echo $IPADDRESS" displays nothing.
However, I can see the Public IP in Azure for "my-vm"

Kindly advise,

Thank you,


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.
836 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Konstantinos Passadis 17,276 Reputation points

    Hello @Tamir Basin !

    Welcome to Microsoft QnA!

    It seems that the IPADDRESS is not declared into the console you are using

    Declare it as $IPADDRESS= ( your ip)

    and re try !


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!


    0 comments No comments

  2. Rakesh Gurram 2,325 Reputation points Microsoft Vendor

    Hi Tamir Basin,

    Thank you for your reaching out to us on Microsoft Q&A forum.

    From your question we understand that you are trying to complete the exercise from Describe Azure compute and networking services.

    We had tried to perform the exercise and successfully completed it from our side.

    User's image

    When we run the following command (curl --connect-timeout 5 http://$IPADDRESS)


    The URL is displaying the below the image:

    3 We suggest you start the lab from the beginning and complete the steps as mentioned in the exercise. Wait for each command in the exercise to execute completely.

    Please don't hesitate to reach out to us if you have any other queries with screenshots of the error.

    If the information is helpful, please Accept Answer so that it would be helpful to community members.

    Thank you.

    0 comments No comments