Skip to content

Commit

Permalink
Merge pull request #4 from anudeepsharma/UpdatedSample
Browse files Browse the repository at this point in the history
Updated sample
  • Loading branch information
Martin Sawicki authored Oct 7, 2016
2 parents 6927f24 + d530ec6 commit baad49e
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 31 deletions.
19 changes: 7 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
---
services: networking
services: Network
platforms: java
author: selvasingh
---

#Getting Started with Networking - Manage Network Interface - in Java #
#Getting Started with Network - Manage Network Interface - in Java #

Networking Manage Network Interface Sample (for 1.0.0-beta2) - demonstrates how to perform common management tasks using the Microsoft Azure Networking service.


- Create a virtual machine with multiple network interfaces
- Configure a network interface
- List network interfaces
- Delete a network interface.
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.


## Running this Sample ##
Expand All @@ -31,10 +30,6 @@ Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an aut

[http://azure.com/java] (http://azure.com/java)

[Azure Networking](https://azure.microsoft.com/en-us/services/virtual-network/)

[Create a virtual machine with multiple network interfaces](https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-multiple-nics/)

If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)

---
Expand Down
11 changes: 5 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>network-java-manage-network-interface</artifactId>
<version>1.0.0-beta2</version>
<version>0.0.1-SNAPSHOT</version>
<name>ManageNetworkInterface</name>
<description></description>
<url>https://github.com/Azure/network-java-manage-network-interface</url>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure</artifactId>
<version>1.0.0-beta2</version>
<version>1.0.0-beta3</version>
</dependency>
</dependencies>
<build>
Expand All @@ -27,16 +27,15 @@
<version>1.4.0</version>
<configuration>
<mainClass>com.microsoft.azure.management.network.samples.ManageNetworkInterface</mainClass>
<cleanupDaemonThreads>false</cleanupDaemonThreads>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -64,4 +63,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

package com.microsoft.azure.management.network.samples;

import com.microsoft.azure.Azure;
import com.microsoft.azure.management.Azure;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.compute.KnownWindowsVirtualMachineImage;
import com.microsoft.azure.management.compute.VirtualMachine;
Expand Down Expand Up @@ -45,7 +45,8 @@ public static void main(String[] args) {
final String publicIpAddressLeafDNS1 = ResourceNamer.randomResourceName("pip1", 24);
final String publicIpAddressLeafDNS2 = ResourceNamer.randomResourceName("pip2", 24);

final String vmName = ResourceNamer.randomResourceName("vm", 24);
// TODO adjust the length of vm name from 8 to 24
final String vmName = ResourceNamer.randomResourceName("vm", 8);
final String rgName = ResourceNamer.randomResourceName("rgNEMI", 24);
final String userName = "tirekicker";
final String password = "12NewPA$$w0rd!";
Expand Down
Loading

0 comments on commit baad49e

Please sign in to comment.