November 2017
Intermediate to advanced
276 pages
7h 6m
English
Every VM requires some network resources to be able to function properly, such as a subnet, virtual network, public IP address, and network security group (NSG), as shown in the following cmdlets:
$Subnet = New-AzureRmVirtualNetworkSubnetConfig -Name PacktPubSubnet -AddressPrefix 10.0.0.0/24$VirtualNetwork = New-AzureRmVirtualNetwork -ResourceGroupName PacktPub -Location WestEurope -Name PacktPubvNet -AddressPrefix 10.0.0.0/8 -Subnet $Subnet$PIP = New-AzureRmPublicIpAddress -ResourceGroupName PacktPub -Location WestEurope -AllocationMethod Dynamic -Name PacktPubVMPIP
Now we are done with the main network components, but the VM will require a firewall named NSG at Azure, so let's create an NSG with an inbound rule allowing ...