Get-​Azure​Effective​Route​Table

Gets the route applied in a virtual machine.

Syntax

Get-AzureEffectiveRouteTable
   [-NetworkInterfaceName <String>]
   [-Profile <AzureSMProfile>]
   -RoleInstanceName <String>
   -ServiceName <String>
   [-Slot <String>]
   [<CommonParameters>]
Get-AzureEffectiveRouteTable
   [-NetworkInterfaceName <String>]
   [-Profile <AzureSMProfile>]
   -ServiceName <String>
   -VM <PersistentVMRoleContext>
   [<CommonParameters>]

Description

The Get-AzureEffectiveRouteTable cmdlet gets the route applied in a virtual machine. This operation could take several seconds to finish.

Examples

Example 1: Get the effective route applied a virtual machine

PS C:\> Get-AzureVM -ServiceName "ContosoService" -Name "ContosoVM06" | Get-AzureEffectiveRouteTable

This command gets a virtual machine named ContosoVM06 for the service named ContosoService, and passes that virtual machine object to the current cmdlet. The current cmdlet gets the route applied to that virtual machine.

Required Parameters

-RoleInstanceName

Specifies the name of a PaaS role for which this cmdlet gets effective routes.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ServiceName

Specifies the name of a cloud service. The PaaS role for which this cmdlet gets effective routes belongs to the service that this parameter specifies.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-VM

Specifies the virtual machine object for which this cmdlet gets effective routes.

Type:PersistentVMRoleContext
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-NetworkInterfaceName

Specifies the name of the network adapter for which this cmdlet gets effective routes.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Slot

Specifies a PaaS slot. The PaaS role for which this cmdlet gets effective routes has the slot that this parameter specifies. Valid values are: - Production

  • Staging

    The default value is Production.
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

System.Collections.Generic.IEnumerable<Microsoft.WindowsAzure.Management.Network.Models.EffectiveRouteTable, Microsoft.WindowsAzure.Management.Network>