Deploying compute workloads by using images and containers Part 2 – Create a dotnet app and a docker file
1 min read

Deploying compute workloads by using images and containers Part 2 – Create a dotnet app and a docker file

Launch the cloudshell from the Azure Portal and create a folder and a dotnet console application.

cd clouddrive
mkdir ipcheck
cd ipcheck/

Create a new console project

dotnet new console

Create a new file called Dockerfile and launch code inside the cloudshell.

Copy the sourcecode from the learn excercise and run the application to verify that the ipaddress is found.

And finally copy the sourcecode to the Dockerfile, save and close.

Now in the next part we will create an Azure container registry and publish our ipcheck console application!

Leave a Reply