【问题标题】:Where is Azure Service Definition Schema (.csdef File) located in WindowsAzure 服务定义架构(.csdef 文件)在 Windows 中的位置
【发布时间】:2014-10-08 15:17:14
【问题描述】:

我有一个在 Azure 云服务 中托管的虚拟机中运行的 Web 应用程序。我使用 Windows。我正在尝试通过安装 SSL 证书来保护应用程序。

Here it says 这样做:

"在你的开发环境中,打开服务定义文件 (CSDEF)"

开发环境?那是什么?蚀? (我不使用 Visual Studio)

这是这个文件通常的样子:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudService1" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="WCFServiceWebRole2">
    <Endpoints>
      <InputEndpoint name="HttpIn" protocol="http" port="80" />
      <InputEndpoint name="Https" protocol="https" port="443" certificate="SSL" />
    </Endpoints>
    <Imports>
      <Import moduleName="Diagnostics" />
    </Imports>
    <Certificates>
      <Certificate name="SSL" storeLocation="LocalMachine" storeName="My" />
      <Certificate name="MSSecAuth" storeLocation="LocalMachine" storeName="CA" />
      <Certificate name="MSInternetAuth" storeLocation="LocalMachine" storeName="CA" />
    </Certificates>
    <LocalResources>
      <LocalStorage name="Logs" cleanOnRoleRecycle="false" sizeInMB="100"/>
    </LocalResources>
  </WebRole>
</ServiceDefinition>

问题是:服务定义文件(CSDEF)在哪里?

【问题讨论】:

    标签: azure virtual-machine


    【解决方案1】:

    如果您在虚拟机中运行,则云服务定义不适用于您。这用于部署到 Web 或辅助角色,通常在将“Azure 云服务”项目添加到 Visual Studio 解决方案时创建。

    如果您想使用 SSL 保护基于 VM 的服务,您可以像在本地一样执行此操作,并确保打开端口 443 作为 VM 的端点 (http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-10
      • 1970-01-01
      • 2014-12-06
      • 1970-01-01
      相关资源
      最近更新 更多