Skip to content

Instantly share code, notes, and snippets.

@pkirch
Created March 12, 2015 18:29
Show Gist options
  • Save pkirch/71fb86eb3a2f069caab4 to your computer and use it in GitHub Desktop.
Save pkirch/71fb86eb3a2f069caab4 to your computer and use it in GitHub Desktop.
Sample XML configuration of an Azure virtual network configuration.
<?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.m
icrosoft.com/ServiceHosting/2011/07/NetworkConfiguration">
<VirtualNetworkConfiguration>
<Dns>
<DnsServers>
<DnsServer name="DC1" IPAddress="10.0.0.4" />
</DnsServers>
</Dns>
<VirtualNetworkSites>
<VirtualNetworkSite name="pkbackup" Location="West Europe">
<AddressSpace>
<AddressPrefix>10.0.0.0/8</AddressPrefix>
</AddressSpace>
<Subnets>
<Subnet name="Subnet-0">
<AddressPrefix>10.0.0.0/16</AddressPrefix>
</Subnet>
<Subnet name="Subnet-1">
<AddressPrefix>10.1.0.0/16</AddressPrefix>
</Subnet>
<Subnet name="Subnet-2">
<AddressPrefix>10.2.0.0/16</AddressPrefix>
</Subnet>
<Subnet name="Subnet-3">
<AddressPrefix>10.3.0.0/16</AddressPrefix>
</Subnet>
</Subnets>
<DnsServersRef>
<DnsServerRef name="DC1" />
</DnsServersRef>
</VirtualNetworkSite>
</VirtualNetworkSites>
</VirtualNetworkConfiguration>
</NetworkConfiguration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment