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

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
主站蜘蛛池模板: 蒙城县| 潞城市| 西乌珠穆沁旗| 河津市| 临邑县| 广元市| 神池县| 洪洞县| 金坛市| 商洛市| 柞水县| 南充市| 漳浦县| 普兰店市| 韶关市| 内乡县| 泗洪县| 南川市| 临沧市| 曲水县| 射洪县| 平阳县| 九龙县| 宁城县| 武城县| 怀柔区| 闽侯县| 荔波县| 水富县| 富蕴县| 英超| 金堂县| 东安县| 攀枝花市| 扶余县| 汾阳市| 庄浪县| 武威市| 襄汾县| 建湖县| 锡林郭勒盟|