Hey @SMART SOLUTION ,
Can you further explain what you mean by "send data to the device from hub through Azure VM Apache server"?
Do you have a web app running on Apache in an Azure VM and want to trigger a command being sent to the device?
A good starting point is the iot-hub-devguide-messaging to understand what possibilities exist for bidirectional communication.
Once you have chosen the right type of IoT Hub messaging, you can integrate it into your web app, either running on Azure App services or based on Apache in your Azure VM.
With more background the experts might provide more specific answers.