編輯

共用方式為


Start-AzPeeringInvokeLookingGlass

Run looking glass functionality

Syntax

Start-AzPeeringInvokeLookingGlass
     [-SubscriptionId <String>]
     -Command <LookingGlassCommand>
     -DestinationIP <String>
     -SourceLocation <String>
     -SourceType <LookingGlassSourceType>
     [-DefaultProfile <PSObject>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]
Start-AzPeeringInvokeLookingGlass
     -InputObject <IPeeringIdentity>
     -Command <LookingGlassCommand>
     -DestinationIP <String>
     -SourceLocation <String>
     -SourceType <LookingGlassSourceType>
     [-DefaultProfile <PSObject>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

Description

Run looking glass functionality

Examples

Example 1: Invoke looking glass command

Start-AzPeeringInvokeLookingGlass -Command Ping -DestinationIp 1.1.1.1 -SourceLocation Seattle -SourceType EdgeSite

Command Output
------- ------
Ping    PING 1.1.1.1 (1.1.1.1): 56 data bytes…

Invoke the given looking glass command

Parameters

-Command

The command to be executed: ping, traceroute, bgpRoute.

Type:LookingGlassCommand
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DestinationIP

The IP address of the destination.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IPeeringIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SourceLocation

The location of the source.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SourceType

The type of the source: Edge site or Azure Region.

Type:LookingGlassSourceType
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

The Azure subscription ID.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IPeeringIdentity

Outputs

ILookingGlassOutput