Skip to content

Commit 5424066

Browse files
author
Anavi Nahar
committed
Update to MD files
1 parent 142caec commit 5424066

6 files changed

+70
-9
lines changed

src/ResourceManager/Network/Commands.Network/Microsoft.Azure.Commands.Network.dll-Help.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35812,7 +35812,7 @@ InboundNatPools : []</maml:para>
3581235812
</maml:introduction>
3581335813
<dev:code>PS C:\&gt; $loadbalancer = Get-AzureRmLoadBalancer -Name mylb -ResourceGroupName myrg
3581435814

35815-
PS C:\&gt; Remove-AzureRmLoadBalancerInboundNatPoolConfig -Name &quot;myinboundnatrule&quot; -LoadBalancer $loadbalancer</dev:code>
35815+
PS C:\&gt; Remove-AzureRmLoadBalancerInboundNatRuleConfig -Name &quot;myinboundnatrule&quot; -LoadBalancer $loadbalancer</dev:code>
3581635816
<dev:remarks>
3581735817
<maml:para>The first command loads an already existing load balancer called &quot;mylb&quot; and stores it in the variable $load balancer. The second command removes the inbound NAT rule associated with this load balancer.</maml:para>
3581835818
<maml:para />

src/ResourceManager/Network/Commands.Network/help/Get-AzureRmNetworkInterfaceIpConfig.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ The **Get-AzureRmNetworkInterfaceIPConfig** cmdlet gets a network interface IP c
2222

2323
## EXAMPLES
2424

25-
### 1:
25+
### 1: Get an IP configuration of a network interface
2626
```
27-
27+
$nic1 = Get-AzureRmNetworkInterface -Name mynic -ResourceGroupName $myrg
28+
Get-AzureRmNetworkInterfaceIpConfig -Name ipconfig1 -NetworkInterface $nic1
2829
```
29-
30+
The first command gets an existing network interface called mynic and stores it in the variable $nic1. The second
31+
command gets the IP configuration called ipconfig1 of this network interface.
32+
3033
## PARAMETERS
3134

3235
### -Name

src/ResourceManager/Network/Commands.Network/help/New-AzureRmNetworkInterfaceIpConfig.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,40 @@ The **New-AzureRmNetworkInterfaceIpConfig** cmdlet creates an Azure network inte
3737

3838
## EXAMPLES
3939

40-
### 1:
40+
### 1: Create an IP configuration with a public IP address for a network interface
4141
```
42+
$vnet = Get-AzureRmVirtualNetwork -Name myvnet -ResourceGroupName myrg
43+
$Subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name mysubnet -VirtualNetwork $vnet
44+
$PIP1 = Get-AzureRmPublicIPAddress -Name "PIP1" -ResourceGroupName "RG1"
4245
46+
$IPConfig1 = New-AzureRmNetworkInterfaceIpConfig -Name "IPConfig-1" -Subnet $Subnet -PublicIpAddress $PIP1
47+
-Primary
48+
49+
$nic = New-AzureRmNetworkInterface -Name $NicName -ResourceGroupName myrg -Location westus
50+
-IpConfiguration $IpConfig1
51+
```
52+
53+
The first two commands get a virtual network called myvnet and a subnet called mysubnet respectively that were
54+
previously created. These are stored in $vnet and $Subnet respectively. The third command gets a previously
55+
created public IP address called PIP1. The forth command creates a new IP configuration called "IPConfig-1" as the
56+
primary IP configuration with a public IP address associated with it.
57+
The last command then creates a network interface called mynic1 using this IP configuration.
58+
59+
### 2: Create an IP configuration with a private IP address
60+
```
61+
$vnet = Get-AzureRmVirtualNetwork -Name myvnet -ResourceGroupName myrg
62+
$Subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name mysubnet -VirtualNetwork $vnet
63+
64+
$IPConfig2 = New-AzureRmNetworkInterfaceIpConfig -Name "IP-Config2" -Subnet $Subnet -PrivateIpAddress
65+
10.0.0.5
66+
67+
$nic = New-AzureRmNetworkInterface -Name mynic1 -ResourceGroupName myrg -Location westus -IpConfiguration
68+
$IpConfig2
4369
```
70+
The first two commands get a virtual network called myvnet and a subnet called mysubnet respectively that were
71+
previously created. These are stored in $vnet and $Subnet respectively. The third command creates a new IP
72+
configuration called "IPConfig-2" with a private IP address 10.0.0.5 associated with it.
73+
The last command then creates a network interface called mynic1 using this IP configuration.
4474

