Share via

Exercise - Write code to implement a web application

Rajkumar Balasakuri 40 Reputation points
2024-05-12T16:41:59.5766667+00:00

Not able to Open VS Code using Bash from SandBox environment while executing the Lab "Exercise - Write code to implement a web application"

https://learn.microsoft.com/en-us/training/modules/host-a-web-app-with-azure-app-service/5-exercise-implement-a-web-application?pivots=python

  1. Activated the Sandbox from the Excercise
  2. Selected Python as choice of development envrionment for the SandBox Environment
  3. executed step 3 - Create a new file for your web app by opening application.py in the python interactive editor: but nothing happens and VS Code editor does not open in Azure CLI Environment to carry the remaining part of the Exercise.

Any help/advise would be a great help here.

Azure | Azure Training
0 comments No comments

Answer accepted by question author

TP 157.5K Reputation points Volunteer Moderator
2024-05-12T19:20:45.8766667+00:00

Hi Rajkumar,

Since the updates to cloud shell the editor capability hasn't been working properly. What you can do instead is use a different editor, Nano. You need to modify two of the steps to use Nano, as detailed below:

For Step #3, enter below command instead of what is in the exercise:

nano application.py

For Step #5, press Ctrl+S and then Ctrl+X to save file and exit Nano, instead of what is written in the exercise.

I just tested by completing the exercise using Nano and was successful.

Below is cheatsheet for Nano's shortcut keys in case you need it:

https://www.nano-editor.org/dist/latest/cheatsheet.html

Please click Accept Answer and upvote if the above was helpful.

Thanks.

-TP

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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