Answers:
2015年8月。仍然无法重命名VNET。解决方案仍然是创建一个新的VNET并将资源迁移到其中。
我不确定是否可以真正更改它(尚未尝试),但是如果可以,则通过PowerShell和Set-AzureVNetConfig
cmdlet。
<NetworkConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration">
<VirtualNetworkConfiguration>
<Dns>
<DnsServers>
<DnsServer name="<server-name>" IPAddress="<server-address>"/>
</DnsServers>
</Dns>
<LocalNetworkSites>
<LocalNetworkSite name="<site-name>">
<VPNGatewayAddress>gateway-address</VPNGatewayAddress>
<AddressSpace>
<AddressPrefix>address-prefix</AddressPrefix>
</AddressSpace>
</LocalNetworkSite>
</LocalNetworkSites>
<VirtualNetworkSites>
<VirtualNetworkSite name="<site-name>" AffinityGroup="<group-name>">
<Gateway profile="Small">
<VPNClientAddressPool>
<AddressPrefix>address-prefix</AddressPrefix>
</VPNClientAddressPool>
<ConnectionsToLocalNetwork>
<LocalNetworkSiteRef name="<site-name>"/>
<Connection type="Dedicated"/>
</LocalNetworkSiteRef>
</ConnectionsToLocalNetwork>
</Gateway>
<DnsServersRef>
<DnsServerRef name="<server-name>"/>
</DnsServersRef>
<Subnets>
<Subnet name="<subnet-name>">
<AddressPrefix>address-prefix</AddressPrefix>
</Subnet>
</Subnets>
<AddressSpace>
<AddressPrefix>address-prefix</AddressPrefix>
</AddressSpace>
</VirtualNetworkSite>
</VirtualNetworkSites>
</VirtualNetworkConfiguration>
</NetworkConfiguration>
例如,检索配置:
Get-AzureVNetConfig -ExportToFile "C:\temp\azurenetconfig.netcfg"
修改文件
上传配置:
Set-AzureVNetConfig -ConfigurationPath "C:\temp\azurenetconfig.netcfg"
看到
Set-AzureVNetConfig,
使用PowerShell创建Windows Azure网络,
Windows Azure虚拟网络配置