Go to Azure portal
Select "Azure Active Directory"
Now click on "App registrations"
Now click on "New registration"
Now enter the name and select the Supported account types as per need
and select Redirect URI as per your requirement
Now click on Register
Now the app will look like this
Now click on API permissions
Now click on "Add permission"
A new form will pop up like this
browser to "Dynamics ERP"
A new form will popup like this, select delegated permissions and tick all the permissions
Now click on "Add permissions"
Now go to "Certificates & secrets"
Add "New client secret" for authentication
A new popup will come like this
fill in the description and the expiry
copy the value as it will be turned into *, once you refresh the page.