官术网_书友最值得收藏!

Adding address space to a virtual network using PowerShell

To add an address space to a virtual network, you need retrieve the virtual network first and store it in a variable by running the following cmdlet:

$VNet = Get-AzureRMVirtualNetwork -ResourceGroupName PacktPub -Name PSVNet

Then, you can add the address space by running the following cmdlet:

$VNet.AddressSpace.AddressPrefixes.Add("10.1.0.0/16")

Finally, you need to save the changes you have made by running the following cmdlet:

Set-AzureRmVirtualNetwork -VirtualNetwork $VNet
主站蜘蛛池模板: 沾化县| 马公市| 高密市| 漾濞| 凌源市| 青州市| 郯城县| 大悟县| 平谷区| 凉山| 射洪县| 电白县| 炎陵县| 龙游县| 阿鲁科尔沁旗| 廉江市| 桂阳县| 河津市| 沂源县| 曲靖市| 铜鼓县| 游戏| 蒙山县| 三河市| 灯塔市| 如东县| 遂川县| 乾安县| 久治县| 灵武市| 察雅县| 湘潭市| 固镇县| 嘉峪关市| 新巴尔虎左旗| 淅川县| 赣榆县| 枣阳市| 青海省| 和顺县| 伊春市|