Skip to content

Commit

Permalink
Revert sample from using China north
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed Oct 4, 2016
1 parent c132974 commit 5bdfd29
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static void main(String[] args) {

Network network = azure.networks()
.define(vnetName)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.withAddressSpace("172.16.0.0/16")
.defineSubnet("Front-end")
Expand All @@ -102,7 +102,7 @@ public static void main(String[] args) {

System.out.println("Creating a security group for the front end - allows SSH and HTTP");
NetworkSecurityGroup frontEndNSG = azure.networkSecurityGroups().define(frontEndNSGName)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withNewResourceGroup(rgName)
.defineRule("ALLOW-SSH")
.allowInbound()
Expand Down Expand Up @@ -140,7 +140,7 @@ public static void main(String[] args) {
+ "denies all outbound internet traffic ");

NetworkSecurityGroup backEndNSG = azure.networkSecurityGroups().define(backEndNSGName)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.defineRule("ALLOW-SQL")
.allowInbound()
Expand Down Expand Up @@ -178,7 +178,7 @@ public static void main(String[] args) {
System.out.println("Creating a network interface for the front end");

NetworkInterface networkInterface1 = azure.networkInterfaces().define(networkInterfaceName1)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.withExistingPrimaryNetwork(network)
.withSubnet("Front-end")
Expand All @@ -200,7 +200,7 @@ public static void main(String[] args) {
System.out.println("Creating a network interface for the back end");

NetworkInterface networkInterface2 = azure.networkInterfaces().define(networkInterfaceName2)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.withExistingPrimaryNetwork(network)
.withSubnet("Back-end")
Expand All @@ -221,7 +221,7 @@ public static void main(String[] args) {
Date t1 = new Date();

VirtualMachine frontEndVM = azure.virtualMachines().define(frontEndVMName)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.withExistingPrimaryNetworkInterface(networkInterface1)
.withPopularLinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_16_04_LTS)
Expand All @@ -247,7 +247,7 @@ public static void main(String[] args) {
t1 = new Date();

VirtualMachine backEndVM = azure.virtualMachines().define(backEndVMName)
.withRegion(Region.CHINA_NORTH)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.withExistingPrimaryNetworkInterface(networkInterface2)
.withPopularLinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_16_04_LTS)
Expand Down

0 comments on commit 5bdfd29

Please sign in to comment.