4575
## PARAMETERS
4676

src/ResourceManager/Network/Commands.Network/help/Remove-AzureRmLoadBalancerInboundNatRuleConfig.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ The **Remove-AzureRmLoadBalancerInboundNatRuleConfig** cmdlet removes an inbound
2222

2323
## EXAMPLES
2424

25-
### 1:
25+
### 1: Delete an inbound NAT rule from an Azure load balancer
2626
```
2727
28+
$loadbalancer = Get-AzureRmLoadBalancer -Name mylb -ResourceGroupName myrg
29+
30+
Remove-AzureRmLoadBalancerInboundNatRuleConfig -Name "myinboundnatrule" -LoadBalancer $loadbalancer
31+
2832
```
33+
The first command loads an already existing load balancer called "mylb" and stores it in the variable $load
34+
balancer. The second command removes the inbound NAT rule associated with this load balancer.
2935

3036
## PARAMETERS
3137

src/ResourceManager/Network/Commands.Network/help/Remove-AzureRmNetworkInterfaceIpConfig.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ The **Remove-AzureRmNetworkInterfaceIpConfig** cmdlet removes a network interfac
2222

2323
## EXAMPLES
2424

25-
### 1:
25+
### 1: Delete an IP configuration from a network interface
26+
2627
```
2728
29+
$nic = Get-AzureRmNetworkInterface -Name mynic -ResourceGroupName myrg
30+
31+
Remove-AzureRmNetworkInterfaceIpConfig -Name IPConfig-1 -NetworkInterface $nic
2832
```
2933

34+
The first command gets a network interface called mynic and stores it in the variable $nic. The second command
35+
removes the IP configuration called IPConfig-1 associated with this network interface.
36+
37+
3038
## PARAMETERS
3139

3240
### -Name

src/ResourceManager/Network/Commands.Network/help/Set-AzureRmNetworkInterfaceIpConfig.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,25 @@ The **Set-AzureRmNetworkInterfaceIpConfig** cmdlet sets the goal state for an Az
3939

4040
## EXAMPLES
4141

42-
### 1:
42+
### 1: Changing the IP address of an IP configuration
4343
```
44+
$vnet = Get-AzureRmVirtualNetwork -Name myvnet -ResourceGroupName myrg
45+
$subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name mysubnet -VirtualNetwork $vnet
4446
45-
```
47+
$nic = Get-AzureRmNetworkInterface -Name nic1 -ResourceGroupName myrg
48+
49+
$nic | Set-AzureRmNetworkInterfaceIpConfig -Name ipconfig1 -PrivateIpAddress 10.0.0.11 -Subnet $subnet
50+
-Primary
4651
52+
$nic | Set-AzureRmNetworkInterface
53+
54+
```
55+
The first two commands get a virtual network called myvnet and a subnet called mysubnet and store it in the
56+
variables $vnet and $subnet respectively. The third command gets the network interface nic1 associated with the IP
57+
configuration that needs to be updated. The third command sets the private IP address of the primary IP
58+
configuration ipconfig1 to 10.0.0.11. Finally, the last command updates the network interface ensuring the changes
59+
have been made successfully.
60+
4761
## PARAMETERS
4862

4963
### -Name

0 commit comments

Comments
 (0)