Hello,
I've followed MS and a few other sites links on how to setup Cloud Printing within Azure AD.
I'm running into this error and wondering if anyone else has? I've not figure it out, it seems like its a permission issue.
Publish-CloudPrinter : Exception calling "RetrieveOAuthToken" with "3" argument(s): "System.AggregateException: One ormore errors occurred. ---> System.Exception: Error requesting OAuth token. WebTokenRequestStatus:
UserInteractionRequired, error: 3399614476, message: AADSTS65001: The user or administrator has not consented to use
the application with ID 'cc0c9ad7-8081-4322-ac28-bd3a4f6b55ab' named 'PrintNativeClient'. Send an interactive
authorization request for this user and resource.
Trace ID: 888ffe39-f4ad-4d4c-b9d6-ac9e89943800
Correlation ID: 53a03434-834f-4f85-909e-a7bc7d257d4f
Timestamp: 2018-12-09 21:35:58Z
at CloudPublishHelpers.<RetrieveOAuthTokenAsync>d__0.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at CloudPublishHelpers.RetrieveOAuthToken(String resourceId, String clientId, String azureTenantGuid)
---> (Inner Exception #0) System.Exception: Error requesting OAuth token. WebTokenRequestStatus:
UserInteractionRequired, error: 3399614476, message: AADSTS65001: The user or administrator has not consented to use
the application with ID 'cc0c9ad7-8081-4322-ac28-bd3a4f6b55ab' named 'PrintNativeClient'. Send an interactive
authorization request for this user and resource.
Trace ID: 888ffe39-f4ad-4d4c-b9d6-ac9e89943800
Correlation ID: 53a03434-834f-4f85-909e-a7bc7d257d4f
Timestamp: 2018-12-09 21:35:58Z
at CloudPublishHelpers.<RetrieveOAuthTokenAsync>d__0.MoveNext()<---
"
At line:1 char:1
+ Publish-CloudPrinter -Printer "NO-IT-PRINTER" -Manufacturer "HP" -Mod ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Publish-CloudPrinter], MethodInvocationException
+ FullyQualifiedErrorId : Exception,Publish-CloudPrinter