Exercise 1 – deploying Docker containers on an Azure VM
After preparing the environment in a VM (Windows or Linux), we can publish our application to this machine using Visual Studio 2022.
Right-click on the project in Visual Studio. Then, select Publish and then Azure. We will see Azure Virtual Machine in the list of Azure services, where we can host our application:
Figure 8.24 – Deploying the application to an Azure VM
We need to select the instance after the application has been deployed if the VM includes Docker.