哪里是位于Windows Azure的服务定义架构(.csdef文件) [英] Where is Azure Service Definition Schema (.csdef File) located in Windows

查看:203
本文介绍了哪里是位于Windows Azure的服务定义架构(.csdef文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a web app running in a Virtual Machine hosted in an Azure Cloud Service. I use Windows. I'm trying to secure the application by installing a SSL certificate.

这说,这样做:

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

"In your development environment, open the service definition file (CSDEF)"

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

Development environment? what's that? Eclipse? (I don't use Visual Studio)

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

This is how this file typically looks like:

<?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)位于

推荐答案

如果你在一个虚拟机中运行的云服务定义并不适用于你。这是用于部署对Web或工作者角色,当你添加一个'的Azure云服务项目,Visual Studio解决方案通常是创建。

If you're running in a Virtual Machine the cloud service definition doesn't apply to you. This is used for deployments to Web or Worker Roles and is normally created when you add an 'Azure Cloud Service' project to a Visual Studio solution.

如果你想使用SSL来保护您的基于虚拟机的服务,你可以这样做,你会不论在线premise,并确保您打开端口443作为一个端点到VM(的http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/).

If you want to protect your VM-based service using SSL you would do this as you would on-premise and ensure that you open port 443 as an endpoint to the VM (http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/).

这篇关于哪里是位于Windows Azure的服务定义架构(.csdef文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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