我有一個雲端服務,可以在外部打開一個套接字並且需要列入白名單的IP地址。沒有任何東西會從外部啓動與我的服務的連接。沒有端點的Azure ReservedIPAddress&Cloud Service
當我嘗試與相關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>
- 是否有不指定端點部署這個辦法? (我正在使用VS2017RC進行部署)
- 如果不是,那麼對於虛擬「端點」,xml看起來會是什麼樣子?我將如何運行這些操作?
- 有沒有更好的方法我應該接近這個?
與虛擬端點一起去修復ReservedIP。感謝您的額外信息。 – Prescott