Do your usual Microsoft Azure AD Connect Application mumbo-jumbo to create a new application.
My config looks like this, use it as inspiration:
{
"appId": "********-****-****-****-*************",
"appRoles": [],
"availableToOtherTenants": false,
"displayName": "Nextcloud",