Azure Cloud Shell comes with the .NET SKD installed - it will be the current Long Term Support (LTS) version.
dotnet new
doesn’t create a project on its own, but it does tell you the other information you need.
When you have the project, you can use the Cloud Shell UI to upload the C# file and then another dotnet
command will run the app.
Need more? Here’s the solution.