Here you can find the full details.
1. Application ID - From App registrations in Azure Active Directory, select your application and copy the Application ID (see here).
2. Key - on the Application settings, select Keys, create a new key (if you don't already have one) and copy its VALUE (see here).
3. Directory ID - Select Azure Active Directory -> Properties and copy the Directory ID (see here).
4. Subscription ID - Select Subscriptions and copy the relevant Subscription ID.
Please note that the subscription should have the following providers:
For your subscription, select Resource providers and select the Register link to register those resource providers (see here, solution #3)
Also, the Application should have at least Contributor role - Click on the Subscription and select Access control (IAM) and add the Application with the right role (see here)