Upravit

Sdílet prostřednictvím


Get-AzVpnServerConfigurationPolicyGroup

Gets VpnServerConfigurationPolicyGroup that can be attached to P2SVpnGateway.

Syntax

Get-AzVpnServerConfigurationPolicyGroup
   -ResourceGroupName <String>
   -ServerConfigurationName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzVpnServerConfigurationPolicyGroup
   [-Name <String>]
   -ServerConfigurationObject <PSVpnServerConfiguration>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzVpnServerConfigurationPolicyGroup
   [-Name <String>]
   -ServerConfigurationResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzVpnServerConfigurationPolicyGroup cmdlet enables you to get an existing VpnServerConfigurationPolicyGroup under VpnServerConfiguration

Examples

Example 1

Get-AzVpnServerConfigurationPolicyGroup -ResourceGroupName TestRG -ServerConfigurationName VpnServerConfig2 -Name Group2 | Format-List

ProvisioningState               : Succeeded
IsDefault                       : False
Priority                        : 1
PolicyMembers                   : {policy2}
P2SConnectionConfigurations     : {/subscriptions/64c5a05b-0859-4e60-9634-d52db66832bd/resourceGroups/TestRG/providers/Microsoft.Network/p2sVpnGateways/d8c79d4be6fd47a497f8ac8f8eb545ad-eastus-gw/p2sConnectionConfigurations/P2SConConfig2}
PolicyMembersText               : [
                                    {
                                      "Name": "policy2",
                                      "AttributeType": "CertificateGroupId",
                                      "AttributeValue": "cd"
                                    }
                                  ]
P2SConnectionConfigurationsText : [
                                    {
                                      "Id": "/subscriptions/64c5a05b-0859-4e60-9634-d52db66832bd/resourceGroups/TestRG/providers/Microsoft.Network/p2sVpnGateways/d8c79d4be6fd47a497f8ac8f8eb545ad-eastus-gw/p2sConnectionConfigurations/P2SConConfig2"
                                    }
                                  ]
Name                            : Group2
Etag                            : W/"d3d91ed6-11a9-471f-880e-6459e78aeef9"
Id                              : /subscriptions/64c5a05b-0859-4e60-9634-d52db66832bd/resourceGroups/TestRG/providers/Microsoft.Network/vpnServerConfigurations/VpnServerConfig2/configurationPolicyGroups/Group2

The Get-AzVpnServerConfigurationPolicyGroup cmdlet enables you to get an existing VpnServerConfigurationPolicyGroup under VpnServerConfiguration which can be attached to P2SVpnGateway for Point to site connectivity from Point to site clients to Azure VirtualWan.

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

-Name

The resource name.

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

-ResourceGroupName

The resource group name.

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

-ServerConfigurationName

The parent resource name.

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

-ServerConfigurationObject

The parent VpnServerConfiguration for this VpnServerConfigurationPolicyGroup.

Type:PSVpnServerConfiguration
Aliases:ParentVpnServerConfiguration, VpnServerConfiguration
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ServerConfigurationResourceId

The resource id of the parent VpnServerConfiguration for this VpnServerConfigurationPolicyGroup.

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

Inputs

Outputs