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

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
主站蜘蛛池模板: 临城县| 璧山县| 乐昌市| 平和县| 丹江口市| 长宁县| 北京市| 花莲市| 营口市| 浦城县| 宜城市| 湖州市| 东平县| 慈利县| 汉寿县| 黑龙江省| 佛冈县| 彭州市| 阳新县| 汤阴县| 当雄县| 汝阳县| 宁德市| 香河县| 白玉县| 望奎县| 留坝县| 许昌县| 峨边| 武汉市| 特克斯县| 永川市| 华安县| 永川市| 萨迦县| 黑河市| 兴安盟| 孟津县| 梓潼县| 昌宁县| 洱源县|