次の方法で共有


Get-AzNetworkManagerSecurityUserRule

ネットワーク マネージャーのセキュリティ ユーザー規則を取得します。

構文

ByList (既定)

Get-AzNetworkManagerSecurityUserRule
    -RuleCollectionName <String>
    -SecurityUserConfigurationName <String>
    -NetworkManagerName <String>
    -ResourceGroupName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByName

Get-AzNetworkManagerSecurityUserRule
    -Name <String>
    -RuleCollectionName <String>
    -SecurityUserConfigurationName <String>
    -NetworkManagerName <String>
    -ResourceGroupName <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByResourceId

Get-AzNetworkManagerSecurityUserRule
    -ResourceId <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Get-AzNetworkManagerSecurityUserRule コマンドレットは、ネットワーク マネージャーでセキュリティ ユーザールールを取得します。

例 1

Get-AzNetworkManagerSecurityUserRule  -Name "testRule" -RuleCollectionName "TestRC" -SecurityUserConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name                  : testRule
Description           : Description
Type                  : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id                    : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule
Etag                  : "00000000-0000-0000-0000-000000000000"
ProvisioningState     : Succeeded
Protocol              : Tcp
Direction             : Inbound
Sources               : [
                          {
                            "AddressPrefix": "Internet",
                            "AddressPrefixType": "ServiceTag"
                          }
                        ]
Destinations          : [
                          {
                            "AddressPrefix": "10.0.0.1",
                            "AddressPrefixType": "IPPrefix"
                          }
                        ]
SourcePortRanges      : [
                          "100"
                        ]
DestinationPortRanges : [
                          "99"
                        ]
Access                : Allow
Priority              : 100
SystemData            : {
                          "CreatedBy": "00000000-0000-0000-0000-000000000000",
                          "CreatedByType": "Application",
                          "CreatedAt": "2021-10-18T04:06:05",
                          "LastModifiedBy": "00000000-0000-0000-0000-000000000000",
                          "LastModifiedByType": "Application",
                          "LastModifiedAt": "2021-10-18T04:06:06"
                        }

規則コレクション内のセキュリティ ユーザー規則を取得します。

例 2

Get-AzNetworkManagerSecurityUserRule  -RuleCollectionName "TestRC" -SecurityUserConfigurationName "TestSecConfig" -NetworkManagerName "TestNMName" -ResourceGroupName "TestRG"
Name                  : testRule
Description           : Description
Type                  : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id                    : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule
Etag                  : "00000000-0000-0000-0000-000000000000"
ProvisioningState     : Succeeded
Protocol              : Tcp
Direction             : Inbound
Sources               : [
                          {
                            "AddressPrefix": "Internet",
                            "AddressPrefixType": "ServiceTag"
                          }
                        ]
Destinations          : [
                          {
                            "AddressPrefix": "10.0.0.1",
                            "AddressPrefixType": "IPPrefix"
                          }
                        ]
SourcePortRanges      : [
                          "100"
                        ]
DestinationPortRanges : [
                          "99"
                        ]
Access                : Allow
Priority              : 100
SystemData            : {
                          "CreatedBy": "00000000-0000-0000-0000-000000000000",
                          "CreatedByType": "Application",
                          "CreatedAt": "2021-10-18T04:06:05",
                          "LastModifiedBy": "00000000-0000-0000-0000-000000000000",
                          "LastModifiedByType": "Application",
                          "LastModifiedAt": "2021-10-18T04:06:06"
                        }

                        Name                  : testRule2
Description           : Description
Type                  : Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Id                    : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestRG/providers/Microsoft.Network/networkManagers/TestNMName/securityUserConfigurations/TestSecConfig/ruleCollections/TestRC/rules/testRule2
Etag                  : "00000000-0000-0000-0000-000000000000"
ProvisioningState     : Succeeded
Protocol              : Tcp
Direction             : Inbound
Sources               : [
                          {
                            "AddressPrefix": "Internet",
                            "AddressPrefixType": "ServiceTag"
                          }
                        ]
Destinations          : [
                          {
                            "AddressPrefix": "10.0.0.1",
                            "AddressPrefixType": "IPPrefix"
                          }
                        ]
SourcePortRanges      : [
                          "100"
                        ]
DestinationPortRanges : [
                          "99"
                        ]
Access                : Allow
Priority              : 100
SystemData            : {
                          "CreatedBy": "00000000-0000-0000-0000-000000000000",
                          "CreatedByType": "Application",
                          "CreatedAt": "2021-10-18T04:06:05",
                          "LastModifiedBy": "00000000-0000-0000-0000-000000000000",
                          "LastModifiedByType": "Application",
                          "LastModifiedAt": "2021-10-18T04:06:06"
                        }

セキュリティ ユーザールールコレクション内のすべてのルールを取得します。

パラメーター

-DefaultProfile

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

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

リソース名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:True
DontShow:False
Aliases:ResourceName

パラメーター セット

ByName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-NetworkManagerName

ネットワーク マネージャー名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:True
DontShow:False

パラメーター セット

ByList
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ByName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-ResourceGroupName

リソース グループ名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByList
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ByName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-ResourceId

NetworkManager SecurityUserRule Id

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:SecurityUserRuleId

パラメーター セット

ByResourceId
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-RuleCollectionName

ネットワーク マネージャーセキュリティユーザールールコレクション名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:True
DontShow:False

パラメーター セット

ByList
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ByName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-SecurityUserConfigurationName

ネットワーク マネージャーのセキュリティ ユーザー構成名。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:True
DontShow:False
Aliases:ConfigName

パラメーター セット

ByList
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False
ByName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

String

出力

Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerSecurityBaseUserRule