Get-AzVirtualNetworkGatewayConnectionIkeSa
Get IKE Security Associations of a Virtual Network Gateway Connection
Syntax
Get-AzVirtualNetworkGatewayConnectionIkeSa
-Name <String>
-ResourceGroupName <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzVirtualNetworkGatewayConnectionIkeSa
-InputObject <PSVirtualNetworkGatewayConnection>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzVirtualNetworkGatewayConnectionIkeSa
-ResourceId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzVirtualNetworkGatewayConnectionIkeSa cmdlet returns the IKE Security Associations of your connection based on the Connection Name and Resource Group Name. If the Get-AzVirtualNetworkGatewayConnection cmdlet is issued without specifying the -Name parameter, the output will not show the IKE Security Associations.
Examples
Example 1
Get-AzVirtualNetworkGatewayConnectionIkeSa -ResourceGroupName myRG -Name myTunnel
localEndpoint : 52.180.160.154
remoteEndpoint : 104.208.54.1
initiatorCookie : 5490733703579933026
responderCookie : 15460013388959380535
localUdpEncapsulationPort : 0
remoteUdpEncapsulationPort : 0
encryption : AES256
integrity : SHA1
dhGroup : DHGroup2
lifeTimeSeconds : 28800
isSaInitiator : True
elapsedTimeInseconds : 23092
quickModeSa : {}
Returns the IKE Security Associations for the Virtual Network Gateway Connection with the name "myTunnel" within the resource group "myRG"
Parameters
-AsJob
Run cmdlet in the background.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
The virtual network gateway connection object for which IKE SAs needs to be fetched.
Type: | PSVirtualNetworkGatewayConnection |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
The virtual network gateway connection name for which IKE SAs needs to be fetched.
Type: | String |
Aliases: | ResourceName, ConnectionName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The resource group name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
The Azure resource ID of the Virtual Network Gateway Connection for which IKE SAs needs to be fetched.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGatewayConnectionIkeSa
Azure PowerShell