Azure上的Cloud Service的静态IP [英] Static IP for Cloud Service on Azure

查看:50
本文介绍了Azure上的Cloud Service的静态IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有工作角色的Cloud Service. Cloud Service设置为可扩展到5个实例.有一项操作需要从Azure与我们的数据中心进行通信.为了进行通信,我们必须将IP地址列入白名单.

我的问题是,由于我已将Cloud Service设置为具有5个实例,因此我需要5个静态IP还是1个?

如果我将其设置为Auto Scale?

,该如何显示

解决方案

单个Cloud Service中的所有五个(或任意数量的)实例都位于单个IP地址后面.

为云服务分配的IP地址不会更改,除非您取消提供和重新提供服务(xyz.cloudapp.net).因此,如果您将cloudapp.net名称解析为IP地址,则可以将该IP地址列入白名单(直到您关闭Cloud Service.然后IP地址就会丢失).

如果要确保始终知道IP地址,即使您取消设置/重新设置,也可以在Azure中设置保留的IP地址,然后将其分配给Cloud Service.

有关保留IP地址的更多信息,此处.

I have a Cloud Service that has Worker Role. Cloud Service is set to scale at 5 instances. There is an operation that requires communication from Azure to our data center. For the communication to happen, we have to Whitelist the IP address.

My question is that since I have set the Cloud Service to have 5 instances, do I need 5 static IPs or 1?

Also how does this pan out if I set it to Auto Scale?

解决方案

All five (or any number of) instances in a single Cloud Service sit behind a single IP address.

The assigned IP address for the cloud service doesn't change unless you deprovision and reprovision the service (xyz.cloudapp.net). So, if you resolved your cloudapp.net name to an IP address, you'd be able to whitelist that IP address (until such time that you take down the Cloud Service. Then the IP address is lost).

If you want to ensure that you always know the IP address, even if you deprovision / reprovision, you can set up a reserved IP address in Azure, and then assign it to the Cloud Service.

More info on reserved IP addresses here.

这篇关于Azure上的Cloud Service的静态IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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