Azure Support for Static Virtual Service IP Address

Overview

Starting with Avi Vantage release 18.2.5, configuration of static private IP address and public IP address is supported for virtual service in Azure cloud.

Follow the steps mentioned in the below sections for configuration of private IP address and public IP address.

Creating a Virtual Service with Static Private and Static Public IP Address


Login to the Avi CLI and use the configure virtualservice <virtual service name> command to associate the virtual service with a public IP address and private IP address.


[admin:10-145-130-218]: > configure virtualservice vs1
[admin:10-145-130-218]: virtualservice> pool_ref pool-1
[admin:10-145-130-218]: virtualservice> services port 80
New object being created
[admin:10-145-130-218]: virtualservice:services> save
[admin:10-145-130-218]: virtualservice> vip
New object being created
[admin:10-145-130-218]: virtualservice:vip> ip_address 10.145.130.111
[admin:10-145-130-218]: virtualservice:vip> floating_ip 40.65.108.3
[admin:10-145-130-218]: virtualservice:vip> save
[admin:10-145-130-218]: virtualservice> save

Changing Private and Public IP Allocation Type from Auto Allocate to Static IP


Login to the Avi CLI and perform the following changes:

  • Set an index value for the virtual service.
  • Set the value of avi_allocated_vip and auto_allocate_ip to No and configure the required private IP address.

[admin:10-145-130-218]: > configure virtualservice vs1
[admin:10-145-130-218]: virtualservice> vip index 1
[admin:10-145-130-218]: virtualservice:vip> no avi_allocated_vip
[admin:10-145-130-218]: virtualservice:vip> no auto_allocate_ip
[admin:10-145-130-218]: virtualservice:vip> ip_address 10.145.130.111
[admin:10-145-130-218]: virtualservice:vip> no avi_allocated_fip
[admin:10-145-130-218]: virtualservice:vip> floating_ip 40.65.108.3
[admin:10-145-130-218]: virtualservice:vip> save
[admin:10-145-130-218]: virtualservice> save

Changing Public IP allocation type from Static to Auto allocate


Login to the Avi CLI and perform the following changes:

  • Set an index value for the virtual service
  • Configure the required subnet_uuid once the auto_allocate_ip flag is enabled. Use the no ip_address command to set the public IP address allocation from static to auto allocate.

[admin:10-145-130-218]: virtualservice> vip index 1
[admin:10-145-130-218]: virtualservice:vip> auto_allocate_ip
[admin:10-145-130-218]: virtualservice:vip> subnet_uuid <subnet_name>
[admin:10-145-130-218]: virtualservice:vip> no ip_address
[admin:10-145-130-218]: virtualservice:vip> save
[admin:10-145-130-218]: virtualservice> save

Note: Changing public ip allocation type from auto allocate to static is not allowed.