Please find the Steps below.
 
1. Login to D365 and Navigate to Settings.
2. Open the Developer Resources and Copy the Service Root URL.
3. Open the Power BI and click on Online Services. Find the D365 Online service.