Having problems with Web Deploy with untrusted server
Hi,
I'm trying to webdeploy to our custom IIS vm in Azure.
When i connect to it -manually- (eg. in Visual Studio to check / verify my creds) i get a pop saying the SSL cert is not trusted, blah blah blah. Message is legit and correct.
I thought there was a way to tell msdeploy to accept untrusted ssl's?
eg.
Web.deploy.cmd
/Y
/M:https://AutoDeploy:8172/MsDeploy.axd
-allowUntrusted
/U:AutoDeploy\Administrator
/P:Passw0rd
/A:Basic
reference : Troy Hunt's blog post.
Is there a way we can do this? If not, could i manually fire off msdeploy.exe myself for a custom deploy command?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 04 Feb, 2015 03:58 AM
You can call any command for sure.
Why wouldn't you use built-in deployment provider?
2 Posted by Pure Krome on 04 Feb, 2015 04:00 AM
because there's no checkbox to do
-allowUntrusted... or is there?(the build-in
MSDeployprovider works 100000% sweet with our production azure websites. but for our dev sites (ie. the developers who's forks continuously deploy to their iis website on a single azure vm) i'm stuck trying to get this to work :(3 Posted by Pure Krome on 04 Feb, 2015 04:01 AM
Also - what's the command line if i have to?
msdeploy.exeis the name? orweb.deploy.cmd... ?Support Staff 4 Posted by Feodor Fitsner on 04 Feb, 2015 04:02 AM
Built-in Web Deploy provider should allow untrusted certificates.
msdeploy.exe- it's installed on build workers, but not inPATH5 Posted by Pure Krome on 04 Feb, 2015 04:13 AM
hmmm. ok. then i must have another issue then if you're already doing that bit, for us :(
It just hangs here...
Hard to test this stuff :(
Is there any chance u might be able to update the AV MSDeploy docs to list the actual msdeploy command line that is ran, just for reference please?
Support Staff 6 Posted by Feodor Fitsner on 04 Feb, 2015 04:31 AM
The trick is that it doesn't use msdeploy.exe command line, but it uses managed Web Deploy API.
If you manage to deploy this from command line using msdeploy.exe then you should be able to use the same settings in AV.
7 Posted by Pure Krome on 04 Feb, 2015 04:53 AM
Got it working in AV with UI. I'm guessing the problem was with my Web Management Service. Restarting that and it all worked.
Sorry for wasting your time :(
8 Posted by Pure Krome on 04 Feb, 2015 04:53 AM
Ref:
Pure Krome closed this discussion on 04 Feb, 2015 04:53 AM.