部署具有RDP功能的Web角色 [英] Deploy a web role with RDP capability

查看:88
本文介绍了部署具有RDP功能的Web角色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在发布之前在VS中构建项目时,我可以选择启用RDP.

When building a project in VS prior to publishing, I can select to enable RDP. 

看看PS cmdlet,弄不清楚我是否可以在打包部署时决定不设置这些选项,还是仍然必须在打包中进行设置.

Looking at the PS cmdlets, it’s a bit confusing to understand whether I can decide to NOT set these options when packaging the deployment, or if I have to still do this within the packaging.

我已经创建了服务(为空),并从PS上传了一个.pfx文件.根据我阅读的内容,接下来要做的是调用:

I’ve created my service (empty) and have uploaded a .pfx file into it from PS.  According to what I read, the next thing I need to do is call:

$ secure_string_pwd =转换为安全字符串$ rdpPassword -asplaintext -force

$secure_string_pwd = convertto-securestring $rdpPassword -asplaintext -force

Enable-AzureServiceProjectRemoteDesktop-用户名$ rdpUsername-密码$ secure_string_pwd

Enable-AzureServiceProjectRemoteDesktop -Username $rdpUsername -Password $secure_string_pwd

不过,无论何时执行此操作,它都会抱怨找不到.csdef文件.当我将该文件放在目录中时,它表示找不到ServiceConfiguration.cscfg文件,而实际上该文件应命名为ServiceConfiguration.Cloud.cscfg.

Whenever I execute this though, it complains that it can’t find the .csdef file.  When I put that file in the directory, then it says it can’t find the ServiceConfiguration.cscfg file, when in fact, the file should be named ServiceConfiguration.Cloud.cscfg.

也许我遵循错误的步骤并调用了错误的cmdlet.

Maybe I’m following the wrong steps and calling the wrong cmdlets.

您会如何:

  1. 启用RDP.
  2. 部署新服务.


STom


STom

推荐答案

这不是Visual Studio论坛.请尝试在VS论坛中发布.

This is not a Visual Studio forum.  Please try posting in the VS forum.

. csdef  cscfg 文件是Visual Studio项目控制文件.它们与PowerShell无关.如果您要在VS项目中托管PowerShell,则仍然需要在VS论坛中发帖.

.csdef  and cscfg files are Visual Studio project control files.  They have nothing to do with PowerShell.  If you are trying to host PowerShell in a VS project then you still need to post in the VS forums.


这篇关于部署具有RDP功能的Web角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