适用于虚拟网络的 Azure 资源管理器模板示例Azure Resource Manager template samples for virtual network

下表包含 Azure 资源管理器模板示例的链接。The following table includes links to Azure Resource Manager template samples. 可以使用 Azure 门户、Azure CLI 或 Azure PowerShell 来部署模板。You can deploy templates using the Azure portal, Azure CLI, or Azure PowerShell. 若要了解如何创建自己的模板,请参阅创建你的第一个模板了解 Azure 资源管理器模板的结构和语法To learn how to author your own templates, see Create your first template and Understand the structure and syntax of Azure Resource Manager templates.

备注

必须修改从 GitHub 存储库“azure-quickstart-templates”下载或参考的模板,以适应 Azure 中国云环境。Templates you downloaded or referenced from the GitHub Repo "azure-quickstart-templates" must be modified in order to fit in the Azure China Cloud Environment. 例如,替换某些终结点(将“blob.core.windows.net”替换为“blob.core.chinacloudapi.cn”,将“cloudapp.azure.com”替换为“cloudapp.chinacloudapi.cn”);必要时更改某些不受支持的位置、VM 映像、VM 大小、SKU 以及资源提供程序的 API 版本。For example, replace some endpoints -- "blob.core.windows.net" by "blob.core.chinacloudapi.cn", "cloudapp.azure.com" by "cloudapp.chinacloudapi.cn"; change some unsupported Location, VM images, VM sizes, SKU and resource-provider's API Version when necessary.

任务Task 说明Description
创建包含两个子网的虚拟网络Create a virtual network with two subnets 创建包含两个子网的虚拟网络。Creates a virtual network with two subnets.
通过网络虚拟设备的路由流量Route traffic through a network virtual appliance 创建包含三个子网的虚拟网络。Creates a virtual network with three subnets. 将虚拟机部署到每个子网。Deploys a virtual machine into each of the subnets. 创建一个路由表,使其包含通过第三个子网中的虚拟机将流量从一个子网定向到另一个子网的路由。Creates a route table containing routes to direct traffic from one subnet to another through the virtual machine in the third subnet. 将该路由表关联到其中一个子网。Associates the route table to one of the subnets.
为 Azure 存储创建虚拟网络服务终结点Create a virtual network service endpoint for Azure Storage 创建包含两个子网的新虚拟网络,并在每个子网中创建一个网络接口。Creates a new virtual network with two subnets, and a network interface in each subnet. 为其中一个子网启用 Azure 存储的服务终结点,并将一个新的存储帐户保护到该子网。Enables a service endpoint to Azure Storage for one of the subnets and secures a new storage account to that subnet.
连接两个虚拟网络Connect two virtual networks 创建两个虚拟网络并在其之间创建虚拟网络对等互连。Creates two virtual networks and a virtual network peering between them.
创建具有多个 IP 地址的虚拟机Create a virtual machine with multiple IP addresses 创建具有多个 IP 地址的 Windows 或 Linux VMCreates a Windows or Linux VM with multiple IP addresses.
配置 IPv4 + IPv6 双堆栈虚拟网络Configure IPv4 + IPv6 dual stack virtual network 部署具有两个 VM 的双栈 (IPv4+IPv6) 虚拟网络和具有 IPv4 和 IPv6 公共 IP 地址的 Azure 基本负载均衡器。Deploys dual-stack (IPv4+IPv6) virtual network with two VMs and an Azure Basic Load Balancer with IPv4 and IPv6 public IP addresses.