Hello @Amar-Azure-Practice , You can leverage the management API endpoints to use the data collector one : https://learn.microsoft.com/en-us/rest/api/loganalytics/create-request
You can use Httpclient to make an API call to the endpoints mentioned in the document. You may need to pass an authorization token for validation , for that please refer to this