Delen via


Get-AzAllowedConnection

Wordt gebruikt om toegestaan verkeer tussen resources voor het abonnement weer te geven

Syntax

Get-AzAllowedConnection
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzAllowedConnection
   -ResourceGroupName <String>
   -Name <String>
   -Location <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzAllowedConnection
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Hiermee haalt u de lijst op van alle mogelijke verkeer tussen resources voor het abonnement en de locatie, op basis van het verbindingstype.

Voorbeelden

Voorbeeld 1

Get-AzAllowedConnection

Id:	/subscriptions/3eeab341-f466-499c-a8be-85427e154baf7612f869/resourceGroups/myService1/providers/Microsoft.Security/locations/centralus/allowedConnections/virtualMachines
Name:	Internal
Type:	Microsoft.Security/locations/allowedConnections
CalculatedDateTime:	03-Jun-20 3:03:48 PM
ConnectableResources:	/subscriptions/3eeab341-f466-499c-a8be-85427e154baf7612f869/resourceGroups/myService1/providers/Microsoft.Compute/virtualMachines/myvm

Voorbeeld 2

Get-AzAllowedConnection -ResourceGroupName "myService1" -Location "centralus" -Name "Internal"

Id:	/subscriptions/3eeab341-f466-499c-a8be-85427e154baf7612f869/resourceGroups/myService1/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal
Name:	virtualMachines
Type:	Microsoft.Security/locations/allowedConnections
CalculatedDateTime:	03-Jun-20 3:03:48 PM
ConnectableResources:	/subscriptions/3eeab341-f466-499c-a8be-85427e154baf7612f869/resourceGroups/myService1/providers/Microsoft.Compute/virtualMachines/myvm

Hiermee haalt u de lijst op van alle mogelijke verkeer tussen resources voor het abonnement en de locatie, op basis van het verbindingstype.

Parameters

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Locatie.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Resourcenaam.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Naam van de resourcegroep.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Id van de beveiligingsresource waarvoor u de opdracht wilt aanroepen.

Type:String
Position:Named
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

Invoerwaarden

String

Uitvoerwaarden

PSSecurityAllowedConnection