New-AzNetworkSecurityPerimeterAccessRule
ネットワーク アクセス規則を作成します。
構文
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String>]
[-AddressPrefix <String[]>]
[-Direction <String>]
[-EmailAddress <String[]>]
[-FullyQualifiedDomainName <String[]>]
[-PhoneNumber <String[]>]
[-ServiceTag <String[]>]
[-Subscription <ISubscriptionId[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileInputObject <INetworkSecurityPerimeterIdentity>
[-AddressPrefix <String[]>]
[-Direction <String>]
[-EmailAddress <String[]>]
[-FullyQualifiedDomainName <String[]>]
[-PhoneNumber <String[]>]
[-ServiceTag <String[]>]
[-Subscription <ISubscriptionId[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileInputObject <INetworkSecurityPerimeterIdentity>
-Parameter <INspAccessRule>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-NetworkSecurityPerimeterInputObject <INetworkSecurityPerimeterIdentity>
[-AddressPrefix <String[]>]
[-Direction <String>]
[-EmailAddress <String[]>]
[-FullyQualifiedDomainName <String[]>]
[-PhoneNumber <String[]>]
[-ServiceTag <String[]>]
[-Subscription <ISubscriptionId[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-NetworkSecurityPerimeterInputObject <INetworkSecurityPerimeterIdentity>
-Parameter <INspAccessRule>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-Name <String>
-ProfileName <String>
-ResourceGroupName <String>
-SecurityPerimeterName <String>
[-SubscriptionId <String>]
-Parameter <INspAccessRule>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzNetworkSecurityPerimeterAccessRule
-InputObject <INetworkSecurityPerimeterIdentity>
[-AddressPrefix <String[]>]
[-Direction <String>]
[-EmailAddress <String[]>]
[-FullyQualifiedDomainName <String[]>]
[-PhoneNumber <String[]>]
[-ServiceTag <String[]>]
[-Subscription <ISubscriptionId[]>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
説明
ネットワーク アクセス規則を作成します。
例
例 1: NetworkSecurityPerimeter AccessRule - Inbound を作成する
New-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-1 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1 -AddressPrefix '10.10.0.0/16' -Direction 'Inbound'
AddressPrefix : {10.10.0.0/16}
Direction : Inbound
EmailAddress : {}
FullyQualifiedDomainName : {}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
/Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1/accessRules/access-rule-test-1
Name : access-rule-test-1
NetworkSecurityPerimeter : {}
PhoneNumber : {}
ProvisioningState : Succeeded
ResourceGroupName : rg-test-1
ServiceTag :
Subscription : {}
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Type : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules
NetworkSecurityPerimeter AccessRule の作成 - 受信
例 2: NetworkSecurityPerimeter AccessRule の作成 - 送信
New-AzNetworkSecurityPerimeterAccessRule -Name access-rule-test-2 -ProfileName profile-test-1 -ResourceGroupName rg-test-1 -SecurityPerimeterName nsp-test-1 -EmailAddress @("test123@microsoft.com", "test321@microsoft.com") -Direction 'Outbound'
AddressPrefix : {}
Direction : Outbound
EmailAddress : {test123@microsoft.com, test321@microsoft.com}
FullyQualifiedDomainName : {}
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-test-1/providers
/Microsoft.Network/networkSecurityPerimeters/nsp-test-1/profiles/profile-test-1/accessRules/access-rule-test-2
Name : access-rule-test-2
NetworkSecurityPerimeter : {}
PhoneNumber : {}
ProvisioningState : Succeeded
ResourceGroupName : rg-test-1
ServiceTag :
Subscription : {}
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Type : Microsoft.Network/networkSecurityPerimeters/profiles/accessRules
NetworkSecurityPerimeter AccessRule の作成 - 送信
パラメーター
-AddressPrefix
受信アドレス プレフィックス (IPv4/IPv6)
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-Confirm
コマンドレットを実行する前に確認を求めるメッセージが表示されます。
型: | SwitchParameter |
Aliases: | cf |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-DefaultProfile
DefaultProfile パラメーターは機能しません。 別のサブスクリプションに対してコマンドレットを実行する場合は、使用可能な場合は SubscriptionId パラメーターを使用します。
型: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-Direction
アクセス規則が受信/送信であるかどうかを指定する方向。
型: | String |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-EmailAddress
電子メール アドレス形式の送信規則。 このアクセス規則の種類は、現在使用できません。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-FullyQualifiedDomainName
完全修飾ドメイン名形式の送信規則。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-InputObject
IDENTITY パラメーター
型: | INetworkSecurityPerimeterIdentity |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | True |
ワイルドカード文字を受け取る: | False |
-JsonFilePath
作成操作に指定された Json ファイルのパス
型: | String |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-JsonString
作成操作に指定された Json 文字列
型: | String |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-Name
NSP アクセス規則の名前。
型: | String |
Aliases: | AccessRuleName |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-NetworkSecurityPerimeterInputObject
IDENTITY パラメーター
型: | INetworkSecurityPerimeterIdentity |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | True |
ワイルドカード文字を受け取る: | False |
-Parameter
NSP アクセス規則リソース
型: | INspAccessRule |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | True |
ワイルドカード文字を受け取る: | False |
-PhoneNumber
電話番号形式の送信規則。 このアクセス規則の種類は、現在使用できません。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ProfileInputObject
IDENTITY パラメーター
型: | INetworkSecurityPerimeterIdentity |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | True |
ワイルドカード文字を受け取る: | False |
-ProfileName
NSP プロファイルの名前。
型: | String |
Aliases: | SecurityPerimeterProfileName, NSPProfileName |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ResourceGroupName
リソース グループの名前。
型: | String |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-SecurityPerimeterName
ネットワーク セキュリティ境界の名前。
型: | String |
Aliases: | NetworkSecurityPerimeterName, NSPName |
配置: | Named |
規定値: | None |
必須: | True |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-ServiceTag
サービス タグ型の受信規則。 このアクセス規則の種類は、現在使用できません。
型: | String[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-Subscription
サブスクリプション ID の一覧
型: | ISubscriptionId[] |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-SubscriptionId
Microsoft Azure サブスクリプションを一意に識別するサブスクリプション資格情報。 サブスクリプション ID は、すべてのサービス呼び出しの URI の一部を形成します。
型: | String |
配置: | Named |
規定値: | (Get-AzContext).Subscription.Id |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |
-WhatIf
コマンドレットを実行した場合の動作を示します。 コマンドレットは実行されません。
型: | SwitchParameter |
Aliases: | wi |
配置: | Named |
規定値: | None |
必須: | False |
パイプライン入力を受け取る: | False |
ワイルドカード文字を受け取る: | False |