Hi @hitender singh ,
You can use Azure Private Link to securely connect virtual networks to Azure Automation using private endpoints. Private Link brings Automation service inside the customer’s private VNet. Automation account resources then can be accessed using the private IP address just like any other resource in your VNet. This ensures network isolation & fine-grained access to Automation account and the sub-resources defined under Automation by authorized private network without having to expose the service to public internet.
This is the source of the information provided above.
For more information w.r.t it, refer this Azure document.
Let me know if this is not what you are looking for or if you have any further queries regarding it.