Megosztás a következőn keresztül:


Get-AzAllowedConnection

Az előfizetés erőforrásai közötti engedélyezett forgalom megjelenítésére szolgál

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

Lekéri az előfizetés és a hely erőforrásai közötti összes lehetséges forgalom listáját a kapcsolat típusa alapján.

Példák

1. példa

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

2. példa

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

Lekéri az előfizetés és a hely erőforrásai közötti összes lehetséges forgalom listáját a kapcsolat típusa alapján.

Paraméterek

-DefaultProfile

Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.

Típus:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
alapértelmezett érték:None
Kötelező:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Tartózkodási hely beállításnál.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Erőforrás neve.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Az erőforráscsoport neve.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Annak a biztonsági erőforrásnak az azonosítója, amelyen meg szeretné hívni a parancsot.

Típus:String
Position:Named
alapértelmezett érték:None
Kötelező:True
Accept pipeline input:True
Accept wildcard characters:False

Bevitelek

String

Kimenetek

PSSecurityAllowedConnection