You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/hdinsight/hdinsight-extend-hadoop-virtual-network.md
+26-27Lines changed: 26 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: hrasheed
6
6
ms.service: hdinsight
7
7
ms.custom: hdinsightactive
8
8
ms.topic: conceptual
9
-
ms.date: 05/28/2019
9
+
ms.date: 06/04/2019
10
10
---
11
11
12
12
# Extend Azure HDInsight using an Azure Virtual Network
@@ -218,7 +218,7 @@ As a managed service, HDInsight requires unrestricted access to the HDInsight he
218
218
219
219

220
220
221
-
### <a id="hdinsight-ip"></a> HDInsight with network security groups
221
+
### HDInsight with network security groups
222
222
223
223
If you plan on using **network security groups** to control network traffic, perform the following actions before installing HDInsight:
224
224
@@ -323,28 +323,29 @@ The following Resource Management template creates a virtual network that restri
323
323
324
324
* [Deploy a secured Azure Virtual Network and an HDInsight Hadoop cluster](https://azure.microsoft.com/resources/templates/101-hdinsight-secure-vnet/)
325
325
326
-
> [!IMPORTANT]
327
-
> Change the IP addresses used in this example to match the Azure region you are using. You can find this information in the [HDInsight with network security groups and user-defined routes](#hdinsight-ip) section.
328
-
329
326
### Azure PowerShell
330
327
331
328
Use the following PowerShell script to create a virtual network that restricts inbound traffic and allows traffic from the IP addresses for the North Europe region.
332
329
333
330
> [!IMPORTANT]
334
-
> Change the IP addresses used in this example to match the Azure region you are using. You can find this information in the [HDInsight with network security groups and user-defined routes](#hdinsight-ip) section.
331
+
> Change the IP addresses for `hdirule1` and `hdirule2` in this example to match the Azure region you are using. You can find this information in the [HDInsight with network security groups and user-defined routes](#hdinsight-ip) section.
335
332
336
333
```powershell
337
334
$vnetName = "Replace with your virtual network name"
338
335
$resourceGroupName = "Replace with the resource group the virtual network is in"
339
336
$subnetName = "Replace with the name of the subnet that you plan to use for HDInsight"
337
+
340
338
# Get the Virtual Network object
341
339
$vnet = Get-AzVirtualNetwork `
342
340
-Name $vnetName `
343
341
-ResourceGroupName $resourceGroupName
342
+
344
343
# Get the region the Virtual network is in.
345
344
$location = $vnet.Location
345
+
346
346
# Get the subnet object
347
347
$subnet = $vnet.Subnets | Where-Object Name -eq $subnetName
348
+
348
349
# Create a Network Security Group.
349
350
# And add exemptions for the HDInsight health and management services.
> This example demonstrates how to add rules to allow inbound traffic on the required IP addresses. It does not contain a rule to restrict inbound access from other sources.
433
-
>
434
-
> The following example demonstrates how to enable SSH access from the Internet:
This example demonstrates how to add rules to allow inbound traffic on the required IP addresses. It does not contain a rule to restrict inbound access from other sources. The following code demonstrates how to enable SSH access from the Internet:
@@ -452,7 +453,7 @@ Use the following steps to create a virtual network that restricts inbound traff
452
453
2. Use the following to add rules to the new network security group that allow inbound communication on port 443 from the Azure HDInsight health and management service. Replace `RESOURCEGROUP` with the name of the resource group that contains the Azure Virtual Network.
453
454
454
455
> [!IMPORTANT]
455
-
> Change the IP addresses used in this example to match the Azure region you are using. You can find this information in the [HDInsight with network security groups and user-defined routes](#hdinsight-ip) section.
456
+
> Change the IP addresses for `hdirule1` and `hdirule2` in this example to match the Azure region you are using. You can find this information in the [HDInsight with network security groups and user-defined routes](#hdinsight-ip) section.
Use double-quotes around `id` in the command if you don't get the expected results.
477
-
478
477
4. Use the following command to apply the network security group to a subnet. Replace the `GUID` and `RESOURCEGROUP` values with the ones returned from the previous step. Replace `VNETNAME` and `SUBNETNAME` with the virtual network name and subnet name that you want to create.
479
478
480
479
```azurecli
@@ -483,14 +482,14 @@ Use the following steps to create a virtual network that restricts inbound traff
483
482
484
483
Once this command completes, you can install HDInsight into the Virtual Network.
485
484
486
-
> [!IMPORTANT]
487
-
> These steps only open access to the HDInsight health and management service on the Azure cloud. Any other access to the HDInsight cluster from outside the Virtual Network is blocked. To enable access from outside the virtual network, you must add additional Network Security Group rules.
488
-
>
489
-
> The following example demonstrates how to enable SSH access from the Internet:
These steps only open access to the HDInsight health and management service on the Azure cloud. Any other access to the HDInsight cluster from outside the Virtual Network is blocked. To enable access from outside the virtual network, you must add additional Network Security Group rules.
487
+
488
+
The following code demonstrates how to enable SSH access from the Internet:
## <aid="example-dns"></a> Example: DNS configuration
496
495
@@ -653,7 +652,7 @@ After completing these steps, you can connect to resources in the virtual networ
653
652
## Next steps
654
653
655
654
* For an end-to-end example of configuring HDInsight to connect to an on-premises network, see [Connect HDInsight to an on-premises network](./connect-on-premises-network.md).
656
-
* For configuring Apache Hbase clusters in Azure virtual networks, see [Create Apache HBase clusters on HDInsight in Azure Virtual Network](hbase/apache-hbase-provision-vnet.md).
655
+
* For configuring Apache HBase clusters in Azure virtual networks, see [Create Apache HBase clusters on HDInsight in Azure Virtual Network](hbase/apache-hbase-provision-vnet.md).
657
656
* For configuring Apache HBase geo-replication, see [Set up Apache HBase cluster replication in Azure virtual networks](hbase/apache-hbase-replication.md).
658
657
* For more information on Azure virtual networks, see the [Azure Virtual Network overview](../virtual-network/virtual-networks-overview.md).
0 commit comments