For .NET, licenses are counted per unique host. This means that 1 host = X number of apps = X number of nodes = 1 license. You can monitor any number of .NET applications on a single box or virtual machine, and only one license will be consumed.
How do I manage .NET Agent license consumption?
You can check the number of .NET Core Agent licenses being used from within Controller UI by navigating to Settings → Agents → Machine Agents. The number of .NET unique hosts will let you know the total number .NET licenses being consumed.
To free up the license, you might have to recycle worker processes in the application pool and shutdown coordinator services. In that case, follow the steps to uninstall the .NET Agent outlined here.
Microservice Agent entitlements
In the case of Microservice Agents (including .NET), 5 Agents consume 1 APM_ANY license. As mentioned in ourLicense Entitlements and Restrictions documentation, a Microservices product has the same entitlement as 5 APM Any Language units, restricted to use with the following:
all CloudFoundry-based providers
Microsoft Azure App Services (including Azure WebApps, Azure WebJobs and Azure API Apps)