@@ -22,86 +22,112 @@ Creates or updates a Collector Policy resource
22
22
. Example
23
23
New-AzNetworkFunctionCollectorPolicy -collectorpolicyname cp1 -azuretrafficcollectorname atc -resourcegroupname rg1 -location eastus | Format-List
24
24
25
+ . Inputs
26
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity
25
27
. Outputs
26
- Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101. ICollectorPolicy
28
+ Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy
27
29
. Notes
28
30
COMPLEX PARAMETER PROPERTIES
29
31
30
32
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
31
33
34
+ AZURETRAFFICCOLLECTORINPUTOBJECT <INetworkFunctionIdentity>: Identity Parameter
35
+ [AzureTrafficCollectorName <String>]: Azure Traffic Collector name
36
+ [CollectorPolicyName <String>]: Collector Policy Name
37
+ [Id <String>]: Resource identity path
38
+ [ResourceGroupName <String>]: The name of the resource group.
39
+ [SubscriptionId <String>]: Azure Subscription ID.
40
+
32
41
EMISSIONPOLICY <IEmissionPoliciesPropertiesFormat[]>: Emission policies.
33
- [EmissionDestination <IEmissionPolicyDestination[] >]: Emission policy destinations.
34
- [DestinationType <DestinationType? >]: Emission destination type.
35
- [EmissionType <EmissionType? >]: Emission format type.
42
+ [EmissionDestination <List< IEmissionPolicyDestination> >]: Emission policy destinations.
43
+ [DestinationType <String >]: Emission destination type.
44
+ [EmissionType <String >]: Emission format type.
36
45
37
46
INGESTIONPOLICYINGESTIONSOURCE <IIngestionSourcesPropertiesFormat[]>: Ingestion Sources.
38
47
[ResourceId <String>]: Resource ID.
39
- [SourceType <SourceType?>]: Ingestion source type.
48
+ [SourceType <String>]: Ingestion source type.
49
+ INPUTOBJECT <INetworkFunctionIdentity>: Identity Parameter
50
+ [AzureTrafficCollectorName <String>]: Azure Traffic Collector name
51
+ [CollectorPolicyName <String>]: Collector Policy Name
52
+ [Id <String>]: Resource identity path
53
+ [ResourceGroupName <String>]: The name of the resource group.
54
+ [SubscriptionId <String>]: Azure Subscription ID.
40
55
. Link
41
56
https://learn.microsoft.com/powershell/module/az.networkfunction/new-aznetworkfunctioncollectorpolicy
42
57
#>
43
58
function New-AzNetworkFunctionCollectorPolicy {
44
- [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101. ICollectorPolicy ])]
45
- [CmdletBinding (PositionalBinding = $false , SupportsShouldProcess )]
59
+ [OutputType ([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ICollectorPolicy ])]
60
+ [CmdletBinding (DefaultParameterSetName = ' CreateExpanded ' , PositionalBinding = $false , SupportsShouldProcess )]
46
61
param (
47
- [Parameter (Mandatory )]
62
+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
48
63
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Path' )]
49
64
[System.String ]
50
65
# Azure Traffic Collector name
51
66
${AzureTrafficCollectorName} ,
52
67
53
- [Parameter (Mandatory )]
68
+ [Parameter (ParameterSetName = ' CreateExpanded' , Mandatory )]
69
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' , Mandatory )]
54
70
[Alias (' CollectorPolicyName' )]
55
71
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Path' )]
56
72
[System.String ]
57
73
# Collector Policy Name
58
74
${Name} ,
59
75
60
- [Parameter (Mandatory )]
76
+ [Parameter (ParameterSetName = ' CreateExpanded ' , Mandatory )]
61
77
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Path' )]
62
78
[System.String ]
63
79
# The name of the resource group.
64
80
${ResourceGroupName} ,
65
81
66
- [Parameter ()]
82
+ [Parameter (ParameterSetName = ' CreateExpanded ' )]
67
83
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Path' )]
68
84
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.DefaultInfo (Script= ' (Get-AzContext).Subscription.Id' )]
69
85
[System.String ]
70
86
# Azure Subscription ID.
71
87
${SubscriptionId} ,
72
88
73
- [Parameter (Mandatory )]
89
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' , Mandatory , ValueFromPipeline )]
90
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Path' )]
91
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.INetworkFunctionIdentity ]
92
+ # Identity Parameter
93
+ ${AzureTrafficCollectorInputObject} ,
94
+
95
+ [Parameter (ParameterSetName = ' CreateExpanded' , Mandatory )]
96
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' , Mandatory )]
74
97
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Body' )]
75
98
[System.String ]
76
99
# Resource location.
77
100
${Location} ,
78
101
79
- [Parameter ()]
102
+ [Parameter (ParameterSetName = ' CreateExpanded' )]
103
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' )]
80
104
[AllowEmptyCollection ()]
81
105
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Body' )]
82
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101. IEmissionPoliciesPropertiesFormat []]
106
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IEmissionPoliciesPropertiesFormat []]
83
107
# Emission policies.
84
- # To construct, see NOTES section for EMISSIONPOLICY properties and create a hash table.
85
108
${EmissionPolicy} ,
86
109
87
- [Parameter ()]
110
+ [Parameter (ParameterSetName = ' CreateExpanded' )]
111
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' )]
88
112
[AllowEmptyCollection ()]
89
113
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Body' )]
90
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101. IIngestionSourcesPropertiesFormat []]
114
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.IIngestionSourcesPropertiesFormat []]
91
115
# Ingestion Sources.
92
116
# To construct, see NOTES section for INGESTIONPOLICYINGESTIONSOURCE properties and create a hash table.
93
117
${IngestionPolicyIngestionSource} ,
94
118
95
- [Parameter ()]
96
- [ArgumentCompleter ([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType ])]
119
+ [Parameter (ParameterSetName = ' CreateExpanded' )]
120
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' )]
121
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.PSArgumentCompleterAttribute (" IPFIX" )]
97
122
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Body' )]
98
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Support.IngestionType ]
123
+ [System.String ]
99
124
# The ingestion type.
100
125
${IngestionPolicyIngestionType} ,
101
126
102
- [Parameter ()]
127
+ [Parameter (ParameterSetName = ' CreateExpanded' )]
128
+ [Parameter (ParameterSetName = ' CreateViaIdentityAzureTrafficCollectorExpanded' )]
103
129
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category (' Body' )]
104
- [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101. ITrackedResourceTags ]))]
130
+ [Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Runtime.Info (PossibleTypes= ([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.ITrackedResourceTags ]))]
105
131
[System.Collections.Hashtable ]
106
132
# Resource tags.
107
133
${Tag} ,
0 commit comments