How to guide, in Azure register an application in AD and generate app password
In the Azure portal, browse to Azure Active Directory > App Registrations
Enter Application details and account types
Next Click > Certificates & Secrets > New client secret
Enter description and Expirey > Click Add
Make sure to copy the value. You can then sign in as the application with the App ID and value.