Hi Sarah Wells,
Thank you for reaching out to us on the Q&A forum.
Based on my understanding of the issue, you're practicing the following Learning Path exercise:
Section: Describe Azure architecture and services
Module: Describe Azure compute and networking Azure
Unit 3: Exercise - Create an Azure Virtual Machine
Unit 9: Exercise -configure network access.
Please correct me if you are referring to a different exercise.
Was the sandbox still active when you copy/pasted the above command into the cloud shell?
It is intended for you to activate a new sandbox and complete all of the tasks in Unit 3 (earlier exercise) and Unit 9 (exercise you are referring to) in less than 1 hour. The sandbox expires after an hour and all the resources are deleted automatically.
If you scroll back up to the top of the exercise you can see the remaining time before the sandbox expires.
Please go back to Unit 3 Exercise, activate a new sandbox, perform all of the tasks, jump to Unit 9 Exercise, perform all of the tasks, and then reply back with your results.
We have tried multiple times to reproduce the issue, but we haven't faced any error.
If the issue continues to persist, please do not hesitate to reach out to us.
If you have found the answer provided to be helpful, please click on the "Accept answer" button so that it is useful for other members in the Microsoft Q&A community.