Skip to content

Commit 3a71fc8

Browse files
Move DynatraceObservability to main (#21971)
1 parent 1b40ec7 commit 3a71fc8

File tree

70 files changed

+274
-234
lines changed

Some content is hidden

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

70 files changed

+274
-234
lines changed

src/DynatraceObservability/Az.DynatraceObservability.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/26/2022
6+
# Generated on: 6/1/2023
77
#
88

99
@{
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", "{5DE130D8-5707-4B1F-9966-E3072C1B61ED}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{EE360ED8-7F9E-4C5D-8645-F981A1804AF8}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{37CE5287-DDA7-49C8-914B-2316EF6984A1}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{9457F94A-E690-444E-AA1B-FCB7CBAA10CE}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{EF8C1A5D-F025-46A8-B990-FF146EC67005}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{ED8F2A4F-6C16-476C-8A70-D62E15D076C1}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{C3BB4031-B9CF-4D0A-9529-4FD768DBC188}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{108D62BD-AE21-492F-B4A4-9DD707A9805B}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{44871062-7BAD-496C-AB0B-AF8C4D4F9649}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DynatraceObservability", "Az.DynatraceObservability.csproj", "{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C502EF91-AEEF-4A37-81C7-643ABCB3F1C8}"
17+
EndProject
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DynatraceObservability", "Az.DynatraceObservability.csproj", "{0E1138BE-E241-4B6B-B4FF-261BD806757F}"
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-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
32-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
33-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|x64.ActiveCfg = Debug|Any CPU
34-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|x64.Build.0 = Debug|Any CPU
35-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|x86.ActiveCfg = Debug|Any CPU
36-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Debug|x86.Build.0 = Debug|Any CPU
37-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
38-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|x64.ActiveCfg = Release|Any CPU
40-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|x64.Build.0 = Release|Any CPU
41-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|x86.ActiveCfg = Release|Any CPU
42-
{5DE130D8-5707-4B1F-9966-E3072C1B61ED}.Release|x86.Build.0 = Release|Any CPU
43-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
45-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|x64.ActiveCfg = Debug|Any CPU
46-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|x64.Build.0 = Debug|Any CPU
47-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|x86.ActiveCfg = Debug|Any CPU
48-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Debug|x86.Build.0 = Debug|Any CPU
49-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
50-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|Any CPU.Build.0 = Release|Any CPU
51-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|x64.ActiveCfg = Release|Any CPU
52-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|x64.Build.0 = Release|Any CPU
53-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|x86.ActiveCfg = Release|Any CPU
54-
{37CE5287-DDA7-49C8-914B-2316EF6984A1}.Release|x86.Build.0 = Release|Any CPU
55-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|x64.ActiveCfg = Debug|Any CPU
58-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|x64.Build.0 = Debug|Any CPU
59-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|x86.ActiveCfg = Debug|Any CPU
60-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Debug|x86.Build.0 = Debug|Any CPU
61-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|Any CPU.ActiveCfg = Release|Any CPU
62-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|x64.ActiveCfg = Release|Any CPU
64-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|x64.Build.0 = Release|Any CPU
65-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|x86.ActiveCfg = Release|Any CPU
66-
{EF8C1A5D-F025-46A8-B990-FF146EC67005}.Release|x86.Build.0 = Release|Any CPU
67-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|x64.ActiveCfg = Debug|Any CPU
70-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|x64.Build.0 = Debug|Any CPU
71-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|x86.ActiveCfg = Debug|Any CPU
72-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Debug|x86.Build.0 = Debug|Any CPU
73-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|Any CPU.ActiveCfg = Release|Any CPU
74-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|Any CPU.Build.0 = Release|Any CPU
75-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|x64.ActiveCfg = Release|Any CPU
76-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|x64.Build.0 = Release|Any CPU
77-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|x86.ActiveCfg = Release|Any CPU
78-
{1A88A80B-7D0E-4BC0-A5FA-9C8A6E681118}.Release|x86.Build.0 = Release|Any CPU
79-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
80-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|Any CPU.Build.0 = Debug|Any CPU
81-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|x64.ActiveCfg = Debug|Any CPU
82-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|x64.Build.0 = Debug|Any CPU
83-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|x86.ActiveCfg = Debug|Any CPU
84-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Debug|x86.Build.0 = Debug|Any CPU
85-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|Any CPU.ActiveCfg = Release|Any CPU
86-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|Any CPU.Build.0 = Release|Any CPU
87-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|x64.ActiveCfg = Release|Any CPU
88-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|x64.Build.0 = Release|Any CPU
89-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|x86.ActiveCfg = Release|Any CPU
90-
{108D62BD-AE21-492F-B4A4-9DD707A9805B}.Release|x86.Build.0 = Release|Any CPU
91-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
92-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
93-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|x64.ActiveCfg = Debug|Any CPU
94-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|x64.Build.0 = Debug|Any CPU
95-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|x86.ActiveCfg = Debug|Any CPU
96-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Debug|x86.Build.0 = Debug|Any CPU
97-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
98-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|Any CPU.Build.0 = Release|Any CPU
99-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|x64.ActiveCfg = Release|Any CPU
100-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|x64.Build.0 = Release|Any CPU
101-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|x86.ActiveCfg = Release|Any CPU
102-
{DCED0BC4-F68F-45B0-9CB8-AC144094C1BA}.Release|x86.Build.0 = Release|Any CPU
29+
{EE360ED8-7F9E-4C5D-8645-F981A1804AF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{EE360ED8-7F9E-4C5D-8645-F981A1804AF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{EE360ED8-7F9E-4C5D-8645-F981A1804AF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{EE360ED8-7F9E-4C5D-8645-F981A1804AF8}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{9457F94A-E690-444E-AA1B-FCB7CBAA10CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{9457F94A-E690-444E-AA1B-FCB7CBAA10CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{9457F94A-E690-444E-AA1B-FCB7CBAA10CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{9457F94A-E690-444E-AA1B-FCB7CBAA10CE}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{ED8F2A4F-6C16-476C-8A70-D62E15D076C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{ED8F2A4F-6C16-476C-8A70-D62E15D076C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{ED8F2A4F-6C16-476C-8A70-D62E15D076C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{ED8F2A4F-6C16-476C-8A70-D62E15D076C1}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{C3BB4031-B9CF-4D0A-9529-4FD768DBC188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{C3BB4031-B9CF-4D0A-9529-4FD768DBC188}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{C3BB4031-B9CF-4D0A-9529-4FD768DBC188}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{C3BB4031-B9CF-4D0A-9529-4FD768DBC188}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{44871062-7BAD-496C-AB0B-AF8C4D4F9649}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{44871062-7BAD-496C-AB0B-AF8C4D4F9649}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{44871062-7BAD-496C-AB0B-AF8C4D4F9649}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{44871062-7BAD-496C-AB0B-AF8C4D4F9649}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{C502EF91-AEEF-4A37-81C7-643ABCB3F1C8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{C502EF91-AEEF-4A37-81C7-643ABCB3F1C8}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{C502EF91-AEEF-4A37-81C7-643ABCB3F1C8}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{C502EF91-AEEF-4A37-81C7-643ABCB3F1C8}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{0E1138BE-E241-4B6B-B4FF-261BD806757F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{0E1138BE-E241-4B6B-B4FF-261BD806757F}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{0E1138BE-E241-4B6B-B4FF-261BD806757F}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{0E1138BE-E241-4B6B-B4FF-261BD806757F}.Release|Any CPU.Build.0 = Release|Any CPU
10357
EndGlobalSection
10458
EndGlobal

src/DynatraceObservability/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/DynatraceObservability/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 = 'Dynatrace'
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.DynatraceObservability'
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('Dynatrace')) {
6872
$ModulePrefix = ''
6973
} else {
70-
$ModulePrefix = $ModuleName
74+
$ModulePrefix = 'Dynatrace'
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/DynatraceObservability/custom/New-AzDynatraceMonitorFilteringTagObject.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ Create an in-memory object for FilteringTag.
2222
2323
.Outputs
2424
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.FilteringTag
25-
.Link
26-
https://learn.microsoft.com/powershell/module/az.Dynatrace/new-AzDynatraceMonitorFilteringTagObject
2725
#>
2826
function New-AzDynatraceMonitorFilteringTagObject {
2927
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.FilteringTag')]

src/DynatraceObservability/exports/Get-AzDynatraceMonitor.ps1

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

9394
[Parameter(DontShow)]
@@ -139,7 +140,7 @@ begin {
139140
$parameterSet = $PSCmdlet.ParameterSetName
140141

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

src/DynatraceObservability/exports/Get-AzDynatraceMonitorAppService.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ param(
5656
[ValidateNotNull()]
5757
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Azure')]
5858
[System.Management.Automation.PSObject]
59-
# The credentials, account, tenant, and subscription used for communication with Azure.
59+
# The DefaultProfile parameter is not functional.
60+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
6061
${DefaultProfile},
6162

6263
[Parameter(DontShow)]
@@ -108,7 +109,7 @@ begin {
108109
$parameterSet = $PSCmdlet.ParameterSetName
109110

110111
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
111-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
112+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
112113
}
113114
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
114115
if ($preTelemetryId -eq '') {

src/DynatraceObservability/exports/Get-AzDynatraceMonitorHost.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ param(
5656
[ValidateNotNull()]
5757
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Azure')]
5858
[System.Management.Automation.PSObject]
59-
# The credentials, account, tenant, and subscription used for communication with Azure.
59+
# The DefaultProfile parameter is not functional.
60+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
6061
${DefaultProfile},
6162

6263
[Parameter(DontShow)]
@@ -108,7 +109,7 @@ begin {
108109
$parameterSet = $PSCmdlet.ParameterSetName
109110

110111
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
111-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
112+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
112113
}
113114
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
114115
if ($preTelemetryId -eq '') {

src/DynatraceObservability/exports/Get-AzDynatraceMonitorLinkableEnv.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ param(
7474
[ValidateNotNull()]
7575
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Azure')]
7676
[System.Management.Automation.PSObject]
77-
# The credentials, account, tenant, and subscription used for communication with Azure.
77+
# The DefaultProfile parameter is not functional.
78+
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
7879
${DefaultProfile},
7980

8081
[Parameter(DontShow)]
@@ -126,7 +127,7 @@ begin {
126127
$parameterSet = $PSCmdlet.ParameterSetName
127128

128129
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
129-
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
130+
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
130131
}
131132
$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
132133
if ($preTelemetryId -eq '') {

src/DynatraceObservability/exports/Get-AzDynatraceMonitorSSOConfig.ps1

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

8586
[Parameter(DontShow)]
@@ -131,7 +132,7 @@ begin {
131132
$parameterSet = $PSCmdlet.ParameterSetName
132133

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

0 commit comments

Comments
 (0)