Azureにクラウドサービスワーカーの役割があり、予約済みのIPアドレスで設定されています。リザーブドIPの目標は、ワーカーの役割が外部要求を行うときに常に同じIPから来るようにすることです。外部トラフィックはサービスによって受信されず、内部通信は必要ありません。地図Azure予約済みIPからクラウドサービスのエンドポイント
EDIT:
:Set-AzureReservedIPAssociation -ReservedIPName uld-sender-ip -ServiceName uld-sender
これはが .cscfgファイルに次のNetworkConfigurationセクションを追加しました:予約済みIPは、次のAzure PowerShellコマンドを使用してクラウドサービスに関連していました
<NetworkConfiguration>
<AddressAssignments>
<ReservedIPs>
<ReservedIP name="uld-sender-ip" />
</ReservedIPs>
</AddressAssignments>
</NetworkConfiguration>
サービスを再インストールしたり、Azureで設定を更新しようとすると、私は次のエラーを取得:だから
The operation '5e6772fae607ae0ca387457883bf2974' failed: 'Validation Errors: Error validating the .cscfg file against the .csdef file. Severity:Error, message:ReservedIP 'uld-sender-ip' was not mapped to an endpoint. The service definition must contain atleast one endpoint that maps to the ReservedIP..'.
を、私はそうのような.csdefファイルにエンドポイントを追加しようとしている。また
<Endpoints>
<InternalEndpoint name="uld-sender-ip" protocol="tcp" port="8080" />
</Endpoints>
、私はそうのような.csdefにNetworkTrafficRulesを入力しました:
<NetworkTrafficRules>
<OnlyAllowTrafficTo>
<Destinations>
<RoleEndpoint endpointName="uld-sender-ip" roleName="Sender"/>
</Destinations>
<AllowAllTraffic/>
</OnlyAllowTrafficTo>
</NetworkTrafficRules>
しかし、私はまだ同じエラーが発生します。
私の理解では、エンドポイントはワーカー/ウェブロール間の内部通信、または外部通信を受信するためのポートを開くためにのみ必要とされることです。
EDIT:このシナリオでは予約済みIPをエンドポイントにどのようにマッピングしますか?構成設定または再配備するサービスを更新しようとしたときにエラーを避けるために
* .Cloud.cscfg *と* .csdef *の完全なコードを教えてください。 –