没有端点的Azure ReservedIPAddress和Cloud Service

Pre*_*ott 3 azure azure-cloud-services

我有一个外部打开套接字的云服务,需要白名单的IP地址.外部任何东西都不会启动与我的服务的连接.

当我尝试使用关联的ReservedIP地址发布它时,我收到以下错误: Validation Errors: Error validating the .cscfg file against the .csdef file. Severity:Error, message:ReservedIP 'xxxx' was not mapped to an endpoint. The service definition must contain atleast one endpoint that maps to the ReservedIP..

.cscfg

<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="Gateway" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="5" osVersion="*" schemaVersion="2015-04.2.6">
  <Role name="WorkerRole1">
    <Instances count="1" />
    <ConfigurationSettings>
      <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="yyyyy" />
      <Setting name="APPINSIGHTS_INSTRUMENTATIONKEY" value="xxx" />
      <Setting name="ASPNETCORE_ENVIRONMENT" value="dev" />
    </ConfigurationSettings>
  </Role>
  <NetworkConfiguration>
    <AddressAssignments>
      <ReservedIPs>
       <ReservedIP name="xxxxx"/>
      </ReservedIPs>
    </AddressAssignments>
  </NetworkConfiguration>
</ServiceConfiguration>
Run Code Online (Sandbox Code Playgroud)
  1. 有没有办法在不指定端点的情况下部署它?(我正在使用VS2017RC进行部署)
  2. 如果没有,对于虚拟"端点",xml会是什么样子,我运行的风险是什么?
  3. 有没有更好的方法来接近这个?

tib*_*tin 6

我遇到了同样的问题,我的工作解决方案是从这里获取"输入端点" 并将其放在WorkerRole标签内的.csdef文件中.

<Endpoints>
  <InputEndpoint name="StandardWeb" protocol="http" port="80" localPort="80" />
</Endpoints> 
Run Code Online (Sandbox Code Playgroud)