Skip to content

Commit 1b40ec7

Browse files
Move NetworkFunction to main (#21970)
1 parent 1cf30e7 commit 1b40ec7

File tree

68 files changed

+257
-226
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+257
-226
lines changed

src/NetworkFunction/Az.NetworkFunction.psd1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 10/28/2022
6+
# Generated on: 6/1/2023
77
#
88

99
@{
@@ -116,8 +116,7 @@ PrivateData = @{
116116
# IconUri = ''
117117

118118
# ReleaseNotes of this module
119-
ReleaseNotes = '* Updated api version to 2022-11-01
120-
* Added new cmdlet: ''Update-AzNetworkFunctionCollectorPolicyTag'''
119+
# ReleaseNotes = ''
121120

122121
# Prerelease string of this module
123122
# Prerelease = ''
Lines changed: 38 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,58 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.6.30114.105
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{C1CF9726-972C-4F45-9263-2CE24EDF0506}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{4194F86A-AA53-4FDC-A19A-E2C12141F410}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{33E910EA-06EE-4F67-B07A-1CB077D4B2AA}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{5F6863FA-2B12-40C9-B653-D4D34F0A5630}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{9E935F88-8B30-4A8E-AF1F-71AA4205D2E6}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{74CDEFB6-0060-4993-96BE-ECB5B3280CA6}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{18CA8A02-CA9D-4A7A-8B61-05CB63CE2C36}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.NetworkFunction", "Az.NetworkFunction.csproj", "{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{932281B4-6A9E-4154-B059-D6157A2B7E59}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.NetworkFunction", "Az.NetworkFunction.csproj", "{2AFE7105-C848-46B1-8AF0-86B6BD24DBFF}"
1719
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
21-
Debug|x64 = Debug|x64
22-
Debug|x86 = Debug|x86
2323
Release|Any CPU = Release|Any CPU
24-
Release|x64 = Release|x64
25-
Release|x86 = Release|x86
2624
EndGlobalSection
2725
GlobalSection(SolutionProperties) = preSolution
2826
HideSolutionNode = FALSE
2927
EndGlobalSection
3028
GlobalSection(ProjectConfigurationPlatforms) = postSolution
31-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|x64.Build.0 = Debug|Any CPU
35-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Debug|x86.Build.0 = Debug|Any CPU
37-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|x64.ActiveCfg = Release|Any CPU
40-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|x64.Build.0 = Release|Any CPU
41-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|x86.ActiveCfg = Release|Any CPU
42-
{C1CF9726-972C-4F45-9263-2CE24EDF0506}.Release|x86.Build.0 = Release|Any CPU
43-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|x64.Build.0 = Debug|Any CPU
47-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Debug|x86.Build.0 = Debug|Any CPU
49-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|x64.ActiveCfg = Release|Any CPU
52-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|x64.Build.0 = Release|Any CPU
53-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|x86.ActiveCfg = Release|Any CPU
54-
{65080196-EAB2-40D6-BFF0-CC36ABE71DD9}.Release|x86.Build.0 = Release|Any CPU
55-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|x64.Build.0 = Debug|Any CPU
59-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Debug|x86.Build.0 = Debug|Any CPU
61-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|x64.ActiveCfg = Release|Any CPU
64-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|x64.Build.0 = Release|Any CPU
65-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|x86.ActiveCfg = Release|Any CPU
66-
{5F6863FA-2B12-40C9-B653-D4D34F0A5630}.Release|x86.Build.0 = Release|Any CPU
67-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|x64.Build.0 = Debug|Any CPU
71-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Debug|x86.Build.0 = Debug|Any CPU
73-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|x64.ActiveCfg = Release|Any CPU
76-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|x64.Build.0 = Release|Any CPU
77-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|x86.ActiveCfg = Release|Any CPU
78-
{F69DE7A1-DCFF-4CB6-8BFB-06F52D9359F3}.Release|x86.Build.0 = Release|Any CPU
79-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|x64.Build.0 = Debug|Any CPU
83-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Debug|x86.Build.0 = Debug|Any CPU
85-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|x64.ActiveCfg = Release|Any CPU
88-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|x64.Build.0 = Release|Any CPU
89-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|x86.ActiveCfg = Release|Any CPU
90-
{4FC98580-6886-45DE-9EE1-CA51BB6FDEE4}.Release|x86.Build.0 = Release|Any CPU
91-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|x64.Build.0 = Debug|Any CPU
95-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Debug|x86.Build.0 = Debug|Any CPU
97-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|x64.ActiveCfg = Release|Any CPU
100-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|x64.Build.0 = Release|Any CPU
101-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|x86.ActiveCfg = Release|Any CPU
102-
{8DA0C0D4-1629-4775-B2E3-782EB5EA7C9D}.Release|x86.Build.0 = Release|Any CPU
29+
{4194F86A-AA53-4FDC-A19A-E2C12141F410}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{4194F86A-AA53-4FDC-A19A-E2C12141F410}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{4194F86A-AA53-4FDC-A19A-E2C12141F410}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{4194F86A-AA53-4FDC-A19A-E2C12141F410}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{33E910EA-06EE-4F67-B07A-1CB077D4B2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{33E910EA-06EE-4F67-B07A-1CB077D4B2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{33E910EA-06EE-4F67-B07A-1CB077D4B2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{33E910EA-06EE-4F67-B07A-1CB077D4B2AA}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{9E935F88-8B30-4A8E-AF1F-71AA4205D2E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{9E935F88-8B30-4A8E-AF1F-71AA4205D2E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{9E935F88-8B30-4A8E-AF1F-71AA4205D2E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{9E935F88-8B30-4A8E-AF1F-71AA4205D2E6}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{74CDEFB6-0060-4993-96BE-ECB5B3280CA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{74CDEFB6-0060-4993-96BE-ECB5B3280CA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{74CDEFB6-0060-4993-96BE-ECB5B3280CA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{74CDEFB6-0060-4993-96BE-ECB5B3280CA6}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{18CA8A02-CA9D-4A7A-8B61-05CB63CE2C36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{18CA8A02-CA9D-4A7A-8B61-05CB63CE2C36}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{18CA8A02-CA9D-4A7A-8B61-05CB63CE2C36}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{18CA8A02-CA9D-4A7A-8B61-05CB63CE2C36}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{932281B4-6A9E-4154-B059-D6157A2B7E59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{932281B4-6A9E-4154-B059-D6157A2B7E59}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{932281B4-6A9E-4154-B059-D6157A2B7E59}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{932281B4-6A9E-4154-B059-D6157A2B7E59}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{2AFE7105-C848-46B1-8AF0-86B6BD24DBFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{2AFE7105-C848-46B1-8AF0-86B6BD24DBFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{2AFE7105-C848-46B1-8AF0-86B6BD24DBFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{2AFE7105-C848-46B1-8AF0-86B6BD24DBFF}.Release|Any CPU.Build.0 = Release|Any CPU
10357
EndGlobalSection
10458
EndGlobal

src/NetworkFunction/build-module.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
123123

124124
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
125125
$modelCmdlets = @()
126+
$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets'
127+
if (Test-Path $modelCmdletFolder) {
128+
$null = Remove-Item -Force -Recurse -Path $modelCmdletFolder
129+
}
126130
if ($modelCmdlets.Count -gt 0) {
127131
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
128132
CreateModelCmdlet($modelCmdlets)

src/NetworkFunction/create-model-cmdlets.ps1

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ function CreateModelCmdlet {
2323
}
2424

2525
$ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
26-
$ModuleName = 'NetworkFunction'
2726
$OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
2827
$null = New-Item -ItemType Directory -Force -Path $OutputDir
28+
if (''.length -gt 0) {
29+
$ModuleName = ''
30+
} else {
31+
$ModuleName = 'Az.NetworkFunction'
32+
}
2933

3034
$CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
3135
$Content = ''
@@ -64,10 +68,10 @@ function CreateModelCmdlet {
6468
$ObjectType = $Model
6569
$ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
6670
# remove duplicated module name
67-
if ($ObjectType.StartsWith($ModuleName)) {
71+
if ($ObjectType.StartsWith('NetworkFunction')) {
6872
$ModulePrefix = ''
6973
} else {
70-
$ModulePrefix = $ModuleName
74+
$ModulePrefix = 'NetworkFunction'
7175
}
7276
$OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
7377

@@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}.
158162
.Outputs
159163
${ObjectTypeWithNamespace}
160164
.Link
161-
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
165+
https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
162166
#>
163167
function New-Az${ModulePrefix}${ObjectType}Object {
164168
[OutputType('${ObjectTypeWithNamespace}')]

src/NetworkFunction/custom/Update-AzNetworkFunctionCollectorPolicy.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ EMISSIONPOLICY <IEmissionPoliciesPropertiesFormat[]>: Emission policies.
3535
INGESTIONPOLICYINGESTIONSOURCE <IIngestionSourcesPropertiesFormat[]>: Ingestion Sources.
3636
[ResourceId <String>]: Resource ID.
3737
[SourceType <SourceType?>]: Ingestion source type.
38-
.Link
39-
https://learn.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctioncollectorpolicy
4038
#>
4139
function Update-AzNetworkFunctionCollectorPolicy {
4240
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101.ICollectorPolicy])]

src/NetworkFunction/custom/Update-AzNetworkFunctionTrafficCollector.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ COLLECTORPOLICY <ICollectorPolicy[]>: Collector Policies for Azure Traffic Colle
4545
[ResourceId <String>]: Resource ID.
4646
[SourceType <SourceType?>]: Ingestion source type.
4747
[IngestionPolicyIngestionType <IngestionType?>]: The ingestion type.
48-
.Link
49-
https://learn.microsoft.com/powershell/module/az.networkfunction/set-aznetworkfunctiontrafficcollector
5048
#>
5149
function Update-AzNetworkFunctionTrafficCollector {
5250
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Models.Api20221101.IAzureTrafficCollector])]

src/NetworkFunction/exports/Get-AzNetworkFunctionCollectorPolicy.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ param(
8585
[ValidateNotNull()]
8686
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
8787
[System.Management.Automation.PSObject]
88-
# The credentials, account, tenant, and subscription used for communication with Azure.
88+
# The DefaultProfile parameter is not functional.
89+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8990
${DefaultProfile},
9091

9192
[Parameter(DontShow)]
@@ -137,7 +138,7 @@ begin {
137138
$parameterSet = $PSCmdlet.ParameterSetName
138139

139140
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
140-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
141+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
141142
}
142143
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
143144
if ($preTelemetryId -eq '') {

src/NetworkFunction/exports/Get-AzNetworkFunctionTrafficCollector.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ param(
8383
[ValidateNotNull()]
8484
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
8585
[System.Management.Automation.PSObject]
86-
# The credentials, account, tenant, and subscription used for communication with Azure.
86+
# The DefaultProfile parameter is not functional.
87+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
8788
${DefaultProfile},
8889

8990
[Parameter(DontShow)]
@@ -135,7 +136,7 @@ begin {
135136
$parameterSet = $PSCmdlet.ParameterSetName
136137

137138
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
138-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
139+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
139140
}
140141
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
141142
if ($preTelemetryId -eq '') {

src/NetworkFunction/exports/New-AzNetworkFunctionCollectorPolicy.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ param(
111111
[ValidateNotNull()]
112112
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
113113
[System.Management.Automation.PSObject]
114-
# The credentials, account, tenant, and subscription used for communication with Azure.
114+
# The DefaultProfile parameter is not functional.
115+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
115116
${DefaultProfile},
116117

117118
[Parameter()]
@@ -175,7 +176,7 @@ begin {
175176
$parameterSet = $PSCmdlet.ParameterSetName
176177

177178
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
178-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
179+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
179180
}
180181
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
181182
if ($preTelemetryId -eq '') {

src/NetworkFunction/exports/New-AzNetworkFunctionTrafficCollector.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ param(
6969
[ValidateNotNull()]
7070
[Microsoft.Azure.PowerShell.Cmdlets.NetworkFunction.Category('Azure')]
7171
[System.Management.Automation.PSObject]
72-
# The credentials, account, tenant, and subscription used for communication with Azure.
72+
# The DefaultProfile parameter is not functional.
73+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7374
${DefaultProfile},
7475

7576
[Parameter()]
@@ -133,7 +134,7 @@ begin {
133134
$parameterSet = $PSCmdlet.ParameterSetName
134135

135136
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
136-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
137+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
137138
}
138139
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
139140
if ($preTelemetryId -eq '') {

0 commit comments

Comments
 (0)