Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ApplicationInsights] Fix parameter DocumentType and ResourceId #18756

Merged
merged 3 commits into from
Jun 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
158 changes: 79 additions & 79 deletions src/ApplicationInsights/ApplicationInsights.sln
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{A48388EA-8501-4C0A-BE26-6E4920C45BAB}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{B5E8D6CD-E659-4580-A94A-26C46820A8EA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{658209FF-7C54-4394-86BA-F58A305703F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "Az.ApplicationInsights.csproj", "{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ApplicationInsights", "Az.ApplicationInsights.csproj", "{F94AD72D-DC16-437B-9F27-8EA00344DCB2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -28,77 +28,77 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|x64.ActiveCfg = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|x64.Build.0 = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|x86.ActiveCfg = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Debug|x86.Build.0 = Debug|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|Any CPU.Build.0 = Release|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|x64.ActiveCfg = Release|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|x64.Build.0 = Release|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|x86.ActiveCfg = Release|Any CPU
{1AAF5108-D12A-4EEC-9DD5-5812F653B8A1}.Release|x86.Build.0 = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|x64.ActiveCfg = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|x64.Build.0 = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|x86.ActiveCfg = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Debug|x86.Build.0 = Debug|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|Any CPU.Build.0 = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|x64.ActiveCfg = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|x64.Build.0 = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|x86.ActiveCfg = Release|Any CPU
{A48388EA-8501-4C0A-BE26-6E4920C45BAB}.Release|x86.Build.0 = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|x64.ActiveCfg = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|x64.Build.0 = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|x86.ActiveCfg = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Debug|x86.Build.0 = Debug|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|Any CPU.Build.0 = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|x64.ActiveCfg = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|x64.Build.0 = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|x86.ActiveCfg = Release|Any CPU
{9DBB3C88-59F5-4F56-AA01-8EDED2DD0E4F}.Release|x86.Build.0 = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|x64.ActiveCfg = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|x64.Build.0 = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|x86.ActiveCfg = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Debug|x86.Build.0 = Debug|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|Any CPU.Build.0 = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|x64.ActiveCfg = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|x64.Build.0 = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|x86.ActiveCfg = Release|Any CPU
{0AD569F1-8F7C-4896-9148-D2FBE87E37EF}.Release|x86.Build.0 = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|Any CPU.Build.0 = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|x64.ActiveCfg = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|x64.Build.0 = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|x86.ActiveCfg = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Debug|x86.Build.0 = Debug|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|Any CPU.ActiveCfg = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|Any CPU.Build.0 = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|x64.ActiveCfg = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|x64.Build.0 = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|x86.ActiveCfg = Release|Any CPU
{12275A96-1CE0-4EB2-BC1D-EAB7D3D6C111}.Release|x86.Build.0 = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|x64.ActiveCfg = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|x64.Build.0 = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|x86.ActiveCfg = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Debug|x86.Build.0 = Debug|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|Any CPU.Build.0 = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|x64.ActiveCfg = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|x64.Build.0 = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|x86.ActiveCfg = Release|Any CPU
{EF2F0F35-F853-49FA-A3D7-5F3E9EF0A1A2}.Release|x86.Build.0 = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|x64.ActiveCfg = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|x64.Build.0 = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|x86.ActiveCfg = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Debug|x86.Build.0 = Debug|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|Any CPU.Build.0 = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|x64.ActiveCfg = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|x64.Build.0 = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|x86.ActiveCfg = Release|Any CPU
{20A92CA7-0B51-4361-8A0B-63EF5A5A4388}.Release|x86.Build.0 = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|x64.ActiveCfg = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|x64.Build.0 = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|x86.ActiveCfg = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Debug|x86.Build.0 = Debug|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|Any CPU.Build.0 = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|x64.ActiveCfg = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|x64.Build.0 = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|x86.ActiveCfg = Release|Any CPU
{0253B1F3-CFDC-4476-BF0D-562F01D0BC83}.Release|x86.Build.0 = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|x64.ActiveCfg = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|x64.Build.0 = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|x86.ActiveCfg = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Debug|x86.Build.0 = Debug|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|Any CPU.Build.0 = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|x64.ActiveCfg = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|x64.Build.0 = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|x86.ActiveCfg = Release|Any CPU
{B5E8D6CD-E659-4580-A94A-26C46820A8EA}.Release|x86.Build.0 = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|x64.ActiveCfg = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|x64.Build.0 = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|x86.ActiveCfg = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Debug|x86.Build.0 = Debug|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|Any CPU.Build.0 = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|x64.ActiveCfg = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|x64.Build.0 = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|x86.ActiveCfg = Release|Any CPU
{F3A5E6EF-7D20-4596-AECE-3A9C4960395A}.Release|x86.Build.0 = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|x64.ActiveCfg = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|x64.Build.0 = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|x86.ActiveCfg = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Debug|x86.Build.0 = Debug|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|Any CPU.Build.0 = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|x64.ActiveCfg = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|x64.Build.0 = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|x86.ActiveCfg = Release|Any CPU
{658209FF-7C54-4394-86BA-F58A305703F4}.Release|x86.Build.0 = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|x64.ActiveCfg = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|x64.Build.0 = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|x86.ActiveCfg = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Debug|x86.Build.0 = Debug|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|Any CPU.Build.0 = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|x64.ActiveCfg = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|x64.Build.0 = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|x86.ActiveCfg = Release|Any CPU
{F94AD72D-DC16-437B-9F27-8EA00344DCB2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/ApplicationInsights/Az.ApplicationInsights.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 5/31/2022
# Generated on: 6/27/2022
#

@{
Expand Down
2 changes: 2 additions & 0 deletions src/ApplicationInsights/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
-->
## Upcoming Release
* Fixed parameters for Set-AzApplicationInsightsDailyCap [#18315]
* Fixed parameter `DocumentType` for `New-AzApplicationInsightsContinuousExport` and `Set-AzApplicationInsightsContinuousExport` [#18350]
* Fixed parameter `ResourceId` for `Get-AzApplicationInsights` [#18707]

## Version 2.0.0
* Upgraded API version for ApplicationInsights component to 2020-02-02
Expand Down
4 changes: 2 additions & 2 deletions src/ApplicationInsights/custom/Get-AzApplicationInsights.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Returns an Application Insights component.
.Description
Returns an Application Insights component.
.Link
https://docs.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsightscomponent
https://docs.microsoft.com/powershell/module/az.applicationinsights/get-azapplicationinsights
#>
function Get-AzApplicationInsights {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Api202002.IApplicationInsightsComponent], [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.PSApplicationInsightsComponentWithPricingPlan])]
Expand Down Expand Up @@ -126,7 +126,7 @@ function Get-AzApplicationInsights {
'GetByResourceId' {
$resourceId = $PSBoundParameters['ResourceId']
$null = $PSBoundParameters.Remove('ResourceId')
$component = ($resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponent)
$component = ($resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsights)
if ($full) {
$pricingPlan = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentCurrentBillingFeature
$dailyCapStatus = $resourceId | . Az.ApplicationInsights.internal\Get-AzApplicationInsightsComponentQuotaStatus
Expand Down
22 changes: 22 additions & 0 deletions src/ApplicationInsights/custom/Models/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,28 @@ internal static string[] ConvertToDocumentType(string[] recordTypes)
return recordTypes.Select(d => mapping[d.Trim().ToLowerInvariant()]).ToArray();
}

public static string[] ConvertToRecordType(string[] documentTypes)
{
if (documentTypes == null)
{
throw new ArgumentNullException("documentTypes");
}

Dictionary<string, string> mapping = new Dictionary<string, string>();
mapping.Add(DocumentTypes.Requests.ToLowerInvariant(), RecordTypes.Requests);
mapping.Add(DocumentTypes.Event.ToLowerInvariant(), RecordTypes.Event);
mapping.Add(DocumentTypes.Exceptions.ToLowerInvariant(), RecordTypes.Exceptions);
mapping.Add(DocumentTypes.Messages.ToLowerInvariant(), RecordTypes.Messages);
mapping.Add(DocumentTypes.Metrics.ToLowerInvariant(), RecordTypes.Metrics);
mapping.Add(DocumentTypes.PageViewPerformance.ToLowerInvariant(), RecordTypes.PageViewPerformance);
mapping.Add(DocumentTypes.PageViews.ToLowerInvariant(), RecordTypes.PageViews);
mapping.Add(DocumentTypes.RemoteDependency.ToLowerInvariant(), RecordTypes.RemoteDependency);
mapping.Add(DocumentTypes.Availability.ToLowerInvariant(), RecordTypes.Availability);
mapping.Add(DocumentTypes.PerformanceCounters.ToLowerInvariant(), RecordTypes.PerformanceCounters);

return documentTypes.Select(d => mapping[d.Trim().ToLowerInvariant()]).ToArray();
}

public static string ParseSubscriptionFromId(string idFromServer)
{
if (!string.IsNullOrEmpty(idFromServer))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function New-AzApplicationInsightsContinuousExport {
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
[System.String[]]
# The document types to be exported, as comma separated values.
# Allowed values include 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', 'PerformanceCounters', 'Availability', 'Messages'.
${DocumentType },
# Allowed values include 'Requests', 'Custom Event', 'Exception', 'Metric', 'Page View', 'Page Load', 'Dependency', 'Performance Counter', 'Availability', 'Trace'.
${DocumentType},

[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Category('Body')]
Expand Down Expand Up @@ -154,7 +154,7 @@ function New-AzApplicationInsightsContinuousExport {
if ($PSBoundParameters['StorageAccountId']) {
$PSBoundParameters['DestinationStorageSubscriptionId'] = [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Utilities]::ParseSubscriptionFromId($PSBoundParameters['StorageAccountId'])
}
$PSBoundParameters['RecordType'] = [System.String]::Join(",", $PSBoundParameters['DocumentType'])
$PSBoundParameters['RecordType'] = [System.String]::Join(",", [Microsoft.Azure.PowerShell.Cmdlets.ApplicationInsights.Models.Utilities]::ConvertToRecordType($PSBoundParameters['DocumentType']))
$null = $PSBoundParameters.Remove('DocumentType')
$PSBoundParameters['IsEnabled'] = 'true'

Expand Down
Loading