【发布时间】:2013-10-08 15:18:24
【问题描述】:
我在 Azure 中构建了一个网络,其中包含两个子网,Back 和 Front。
我现在正在尝试使用 Set-AzureVNetConfig 创建网关,但我得到了一个名为 GatewaySubnet 的丢失子网。这个词在我的脚本中的任何地方都不存在,谷歌搜索这个词不会返回任何结果,所以它不能是保留词。
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration">
<VirtualNetworkConfiguration>
<Dns />
<LocalNetworkSites>
<LocalNetworkSite name="lnt">
<AddressSpace>
<AddressPrefix>10.55.10.0/24</AddressPrefix>
</AddressSpace>
<VPNGatewayAddress>1.2.3.4</VPNGatewayAddress>
</LocalNetworkSite>
</LocalNetworkSites>
<VirtualNetworkSites>
<VirtualNetworkSite name="net" AffinityGroup="ag">
<AddressSpace>
<AddressPrefix>10.10.0.0/16</AddressPrefix>
</AddressSpace>
<Subnets>
<Subnet name="Front">
<AddressPrefix>10.10.1.0/24</AddressPrefix>
</Subnet>
<Subnet name="Back">
<AddressPrefix>10.10.2.0/24</AddressPrefix>
</Subnet>
</Subnets>
<Gateway>
<ConnectionsToLocalNetwork>
<LocalNetworkSiteRef name="lnt" />
</ConnectionsToLocalNetwork>
</Gateway>
</VirtualNetworkSite>
</VirtualNetworkSites>
</VirtualNetworkConfiguration>
为什么 Azure 认为我的配置文件缺少名为 GatewaySubnet 的子网?
【问题讨论】:
标签: azure subnet azure-virtual-network