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/networking/check-usage-against-limits.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -43,12 +43,14 @@ In this article, you learn how to see the number of each network resource type t
43
43
44
44
## PowerShell
45
45
46
-
You can run the commands that follow in the [Azure Cloud Shell](https://shell.azure.com/powershell), or by running PowerShell from your computer. The Azure Cloud Shell is a free interactive shell. It has common Azure tools preinstalled and configured to use with your account. If you run PowerShell from your computer, you need the *AzureRM* PowerShell module, version 6.0.1 or later. Run `Get-Module -ListAvailable AzureRM` on your computer, to find the installed version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/azurerm/install-azurerm-ps). If you're running PowerShell locally, you also need to run `Login-AzureRmAccount` to log in to Azure.
View your usage against limits with [Get-AzureRmNetworkUsage](https://docs.microsoft.com/powershell/module/azurerm.network/get-azurermnetworkusage?view=azurermps-6.8.0). The following example gets the usage for resources where at least one resource is deployed in the East US location:
48
+
You can run the commands that follow in the [Azure Cloud Shell](https://shell.azure.com/powershell), or by running PowerShell from your computer. The Azure Cloud Shell is a free interactive shell. It has common Azure tools preinstalled and configured to use with your account. If you run PowerShell from your computer, you need the Azure PowerShell module, version 1.0.0 or later. Run `Get-Module -ListAvailable Az` on your computer, to find the installed version. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you're running PowerShell locally, you also need to run `Login-AzAccount` to log in to Azure.
49
+
50
+
View your usage against limits with [Get-AzNetworkUsage](https://docs.microsoft.com/powershell/module/az.network/get-aznetworkusage). The following example gets the usage for resources where at least one resource is deployed in the East US location:
Copy file name to clipboardExpand all lines: articles/networking/scripts/load-balancer-windows-powershell-load-balance-multiple-websites-vm.md
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,22 @@ ms.author: gwallace
22
22
23
23
This script sample creates a virtual network with two virtual machines (VM) that are members of an availability set. A load balancer directs traffic for two separate IP addresses to the two VMs. After running the script, you could deploy web server software to the VMs and host multiple web sites, each with its own IP address.
24
24
25
-
If needed, install the Azure PowerShell using the instruction found in the [Azure PowerShell guide](https://docs.microsoft.com/powershell/azureps-cmdlets-docs/), and then run `Connect-AzureRmAccount` to create a connection with Azure.
25
+
If needed, install the Azure PowerShell using the instruction found in the [Azure PowerShell guide](https://docs.microsoft.com/powershell/azureps-cmdlets-docs/), and then run `Connect-AzAccount` to create a connection with Azure.
[!code-powershell[main](../../../powershell_scripts/load-balancer/load-balance-multiple-web-sites-vm/load-balance-multiple-web-sites-vm.ps1"Load balance multiple web sites")]
32
34
33
35
## Clean up deployment
34
36
35
37
Run the following command to remove the resource group, VM, and all related resources.
36
38
37
39
```powershell
38
-
Remove-AzureRmResourceGroup -Name myResourceGroup
40
+
Remove-AzResourceGroup -Name myResourceGroup
39
41
```
40
42
41
43
## Script explanation
@@ -44,21 +46,21 @@ This script uses the following commands to create a resource group, virtual netw
44
46
45
47
| Command | Notes |
46
48
|---|---|
47
-
|[New-AzureRmResourceGroup](/powershell/module/azurerm.resources/new-azurermresourcegroup)| Creates a resource group in which all resources are stored. |
48
-
|[New-AzureRmAvailabilitySet](/powershell/module/azurerm.compute/new-azurermavailabilityset)| Creates an Azure availability set to provide high availability. |
49
-
|[New-AzureRmVirtualNetworkSubnetConfig](/powershell/module/azurerm.network/new-azurermvirtualnetworksubnetconfig)| Creates a subnet configuration. This configuration is used with the virtual network creation process. |
50
-
|[New-AzureRmVirtualNetwork](/powershell/module/azurerm.network/new-azurermvirtualnetwork)| Creates a virtual network. |
51
-
|[New-AzureRmPublicIpAddress](/powershell/module/azurerm.network/new-azurermpublicipaddress)| Creates a public IP address. |
52
-
|[New-AzureRmLoadBalancerFrontendIpConfig](/powershell/module/azurerm.network/new-azurermloadbalancerfrontendipconfig)| Creates a front end IP config for a load balancer. |
53
-
|[New-AzureRmLoadBalancerBackendAddressPoolConfig](/powershell/module/azurerm.network/new-azurermloadbalancerbackendaddresspoolconfig)| Creates a backend address pool configuration for a load balancer. |
54
-
|[New-AzureRmLoadBalancerProbeConfig](/powershell/module/azurerm.network/new-azurermloadbalancerprobeconfig)| Creates an NLB probe. An NLB probe is used to monitor each VM in the NLB set. If any VM becomes inaccessible, traffic is not routed to the VM. |
55
-
|[New-AzureRmLoadBalancerRuleConfig](/powershell/module/azurerm.network/new-azurermloadbalancerruleconfig)| Creates an NLB rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the NLB, it is routed to port 80 one of the VMs in the NLB set. |
56
-
|[New-AzureRmLoadBalancer](/powershell/module/azurerm.network/new-azurermloadbalancer)| Creates a load balancer. |
57
-
|[New-AzureRmNetworkInterfaceIpConfig](/powershell/module/azurerm.network/new-azurermnetworkinterfaceipconfig)| Defines advanced features for a virtual network interface. |
58
-
|[New-AzureRmNetworkInterface](/powershell/module/azurerm.network/new-azurermnetworkinterface)| Creates a network interface. |
59
-
|[New-AzureRmVMConfig](/powershell/module/azurerm.compute/new-azurermvmconfig)| Creates a VM configuration. This configuration includes information such as VM name, operating system, and administrative credentials. The configuration is used during VM creation. |
60
-
|[New-AzureRmVM](/powershell/module/azurerm.compute/new-azurermvm)| Create a virtual machine. |
61
-
|[Remove-AzureRmResourceGroup](/powershell/module/azurerm.resources/remove-azurermresourcegroup)| Removes a resource group and all resources contained within. |
49
+
|[New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup)| Creates a resource group in which all resources are stored. |
50
+
|[New-AzAvailabilitySet](/powershell/module/az.compute/new-azavailabilityset)| Creates an Azure availability set to provide high availability. |
51
+
|[New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig)| Creates a subnet configuration. This configuration is used with the virtual network creation process. |
52
+
|[New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork)| Creates a virtual network. |
53
+
|[New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress)| Creates a public IP address. |
54
+
|[New-AzLoadBalancerFrontendIpConfig](/powershell/module/az.network/new-azloadbalancerfrontendipconfig)| Creates a front end IP config for a load balancer. |
55
+
|[New-AzLoadBalancerBackendAddressPoolConfig](/powershell/module/az.network/new-azloadbalancerbackendaddresspoolconfig)| Creates a backend address pool configuration for a load balancer. |
56
+
|[New-AzLoadBalancerProbeConfig](/powershell/module/az.network/new-azloadbalancerprobeconfig)| Creates an NLB probe. An NLB probe is used to monitor each VM in the NLB set. If any VM becomes inaccessible, traffic is not routed to the VM. |
57
+
|[New-AzLoadBalancerRuleConfig](/powershell/module/az.network/new-azloadbalancerruleconfig)| Creates an NLB rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the NLB, it is routed to port 80 one of the VMs in the NLB set. |
58
+
|[New-AzLoadBalancer](/powershell/module/az.network/new-azloadbalancer)| Creates a load balancer. |
59
+
|[New-AzNetworkInterfaceIpConfig](/powershell/module/az.network/new-aznetworkinterfaceipconfig)| Defines advanced features for a virtual network interface. |
60
+
|[New-AzNetworkInterface](/powershell/module/az.network/new-aznetworkinterface)| Creates a network interface. |
61
+
|[New-AzVMConfig](/powershell/module/az.compute/new-azvmconfig)| Creates a VM configuration. This configuration includes information such as VM name, operating system, and administrative credentials. The configuration is used during VM creation. |
62
+
|[New-AzVM](/powershell/module/az.compute/new-azvm)| Create a virtual machine. |
63
+
|[Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup)| Removes a resource group and all resources contained within. |
Copy file name to clipboardExpand all lines: articles/networking/scripts/load-balancer-windows-powershell-sample-nlb.md
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,22 @@ ms.author: gwallace
22
22
23
23
This script sample creates everything needed to run several Windows virtual machines configured in a highly available and load balanced configuration. After running the script, you will have three virtual machines, joined to an Azure Availability Set, and accessible through an Azure Load Balancer.
24
24
25
-
If needed, install the Azure PowerShell using the instruction found in the [Azure PowerShell guide](https://docs.microsoft.com/powershell/azureps-cmdlets-docs/), and then run `Connect-AzureRmAccount` to create a connection with Azure.
25
+
If needed, install the Azure PowerShell using the instruction found in the [Azure PowerShell guide](https://docs.microsoft.com/powershell/azureps-cmdlets-docs/), and then run `Connect-AzAccount` to create a connection with Azure.
Run the following command to remove the resource group, VM, and all related resources.
36
38
37
39
```powershell
38
-
Remove-AzureRmResourceGroup -Name myResourceGroup
40
+
Remove-AzResourceGroup -Name myResourceGroup
39
41
```
40
42
41
43
## Script explanation
@@ -44,21 +46,21 @@ This script uses the following commands to create a resource group, virtual mach
44
46
45
47
| Command | Notes |
46
48
|---|---|
47
-
|[New-AzureRmResourceGroup](/powershell/module/azurerm.resources/new-azurermresourcegroup)| Creates a resource group in which all resources are stored. |
48
-
|[New-AzureRmVirtualNetworkSubnetConfig](/powershell/module/azurerm.network/new-azurermvirtualnetworksubnetconfig)| Creates a subnet configuration. This configuration is used with the virtual network creation process. |
49
-
|[New-AzureRmVirtualNetwork](/powershell/module/azurerm.network/new-azurermvirtualnetwork)| Creates an Azure virtual network and subnet. |
50
-
|[New-AzureRmPublicIpAddress](/powershell/module/azurerm.network/new-azurermpublicipaddress)| Creates a public IP address with a static IP address and an associated DNS name. |
51
-
|[New-AzureRmLoadBalancer](/powershell/module/azurerm.network/new-azurermloadbalancer)| Creates an Azure load balancer. |
52
-
|[New-AzureRmLoadBalancerProbeConfig](/powershell/module/azurerm.network/new-azurermloadbalancerprobeconfig)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
53
-
|[New-AzureRmLoadBalancerRuleConfig](/powershell/module/azurerm.network/new-azurermloadbalancerruleconfig)| Creates an load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the load balancer set. |
54
-
|[New-AzureRmLoadBalancerInboundNatRuleConfig](/powershell/module/azurerm.network/new-azurermloadbalancerinboundnatruleconfig)| Creates a load balancer Network Address Translation (NAT) rule. NAT rules map a port of the load balancer to a port on a VM. In this sample, a NAT rule is created for SSH traffic to each VM in the load balancer set. |
55
-
|[New-AzureRmNetworkSecurityGroup](/powershell/module/azurerm.network/new-azurermnetworksecuritygroup)| Creates a network security group (NSG), which is a security boundary between the internet and the virtual machine. |
56
-
|[New-AzureRmNetworkSecurityRuleConfig](/powershell/module/azurerm.network/new-azurermnetworksecurityruleconfig)| Creates an NSG rule to allow inbound traffic. In this sample, port 22 is opened for SSH traffic. |
57
-
|[New-AzureRmNetworkInterface](/powershell/module/azurerm.network/new-azurermnetworkinterface)| Creates a virtual network card and attaches it to the virtual network, subnet, and NSG. |
58
-
|[New-AzureRmAvailabilitySet](/powershell/module/azurerm.compute/new-azurermavailabilityset)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set is not effected. |
59
-
|[New-AzureRmVMConfig](/powershell/module/azurerm.compute/new-azurermvmconfig)| Creates a VM configuration. This configuration includes information such as VM name, operating system, and administrative credentials. The configuration is used during VM creation. |
60
-
|[New-AzureRmVM](/powershell/module/azurerm.compute/new-azurermvm)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image to be used and administrative credentials. |
61
-
|[Remove-AzureRmResourceGroup](/powershell/module/azurerm.resources/remove-azurermresourcegroup)| Deletes a resource group including all nested resources. |
49
+
|[New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup)| Creates a resource group in which all resources are stored. |
50
+
|[New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig)| Creates a subnet configuration. This configuration is used with the virtual network creation process. |
51
+
|[New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork)| Creates an Azure virtual network and subnet. |
52
+
|[New-AzPublicIpAddress](/powershell/module/az.network/new-azpublicipaddress)| Creates a public IP address with a static IP address and an associated DNS name. |
53
+
|[New-AzLoadBalancer](/powershell/module/az.network/new-azloadbalancer)| Creates an Azure load balancer. |
54
+
|[New-AzLoadBalancerProbeConfig](/powershell/module/az.network/new-azloadbalancerprobeconfig)| Creates a load balancer probe. A load balancer probe is used to monitor each VM in the load balancer set. If any VM becomes inaccessible, traffic is not routed to the VM. |
55
+
|[New-AzLoadBalancerRuleConfig](/powershell/module/az.network/new-azloadbalancerruleconfig)| Creates an load balancer rule. In this sample, a rule is created for port 80. As HTTP traffic arrives at the load balancer, it is routed to port 80 one of the VMs in the load balancer set. |
56
+
|[New-AzLoadBalancerInboundNatRuleConfig](/powershell/module/az.network/new-azloadbalancerinboundnatruleconfig)| Creates a load balancer Network Address Translation (NAT) rule. NAT rules map a port of the load balancer to a port on a VM. In this sample, a NAT rule is created for SSH traffic to each VM in the load balancer set. |
57
+
|[New-AzNetworkSecurityGroup](/powershell/module/az.network/new-aznetworksecuritygroup)| Creates a network security group (NSG), which is a security boundary between the internet and the virtual machine. |
58
+
|[New-AzNetworkSecurityRuleConfig](/powershell/module/az.network/new-aznetworksecurityruleconfig)| Creates an NSG rule to allow inbound traffic. In this sample, port 22 is opened for SSH traffic. |
59
+
|[New-AzNetworkInterface](/powershell/module/az.network/new-aznetworkinterface)| Creates a virtual network card and attaches it to the virtual network, subnet, and NSG. |
60
+
|[New-AzAvailabilitySet](/powershell/module/az.compute/new-azavailabilityset)| Creates an availability set. Availability sets ensure application uptime by spreading the virtual machines across physical resources such that if failure occurs, the entire set is not effected. |
61
+
|[New-AzVMConfig](/powershell/module/az.compute/new-azvmconfig)| Creates a VM configuration. This configuration includes information such as VM name, operating system, and administrative credentials. The configuration is used during VM creation. |
62
+
|[New-AzVM](/powershell/module/az.compute/new-azvm)| Creates the virtual machine and connects it to the network card, virtual network, subnet, and NSG. This command also specifies the virtual machine image to be used and administrative credentials. |
63
+
|[Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup)| Deletes a resource group including all nested resources. |
0 commit comments