2014-10-08 24 views
0

我有一個在虛擬機中運行的Web應用程序,它運行在Azure雲服務中。我使用Windows。我試圖通過安裝SSL證書來保護應用程序。位於Windows中的Azure服務定義架構(.csdef文件)在哪裏

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)所處的業務定義文件?

回答

3

如果您在虛擬機中運行,則雲服務定義不適用於您。這用於部署到Web或工作人員角色,並且通常在將「Azure Cloud Service」項目添加到Visual Studio解決方案時創建。

如果要使用SSL來保護基於VM的服務,您可以像使用內部部署一樣執行此操作,並確保將端口443作爲VM的端點(http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-set-up-endpoints/)打開。

相關問題