diff --git a/azure-samples/src/main/java/com/microsoft/azure/management/network/samples/ManageNetworkSecurityGroup.java b/azure-samples/src/main/java/com/microsoft/azure/management/network/samples/ManageNetworkSecurityGroup.java index 5edd79c1bf36f..aa3fa968a603f 100644 --- a/azure-samples/src/main/java/com/microsoft/azure/management/network/samples/ManageNetworkSecurityGroup.java +++ b/azure-samples/src/main/java/com/microsoft/azure/management/network/samples/ManageNetworkSecurityGroup.java @@ -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") @@ -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() @@ -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() @@ -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") @@ -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") @@ -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) @@ -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)