New-AzNetworkManagerIPTraffic
Create a new instance of IP Traffic
Syntax
New-AzNetworkManagerIPTraffic
-SourceIp <System.Collections.Generic.IList`1[System.String]>
-DestinationIp <System.Collections.Generic.IList`1[System.String]>
-SourcePort <System.Collections.Generic.IList`1[System.String]>
-DestinationPort <System.Collections.Generic.IList`1[System.String]>
-Protocol <System.Collections.Generic.IList`1[System.String]>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
New-AzNetworkManagerIPTraffic cmdlet creates a new instance of IP Traffic
Examples
Example 1
New-AzNetworkManagerIPTraffic -SourceIp @("192.168.1.10") -DestinationIp @("172.16.0.5") -SourcePort @("100") -DestinationPort @("99") -Protocol @("TCP")
SourceIps : {192.168.1.10}
DestinationIps : {172.16.0.5}
SourcePorts : {100}
DestinationPorts : {99}
Protocols : {TCP}
IpTrafficText : {
"SourceIps": [
"192.168.1.10"
],
"DestinationIps": [
"172.16.0.5"
],
"SourcePorts": [
"100"
],
"DestinationPorts": [
"99"
],
"Protocols": [
"TCP"
]
}
Created a new instance of IP Traffic
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DestinationIp
The destination IPs.
Type: | IList<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DestinationPort
The destination ports.
Type: | IList<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Protocol
The protocols (e.g., TCP, UDP).
Type: | IList<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SourceIp
The source IPs.
Type: | IList<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SourcePort
The source ports.
Type: | IList<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
IList<T>[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
Outputs
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure PowerShell