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

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
主站蜘蛛池模板: 东兴市| 崇文区| 兴国县| 昆山市| 三门县| 揭西县| 陆河县| 牡丹江市| 林州市| 页游| 云和县| 英吉沙县| 库尔勒市| 防城港市| 通河县| 祁连县| 东宁县| 高陵县| 锦屏县| 古交市| 许昌县| 阿克苏市| 昭平县| 岐山县| 永靖县| 五莲县| 尼勒克县| 石林| 潜江市| 保山市| 石柱| 峨眉山市| 镇巴县| 宝兴县| 红安县| 东阿县| 喀喇| 南乐县| 镇雄县| 定西市| 新巴尔虎右旗|