PSAppInsightsFix.psd1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# Module manifest for module 'PSApplicationInsights'
# Generated by: Jos Verlinde
# Generated on: 17-10-2016
#

@{
    # Script module associated with this manifest.
    RootModule = 'PSAppInsightsFix'
    ModuleVersion = '0.9.6'

    # ID used to uniquely identify this module
    GUID = '1706beeb-bb2f-4a51-b1fd-f972e62f4d2d'

    # Author of this module
    Author = 'Jos Verlinde [MSFT]'
    CompanyName = 'Microsoft'
    Copyright = '(c) 2016-2017 Jos Verlinde. All rights reserved.'
    Description = 'Add Application Insights to PowerShell to get both simple and advanced tracing to gain insight to how your scripts are actually working, including errors and functional usage'

    # AppInsights Module is dependent on .Net 4.5
    DotNetFrameworkVersion = '4.5'

    # not tested on anyting lower than 4.0
    PowerShellVersion = '4.0'

    # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
    NestedModules = @(
        #Application Insights Dlls that are needed for the exposed functionality
        #base AI Service
        '.\Microsoft.ApplicationInsights.2.10.0\lib\net45\Microsoft.ApplicationInsights.dll',
        #AI For fat clients
        '.\Microsoft.ApplicationInsights.WindowsServer.2.10.0\lib\net45\Microsoft.AI.WindowsServer.dll',
        '.\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.10.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll',
        #AI based on perfcounters
        '.\Microsoft.ApplicationInsights.PerfCounterCollector.2.10.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll',
        # Tracking of dependencies
        '.\Microsoft.ApplicationInsights.DependencyCollector.2.10.0\lib\net45\Microsoft.AI.DependencyCollector.dll',
        '.\Microsoft.ApplicationInsights.Agent.Intercept.2.4.0\lib\net45\Microsoft.AI.Agent.Intercept.dll',

        #And the additional powershell modules
        # Send Base event types
        '.\AIEvent.psm1',
        '.\AITrace.psm1',
        '.\AIMetrics.psm1',
        # Exceptions and errors
        '.\AIException.psm1',
        # Waiting for dependencies
        '.\AIDependency.psm1',
        #perf Counter
        '.\AIPerformanceCollector.psm1',
        #Live perf counters
        '.\LiveMetrics.psm1',

    # '.\AIOperation.psm1',
        '.\HelperFunctions.psm1'
    )

    # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
    FunctionsToExport = '*'

    # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
    CmdletsToExport = '*'

    # Variables to export from this module
    VariablesToExport = '*'

    # Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
    AliasesToExport = '*'


    # List of all modules packaged with this module
    # ModuleList = @()

    # List of all files packaged with this module
    # FileList = @()

    # Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
    PrivateData = @{
        PSData = @{

            # Tags applied to this module. These help with module discovery in online galleries.
            Tags = @('Tracing','ApplicationInsights','Monitoring','DevOps')

            # A URL to the license for this module.
            LicenseUri = 'https://github.com/Josverl/Connect-O365/raw/master/License'

            # A URL to the main website for this project.
            ProjectUri = 'https://github.com/Josverl/PSAppInsightsFix'
            # A URL to an icon representing this module.
            IconUri = 'https://raw.githubusercontent.com/Josverl/PSAppInsightsFix/master/Images/PSAI.png'

            # ReleaseNotes of this module
        ReleaseNotes = @"
v0.9.6 Detect version of ps1 scripts running in Azure Automation
v0.9.4 Improved errorhandling and reporting during client initialisation
V0.9.2.3 Silently fail if client has not been initialised, to allow adding SEND-AI* statements withouth the need to remove them to avoid dependencies
V0.9.2 Improve Stacklogging, Send-AIException,
v0.9.1 Add -Stackwalk to allow Wrapping of a Log function and still allow correct reporting of the calling function -StackWalk 1
V0.9.0.2 Add -Developer Mode and -Sending interval to control how quick to send the information to AI
V0.9 Upgrade to ApplicationInSights 2.10.0, fix dependency load on Windows 10
V0.8.1 Code cleanup and cosmetics
V0.8.1 Default operation is name of calling Powershell script
V0.8 Integrate multiple different Features.
V0.7.4 Upgrade to ApplicationInSights 2.2.0
V0.7.3 Add support to report Powershell call stack
V0.7.2 Add Convertto-hashtable
V0.7 Add Collection of Performance Counters, Update to PSGallery
V0.6.2 Add caller's script or module version information to start-AISession
V0.6.1 Automatically add caller information on new Session (Script, Line Number )
V0.6.0.2 Resolve naming collision for get-hash
V0.5 initial publication
"@


    } # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''



}