Q: Registering an app permission in SharePoint I am needing to connect from Azure (Azure data factory) to SharePoint sites
When I then create a linked service, I get the following error
Failed to get metadata of odata service, please check if service url and 
credential is correct and your application has permission to the resource. 

So, here is what I am doing - detailed:

*

*I registered an app in Azure Active Directory and then went to Grant permission to that app ("add-in" in SharePoint language, if I get it right) with the SharePoint.

So, in the following, I am not understanding:

1.) What to put for domain ? and for redirect.
Is it something like "www.myCompanyDomain.com" and http://www.myCompanyDomain.com ?
or is it something to be taken from Azure Registered app configuration ?


*) In the XML pasted, the "Scope" - Do I specify it literally as it is shown ? (Actually http://sharepoint/content/sitecollection) or is it to be replaced with my company's sharepoint Farm URL ?

Would appreciate any help ...

A: In domain you can use localhost and https://localhost in redirect url like following pic

In the XML, just specify it literally as it is shown and don't replace with your company's sharepoint Farm URL. You can refer to the document for the scope
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/add-in-permissions-in-sharepoint

