我正在尝试将经典 Azure 虚拟网络连接到新的 RM 虚拟网络。最终目标是停用经典虚拟网络,但我需要连接两者,以便能够在新虚拟网络上运行 Active Directory 服务器。
无论如何 - 我已经使用经典 CLI 下载了经典 vnet 的配置,它看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<NetworkConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration">
<VirtualNetworkConfiguration>
<Dns>
<DnsServers>
<DnsServer name="dc2" IPAddress="10.0.0.13" />
<DnsServer name="dc3" IPAddress="10.0.0.12" />
</DnsServers>
</Dns>
<VirtualNetworkSites>
<VirtualNetworkSite name="PmdAzure" Location="East US">
<AddressSpace>
<AddressPrefix>10.0.0.0/24</AddressPrefix>
<AddressPrefix>10.0.1.0/24</AddressPrefix>
</AddressSpace>
<Subnets>
<Subnet name="dc">
<AddressPrefix>10.0.0.9/29</AddressPrefix>
</Subnet>
<Subnet name="App">
<AddressPrefix>10.0.0.16/28</AddressPrefix>
</Subnet>
<Subnet name="Api">
<AddressPrefix>10.0.0.32/28</AddressPrefix>
</Subnet>
<Subnet name="Office">
<AddressPrefix>10.0.1.0/24</AddressPrefix>
</Subnet>
<Subnet name="GatewaySubnet">
<AddressPrefix>10.0.0.0/29</AddressPrefix>
</Subnet>
</Subnets>
<DnsServersRef>
<DnsServerRef name="dc3" />
<DnsServerRef name="dc2" />
</DnsServersRef>
</VirtualNetworkSite>
</VirtualNetworkSites>
</VirtualNetworkConfiguration>
</NetworkConfiguration>
然后我添加了以下内容:
<LocalNetworkSites>
<LocalNetworkSite name="RmVnetLocal">
<AddressSpace>
<AddressPrefix>10.1.4.0/24</AddressPrefix>
</AddressSpace>
<VPNGatewayAddress>removed</VPNGatewayAddress>
</LocalNetworkSite>
</LocalNetworkSites>
<Gateway>
<ConnectionsToLocalNetwork>
<LocalNetworkSiteRef name="RmVnetLocal">
<Connection type="IPsec" />
</LocalNetworkSiteRef>
</ConnectionsToLocalNetwork>
</Gateway>
然后我上传配置设置 AzureVNetConfig -ConfigurationPath xxx,但返回以下错误:
Set-AzureVNetConfig : BadRequest : The address 10.0.0.12 is reserved by the platform and cannot be used.
At line:1 char:1
我尝试注释掉 DNS 服务器,但错误仍然相同。谷歌搜索此错误没有返回任何有用的信息,而且我在任何 Azure 文档中都找不到对此的提及。有什么建议吗?
非常感谢