1. A method, comprising: identifying a virtual machine in an application definition; automatically installing an agent on the virtual machine when the virtual machine is identified as having a designated configuration; automatically identifying, via the agent, a resource associated with the virtual machine; and based on the resource, applying a monitoring policy to the virtual machine to be executed by the agent.