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

Accepted answer
  1. TP 79,061 Reputation points
    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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful