Azure Hybrid Cloud Print

Colton Lacy
Occasional Contributor

I have followed the setup found here: When I am attempting to publish a printer from an Azure AD joined Windows 10 device I receive this error:

Invoke-RestMethod : {"Message":"An error has occurred."}

At C:\Program Files\WindowsPowerShell\Modules\PublishCloudPrinter\\PublishCloudPrinter.psm1:177 char:5

+ Invoke-RestMethod -Uri $url -Method Get -ContentType "application ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException

+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand


2 Replies

I have figured out my problem. It was the versioning setup on the web.config file on the print server. If you are experiencing this issue double check your the version numbers on your web.config file.


The below screenshot from my on-premise print server causes errors if you have different versions and put them as different versions behind the oldVersion and the newVersion in the web.config file.

HybridPrintWrong.PNGWrong web.config



The below screenshot is correct if you put the same versions behind the oldVersion and the newVersion in the web.config file.

HybridPrintCorrect.PNGCorrect web.config

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
50 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
32 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
15 Replies
Dev channel update to 80.0.355.1 is live
josh_bodner in Discussions on
67 Replies