Azure Network sample for managing network interfaces - - Create a virtual machine with multiple network interfaces - Configure a network interface - List network interfaces - Delete a network interface.
To run this sample:
Set the environment variable
AZURE_AUTH_LOCATION with the full path for an auth file. See how to create an auth file.
git clone https://github.com/Azure-Samples/network-java-manage-network-interface.git cd network-java-manage-network-interface mvn clean compile exec:java
If you don't have a Microsoft Azure subscription you can get a FREE trial account here