Your App2container process starts with discovering the running .NET applications in your server by creating application inventory and then analyzing them.
As you are using Worker Machine for all your App2container process, you will use “remote” process. Once you run the remote commands from your worker machine, it will connect with your source server and run the commands on it.
Using Worker Machine with the remote connectivity enables you to standardize your scaling activities.
Run the “app2container remote inventory” command as follows to list the .NET applications that are running on your server.
use your “Source Server” private IP address with the “target” parameter below.
app2container remote inventory --target <private-IP of your source server>
Once you run the command, you will see “Remote inventory retrieved successfully” output as below.
App2container creates a separate folder for each “Target” source server in worker machine.
Navigate to “C:\Users\Administrator\AppData\Local\app2container\remote" folder as below.
You should see a folder named with your “source-server” IP address.
Appdata folder is a hidden folder by default. If you can’t see this folder, Select “View” > and Check “Hidden items” box. Or Navigate to “C:\Users\Administrator\AppData" folder directly.
Inside the folder, you should see “inventory.json” file which app2container retrieved the .NET application inventory from your source server remotely.
Open the “inventory.json” file with notepad. The file includes a JSON object collection with one entry for each application.
Locate the application ID for the application in the JSON output of the inventory command and then run the “app2container remote analyze –application-id <net-app-id> –target <source-server-private-IP>” command as follows, replacing net-app-id with the application ID that you copied in the previous step.
app2container remote analyze --application-id <net-app-id> --target <source-server-private-IP>
Output of the “Analyze” command provides what tasks has been completed by app2container and recommendations for the next steps.
With Analyze command, App2container creates a folder for each application. Locate it as below and go inside the folder.
Locate the analysis.json file inside the folder and open the file with notepad for review.
Once you open the file, you will see that analysis.json file has 2 sections: EDITABLE and NON-EDITABLE.
Capability to upgrade the Operating System is one of the best benefits of containerization process. With App2container, this process could be handled at scale.
This analysis is especially important when working with legacy applications or where there is not enough application documentation.
With this step, you completed the analysis and can continue with containerization of your application in the next section.