Name : Route07
Id :
Etag :
ProvisioningState :
AddressPrefix : 10.1.0.0/16
NextHopType : VnetLocal
NextHopIpAddress :
The first command creates a route named Route07, and then stores it in the $Route variable.
This route forwards packets to the local virtual network.
The second command displays the properties of the route.
Example 2
Creates a route for a route table. (autogenerated)
This command creates a route named Route07 which forwards traffic to IP prefixes contained in the AppService Service Tag to a virtual appliance.
Parameters
-AddressPrefix
Specifies the destination, in Classless Interdomain Routing (CIDR) format, to which the route applies. You can also specify a Service Tag here (this feature is in Public Preview).
Specifies the IP address of a virtual appliance that you add to your Azurevirtual network.
This route forwards packets to that address.
Specify this parameter only if you specify a value of VirtualAppliance for the NextHopType parameter.
Specifies how this route forwards packets.
The acceptable values for this parameter are:
Internet.
The default Internet gateway provided by Azure.
None.
If you specify this value, the route does not forward packets.
VirtualAppliance.
A virtual appliance that you add to your Azure virtual network.
VirtualNetworkGateway.
An Azure server-to-server virtual private network gateway.
VnetLocal.
The local virtual network.
If you have two subnets, 10.1.0.0/16 and 10.2.0.0/16 in the same virtual network, select a value of VnetLocal for each subnet to forward to the other subnet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.