Azure

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: