次の方法で共有


Get-AzAllowedConnection

サブスクリプションのリソース間で許可されているトラフィックを表示するために使用されます

構文

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

説明

接続の種類に基づいて、サブスクリプションと場所のリソース間で発生する可能性のあるすべてのトラフィックの一覧を取得します。

例 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

例 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

接続の種類に基づいて、サブスクリプションと場所のリソース間で発生する可能性のあるすべてのトラフィックの一覧を取得します。

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

型:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
既定値:None
必須:False
Accept pipeline input:False
Accept wildcard characters:False

-Location

Location。

型:String
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

リソース名。

型:String
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

リソース グループ名。

型:String
Position:Named
既定値:None
必須:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

コマンドを呼び出すセキュリティ リソースの ID。

型:String
Position:Named
既定値:None
必須:True
Accept pipeline input:True
Accept wildcard characters:False

入力

String

出力

PSSecurityAllowedConnection