Exercise - Configure network access

Gael Eric 51 Reputation points
2022-11-18T16:37:02.507+00:00

When going through this exercise when running this curl command:

curl --connect-timeout 5 http://$IPADDRESS

I keep getting:

curl: (3) URL using bad/illegal format or missing URL

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.
917 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 23,491 Reputation points Microsoft Employee
    2022-11-18T20:47:55.163+00:00

    Hello, @Gael Eric !

    Where are you seeing the error?
    AZ-900 learning path Describe Azure compute and networking services, module 9 of 14: Exercise - Configure network access.

    What is the error? curl: (3) URL using bad/illegal format or missing URL.
    Task 1: Access your web server, step 1 will take the IP address of the VM you created in an earlier lesson (Exercise - Create an Azure Virtual Machine) and store it as a variable. If it's been more than an hour, that sandbox and all related resources will have been removed and the variable won't be created correctly.

    1. Go back to Exercise - Create an Azure Virtual Machine.
    2. Complete the module to create the VM.
    3. Try Exercise - Configure network access again. This time the variable in Task 1, step 1 should be set correctly and you should see the correct response after running curl on step 2.

    If you are still running into issues and need additional troubleshooting, please let me know. I hope this has been helpful!

    6 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. 06692725 10 Reputation points
    2024-02-15T10:13:57.5666667+00:00

    Hi, I am going through the exercise and under Task 1: Access your web server there is a task to run this command curl --connect-timeout 5 http://$IPADDRESS While running this, I am getting the below error message curl: (3) URL rejected: No host part in the URL When I ran the previous command IPADDRESS="$(az vm list-ip-addresses --resource-group "learn-769709c6-98db-4521-9b80-f495f9f16ef4" --name my-vm --query "[].virtualMachine.network.publicIpAddresses[*].ipAddress" --output tsv)" after running I tried to see the IP address but using the command "echo" the response was blank please suggest how do I proceed further