Hello Fred, Welcome to MS Q&A
The error message "A positional parameter cannot be found that accepts argument 'AppId'" indicates that the New-AzureADServicePrincipal command is being used incorrectly. The New-AzureADServicePrincipal command does not accept an AppId parameter directly as a positional argument.
To create a new Azure AD service principal, you should use the -AppId parameter explicitly. Here is the correct syntax:
New-AzureADServicePrincipal -AppId <YourAppId>
Make sure to replace <YourAppId> with the actual Application ID of the app for which you want to create the service principal.
Hopefully this will fix your issue
Kindly accept if it works
Thanks
Deepanshu