Modifier

Partager via


Get-AzP2sVpnGatewayDetailedConnectionHealth

Gets the detailed information of current point to site connections from P2SVpnGateway.

Syntax

Get-AzP2sVpnGatewayDetailedConnectionHealth
   [-Name <String>]
   -ResourceGroupName <String>
   -OutputBlobSasUrl <String>
   [-VpnUserNamesFilter <String[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzP2sVpnGatewayDetailedConnectionHealth
   -InputObject <PSP2SVpnGateway>
   -OutputBlobSasUrl <String>
   [-VpnUserNamesFilter <String[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzP2sVpnGatewayDetailedConnectionHealth
   -ResourceId <String>
   -OutputBlobSasUrl <String>
   [-VpnUserNamesFilter <String[]>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzP2sVpnGatewayDetailedConnectionHealth cmdlet enables you to get the detailed information of current point to site connections from P2SVpnGateway. Customer needs to pass SAS url where we can put this detailed health information.

Please note that the SAS url provided should be one for the blob (file) that has been created in the storage account and not the container. Please use the New-AzStorageBlobSASToken Powershell command and not the New-AzStorageContainerSASToken. You will also need to allow read and write permissions on your SaSURl.

Examples

Example 1

$blobSasUrl = New-AzStorageBlobSASToken -Container contp2stesting -Blob emptyfile.txt -Context $context -Permission "rwd" -StartTime $now.AddHours(-1) -ExpiryTime $now.AddDays(1) -FullUri
$blobSasUrl
SignedSasUrl
Get-AzP2sVpnGatewayDetailedConnectionHealth -Name 683482ade8564515aed4b8448c9757ea-westus-gw -ResourceGroupName P2SCortexGATesting -OutputBlobSasUrl $blobSasUrl
SasUrl : SignedSasUrl

The Get-AzP2sVpnGatewayDetailedConnectionHealth cmdlet enables you to get the detailed information of current point to site connections from P2SVpnGateway. Customer can download health details from passed SAS url download. This will show information of each point to site connection with usernames, bytes in, bytes out, allocated ip address etc.

Parameters

-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 p2s vpn gateway object to be modified

Type:PSP2SVpnGateway
Aliases:P2SVpnGateway
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

The resource name.

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

-OutputBlobSasUrl

OutputBlob Sas url to which the p2s vpn connection health will be written.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
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 P2SVpnGateway to be modified.

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

-VpnUserNamesFilter

The list of P2S vpn user names to filter.

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

Inputs

String

Microsoft.Azure.Commands.Network.Models.PSP2SVpnGateway

Outputs

PSP2SVpnConnectionHealth