Thank you for reaching out to us on Microsoft Q&A forum.
When you are using PowerShell the "present directory" or current working directory is where you should save your 'azuredeploy.json' file. It is the directory in which you are currently located when running commands in the terminal.
Here are some steps to clarify:
1.Create your Azure Resource Manager (ARM) Template 'azuredeploy.json': When you create your ARM template, save it in a directory of your choice on your local machine. For example, you might have a project folder where you keep all your code and related files.
2.Open PowerShell and navigate to the directory where you saved your 'azuredeploy.json' file. You can use the 'cd' command to change it to the appropriate directory as shown in the following screenshot:
We have done practically from our end successfully, kindly follow the steps as per the exercise. Sharing the screenshot below for your reference:
The final output will be in this format as shown in below screenshot:
Before creating resources in the Azure portal during exercises, make sure to choose the sandbox account. Confirm that the current directory matches the sandbox account; if not, switch directories.
Note: Make sure that you are in "Microsoft Learn Sandbox" Directory in the Azure portal before the sandbox expires:
Please don't hesitate to reach out to us if you have any further queries with screenshots of the error (after hiding all PII).
I hope the information provided has been helpful to you! If so, please accept the answer by clicking the "Upvote and Accept Answer" on the post. We value your feedback, and it will help to assist others who might have a similar query.
Thank you.