In dit tabblad wordt beschreven hoe u onboarding naar de PowerShell Gallery kunt uitvoeren en hoe u de ApplicationMonitor-module downloadt. Opgenomen zijn de meest voorkomende parameters die u nodig hebt om aan de slag te gaan. We bieden ook handmatige downloadinstructies voor het geval u geen internettoegang hebt.
Een verbindingsreeks
U hebt een verbindingsreeks nodig om aan de slag te gaan. Zie Verbindingsreeksen voor meer informatie.
Notitie
Op 31 maart 2025 eindigt de ondersteuning voor opname van instrumentatiesleutels. Opname van instrumentatiesleutels blijft werken, maar we bieden geen updates of ondersteuning meer voor de functie. Overgang naar verbindingsreeks s om te profiteren van nieuwe mogelijkheden.
PowerShell uitvoeren als beheerder met een uitvoeringsbeleid met verhoogde bevoegdheid
Als beheerder uitvoeren
PowerShell heeft machtigingen op beheerdersniveau nodig om wijzigingen aan te brengen in uw computer.
Uitvoeringsbeleid
- Beschrijving: Standaard is het uitvoeren van PowerShell-scripts uitgeschakeld. U wordt aangeraden RemoteSigned-scripts alleen toe te staan voor het huidige bereik.
- Naslaginformatie: Over uitvoeringsbeleid en Set-ExecutionPolicy.
- Opdracht:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
.
- Optionele parameter:
-Force
. De bevestigingsprompt wordt omzeild.
Voorbeeldfouten
Install-Module : The 'Install-Module' command was found in the module 'PowerShellGet', but the module could not be
loaded. For more information, run 'Import-Module PowerShellGet'.
Import-Module : File C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.3.1\PackageManagement.psm1 cannot
be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https://go.microsoft.com/fwlink/?LinkID=135170.
Vereisten voor PowerShell
Controleer uw exemplaar van PowerShell door de opdracht uit te $PSVersionTable
voeren.
Met deze opdracht wordt de volgende uitvoer gegenereerd:
Name Value
---- -----
PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Deze instructies zijn geschreven en getest op een computer met Windows 10 en de volgende versies.
Vereisten voor PowerShell Gallery
Met deze stappen bereidt u uw server voor om modules te downloaden uit PowerShell Gallery.
Voer PowerShell uit als beheerder met een uitvoeringsbeleid met verhoogde bevoegdheid.
Installeer de NuGet-pakketprovider.
- Beschrijving: U hebt deze provider nodig om te communiceren met nuGet-opslagplaatsen zoals PowerShell Gallery.
- Naslaginformatie: Install-PackageProvider.
- Opdracht:
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201
.
- Optionele parameters:
-Proxy
. Hiermee geeft u een proxyserver voor de aanvraag.
-Force
. De bevestigingsprompt wordt omzeild.
U ontvangt deze prompt als NuGet niet is ingesteld:
NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories.
The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\t\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running
'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import
the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"):
PowerShell Gallery configureren als een vertrouwde opslagplaats.
- Beschrijving: PowerShell Gallery is standaard een niet-vertrouwde opslagplaats.
- Naslaginformatie: Set-PSRepository.
- Opdracht:
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
.
- Optionele parameter:
-Proxy
. Hiermee geeft u een proxyserver voor de aanvraag.
U ontvangt deze prompt als PowerShell Gallery niet wordt vertrouwd:
Untrusted repository
You are installing the modules from an untrusted repository.
If you trust this repository, change its InstallationPolicy value
by running the Set-PSRepository cmdlet. Are you sure you want to
install the modules from 'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"):
U kunt deze wijziging bevestigen en alles PSRepositories
controleren door de opdracht uit te Get-PSRepository
voeren.
Installeer de nieuwste versie van PowerShellGet.
- Beschrijving: Deze module bevat de hulpprogramma's die worden gebruikt om andere modules op te halen uit PowerShell Gallery. Versie 1.0.0.1 wordt geleverd met Windows 10 en Windows Server. Versie 1.6.0 of hoger is vereist. Voer de
Get-Command -Module PowerShellGet
opdracht uit om te bepalen welke versie is geïnstalleerd.
- Naslaginformatie: PowerShellGet installeren.
- Opdracht:
Install-Module -Name PowerShellGet
.
- Optionele parameters:
-Proxy
. Hiermee geeft u een proxyserver voor de aanvraag.
-Force
. Hiermee wordt de waarschuwing 'al geïnstalleerd' overgeslagen en wordt de nieuwste versie geïnstalleerd.
U ontvangt deze fout als u niet de nieuwste versie van PowerShellGet gebruikt:
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:20
Install-Module abc -AllowPrerelease
~~~~~~~~~~~~~~~~
CategoryInfo : InvalidArgument: (:) [Install-Module], ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Install-Module
Start PowerShell opnieuw. U kunt de nieuwe versie in de huidige sessie niet laden. Nieuwe PowerShell-sessies laden de nieuwste versie van PowerShellGet.
De module downloaden en installeren via PowerShell Gallery
Met deze stappen downloadt u de Az.ApplicationMonitor-module uit PowerShell Gallery.
- Zorg ervoor dat aan alle vereisten voor PowerShell Gallery wordt voldaan.
- Voer PowerShell uit als beheerder met een uitvoeringsbeleid met verhoogde bevoegdheid.
- Installeer de Az.ApplicationMonitor-module.
- Naslaginformatie: Install-Module.
- Opdracht:
Install-Module -Name Az.ApplicationMonitor
.
- Optionele parameters:
-Proxy
. Hiermee geeft u een proxyserver voor de aanvraag.
-AllowPrerelease
. Hiermee kunt u alfa- en bètaversies installeren.
-AcceptLicense
. Hiermee wordt de prompt 'Licentie accepteren' overgeslagen
-Force
. Hiermee wordt de waarschuwing 'Niet-vertrouwde opslagplaats' overgeslagen.
De module handmatig downloaden en installeren (offlineoptie)
Als u om welke reden dan ook geen verbinding kunt maken met de PowerShell-module, kunt u de Az.ApplicationMonitor-module handmatig downloaden en installeren.
Het meest recente nupkg-bestand handmatig downloaden
- Ga naar https://www.powershellgallery.com/packages/Az.ApplicationMonitor.
- Selecteer de nieuwste versie van het bestand in de tabel Versiegeschiedenis .
- Selecteer handmatig downloaden onder Installatieopties.
Optie 1: Installeren in een map met PowerShell-modules
Installeer de handmatig gedownloade PowerShell-module in een PowerShell-map, zodat deze kan worden gedetecteerd door PowerShell-sessies.
Zie Een PowerShell-module installeren voor meer informatie.
Pak nupkg uit als zip-bestand met behulp van Expand-Archive (v1.0.1.0)
Beschrijving: De basisversie van Microsoft.PowerShell.Archive (v1.0.1.0) kan nupkg-bestanden niet uitpakken. Wijzig de naam van het bestand met de extensie .zip.
Naslaginformatie: Expand-Archive.
Opdracht:
$pathToNupkg = "C:\az.applicationmonitor.0.3.0-alpha.nupkg"
$pathToZip = ([io.path]::ChangeExtension($pathToNupkg, "zip"))
$pathToNupkg | rename-item -newname $pathToZip
$pathInstalledModule = "$Env:ProgramFiles\WindowsPowerShell\Modules\az.applicationmonitor"
Expand-Archive -LiteralPath $pathToZip -DestinationPath $pathInstalledModule
Pak nupkg uit met behulp van Expand-Archive (v1.1.0.0)
Beschrijving: Gebruik een huidige versie van Expand-Archive om nupkg-bestanden uit te pakken zonder de extensie te wijzigen.
Naslaginformatie: Expand-Archive en Microsoft.PowerShell.Archive.
Opdracht:
$pathToNupkg = "C:\az.applicationmonitor.0.2.1-alpha.nupkg"
$pathInstalledModule = "$Env:ProgramFiles\WindowsPowerShell\Modules\az.applicationmonitor"
Expand-Archive -LiteralPath $pathToNupkg -DestinationPath $pathInstalledModule
Optie 2: Pak uit en importeer nupkg handmatig
Installeer de handmatig gedownloade PowerShell-module in een PowerShell-map, zodat deze kan worden gedetecteerd door PowerShell-sessies.
Zie Een PowerShell-module installeren voor meer informatie.
Als u de module in een andere map installeert, importeert u de module handmatig met behulp van Import-Module.
Belangrijk
DLL's worden geïnstalleerd via relatieve paden.
Sla de inhoud van het pakket op in de beoogde runtime-directory en controleer of leesmachtigingen toestaan, maar niet schrijven.
- Wijzig de extensie in '.zip' en pak de inhoud van het pakket uit in de beoogde installatiemap.
- Zoek het bestandspad van Az.ApplicationMonitor.psd1.
- Voer PowerShell uit als beheerder met een uitvoeringsbeleid met verhoogde bevoegdheid.
- Laad de module met behulp van de
Import-Module Az.ApplicationMonitor.psd1
opdracht.
Verkeer routeren via een proxy
Wanneer u een computer op uw privé-intranet bewaakt, moet u HTTP-verkeer routeren via een proxy.
De PowerShell-opdrachten voor het downloaden en installeren van Az.ApplicationMonitor vanuit de PowerShell Gallery ondersteunen een -Proxy
parameter.
Bekijk de voorgaande instructies wanneer u uw installatiescripts schrijft.
De Application Insights SDK moet de telemetrie van uw app naar Microsoft verzenden. U wordt aangeraden proxy-instellingen te configureren voor uw app in uw web.config-bestand. Zie Hoe kan ik proxypassthrough bereiken voor meer informatie.
Bewaking inschakelen
Gebruik de Enable-ApplicationInsightsMonitoring
opdracht om bewaking in te schakelen.
Zie de API-verwijzing voor een gedetailleerde beschrijving van het gebruik van deze cmdlet.
Op dit tabblad worden de volgende cmdlets beschreven, die lid zijn van de PowerShell-module Az.ApplicationMonitor:
Notitie
- U hebt een verbindingsreeks nodig om aan de slag te gaan. Zie Een resource maken voor meer informatie.
- Voor deze cmdlet moet u onze licentie en privacyverklaring controleren en accepteren.
Notitie
Op 31 maart 2025 eindigt de ondersteuning voor opname van instrumentatiesleutels. Opname van instrumentatiesleutels blijft werken, maar we bieden geen updates of ondersteuning meer voor de functie. Overgang naar verbindingsreeks s om te profiteren van nieuwe mogelijkheden.
Belangrijk
Voor deze cmdlet is een PowerShell-sessie met beheerdersmachtigingen en een uitvoeringsbeleid met verhoogde bevoegdheid vereist. Zie PowerShell uitvoeren als beheerder met een beleid voor verhoogde uitvoering voor meer informatie.
- Voor deze cmdlet moet u onze licentie en privacyverklaring controleren en accepteren.
- De instrumentatie-engine voegt extra overhead toe en is standaard uitgeschakeld.
API Enable-InstrumentationEngine
Hiermee schakelt u de instrumentatie-engine in door enkele registersleutels in te stellen.
Start IIS opnieuw om de wijzigingen van kracht te laten worden.
De instrumentatie-engine kan gegevens aanvullen die zijn verzameld door de .NET SDK's.
Het verzamelt gebeurtenissen en berichten die de uitvoering van een beheerd proces beschrijven. Deze gebeurtenissen en berichten bevatten resultaatcodes voor afhankelijkheden, HTTP-woorden en SQL-opdrachttekst.
Schakel de instrumentatie-engine in als:
- U hebt bewaking al ingeschakeld met de
Enable
cmdlet, maar u hebt de instrumentatie-engine niet ingeschakeld.
- U hebt uw app handmatig geïnstrueerd met de .NET SDK's en u wilt extra telemetrie verzamelen.
Voorbeelden
Enable-InstrumentationEngine
Parameters
-AcceptLicense
Optioneel. Gebruik deze switch om de licentie en privacyverklaring in headless installaties te accepteren.
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken uit te voeren.
Uitvoer
Voorbeelduitvoer van het inschakelen van de instrumentatie-engine
Configuring IIS Environment for instrumentation engine...
Configuring registry for instrumentation engine...
Enable-ApplicationInsightsMonitoring
Hiermee wordt bewaking van IIS-apps zonder code ingeschakeld op een doelcomputer.
Deze cmdlet wijzigt de IIS applicationHost.config en stelt enkele registersleutels in.
Er wordt een applicationinsights.ikey.config-bestand gemaakt, waarmee de instrumentatiesleutel wordt gedefinieerd die door elke app wordt gebruikt.
IIS laadt de RedfieldModule bij het opstarten, waarmee de Application Insights-SDK wordt geïnjecteerd in toepassingen wanneer de toepassingen worden gestart.
Start IIS opnieuw om de wijzigingen van kracht te laten worden.
Nadat u bewaking hebt ingeschakeld, wordt u aangeraden Live Metrics te gebruiken om snel te controleren of uw app telemetriegegevens naar ons verzendt.
Voorbeelden
Voorbeeld met één verbindingsreeks
In dit voorbeeld krijgen alle apps op de huidige computer één verbindingsreeks toegewezen.
Enable-ApplicationInsightsMonitoring -ConnectionString 'InstrumentationKey=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx;IngestionEndpoint=https://xxxx.applicationinsights.azure.com/'
Voorbeeld met één instrumentatiesleutel
In dit voorbeeld krijgen alle apps op de huidige computer één instrumentatiesleutel toegewezen.
Enable-ApplicationInsightsMonitoring -InstrumentationKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Voorbeeld met een instrumentatiesleuteltoewijzing
In dit voorbeeld:
MachineFilter
komt overeen met de huidige computer met behulp van het '.*'
jokerteken.
AppFilter='WebAppExclude'
biedt een null
instrumentatiesleutel. De opgegeven app is niet geïnstrueerd.
AppFilter='WebAppOne'
wijst de opgegeven app een unieke instrumentatiesleutel toe.
AppFilter='WebAppTwo'
wijst de opgegeven app een unieke instrumentatiesleutel toe.
AppFilter
gebruikt het '.*'
jokerteken om overeen te komen met web-apps die nog niet overeenkomen en wijst een standaard instrumentatiesleutel toe.
- Spaties worden toegevoegd voor leesbaarheid.
Enable-ApplicationInsightsMonitoring -InstrumentationKeyMap `
` @(@{MachineFilter='.*';AppFilter='WebAppExclude'},
` @{MachineFilter='.*';AppFilter='WebAppOne';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx1'}},
` @{MachineFilter='.*';AppFilter='WebAppTwo';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx2'}},
` @{MachineFilter='.*';AppFilter='.*';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxdefault'}})
Notitie
De naamgeving van AppFilter in deze context kan verwarrend zijn, AppFilter
stelt het regex-filter voor de toepassingsnaam in (HostingEnvironment.SiteName in het geval van .NET op IIS). VirtualPathFilter
stelt het regex-filter voor het virtuele pad in (HostingEnvironment.ApplicationVirtualPath in het geval van .NET op IIS). Als u één app wilt instrumenteren, gebruikt u virtualPathFilter als volgt: Enable-ApplicationInsightsMonitoring -InstrumentationKeyMap @(@{VirtualPathFilter="^/MyAppName$"; InstrumentationSettings=@{InstrumentationKey='<your ikey>'}})
Parameters
-ConnectionString
Vereist. Gebruik deze parameter om één verbindingsreeks op te geven voor gebruik door alle apps op de doelcomputer.
-InstrumentationKey
Vereist. Gebruik deze parameter om één instrumentatiesleutel op te geven voor gebruik door alle apps op de doelcomputer.
-InstrumentationKeyMap
Vereist. Gebruik deze parameter om meerdere instrumentatiesleutels en een toewijzing van de instrumentatiesleutels op te geven die door elke app worden gebruikt.
U kunt één installatiescript voor verschillende computers maken door de instelling in te stellen MachineFilter
.
Belangrijk
Apps komen overeen met regels in de volgorde waarin de regels worden opgegeven. U moet dus eerst de meest specifieke regels en de meest algemene regels opgeven.
Schema
@(@{MachineFilter='.*';AppFilter='.*';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}})
- MachineFilter is een vereiste C#-regex van de computer- of VM-naam.
- '.*' komt overeen met alle
- 'ComputerName' komt alleen overeen met computers met de exacte naam die is opgegeven.
- AppFilter is een vereiste C#-regex van de IIS-sitenaam. U kunt een lijst met sites op uw server ophalen door de opdracht get-iissite uit te voeren.
- '.*' komt overeen met alle
- 'SiteName' komt alleen overeen met de IIS-site met de exacte naam die is opgegeven.
- InstrumentationKey is vereist voor het inschakelen van bewaking van apps die overeenkomen met de voorgaande twee filters.
- Laat deze waarde null als u regels wilt definiëren om bewaking uit te sluiten.
-EnableInstrumentationEngine
Optioneel. Gebruik deze switch om de instrumentatie-engine in staat te stellen gebeurtenissen en berichten te verzamelen over wat er gebeurt tijdens het uitvoeren van een beheerd proces. Deze gebeurtenissen en berichten bevatten resultaatcodes voor afhankelijkheden, HTTP-woorden en SQL-opdrachttekst.
De instrumentatie-engine voegt overhead toe en is standaard uitgeschakeld.
-AcceptLicense
Optioneel. Gebruik deze switch om de licentie en privacyverklaring in headless installaties te accepteren.
-IgnoreSharedConfig
Wanneer u een cluster webservers hebt, gebruikt u mogelijk een gedeelde configuratie.
De HttpModule kan niet worden geïnjecteerd in deze gedeelde configuratie.
Dit script mislukt met het bericht dat er extra installatiestappen vereist zijn.
Gebruik deze schakeloptie om deze controle te negeren en door te gaan met het installeren van vereisten.
Zie bekende conflict-with-iis-shared-configuration voor meer informatie
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken weer te geven.
-WhatIf
Algemene parameter. Gebruik deze schakeloptie om uw invoerparameters te testen en te valideren zonder bewaking daadwerkelijk in te schakelen.
Uitvoer
Voorbeelduitvoer van een geslaagde activering
Initiating Disable Process
Applying transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config'
'C:\Windows\System32\inetsrv\config\applicationHost.config' backed up to 'C:\Windows\System32\inetsrv\config\applicationHost.config.backup-2019-03-26_08-59-52z'
in :1,237
No element in the source document matches '/configuration/location[@path='']/system.webServer/modules/add[@name='ManagedHttpModuleHelper']'
Not executing RemoveAll (transform line 1, 546)
Transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config' was successfully applied. Operation: 'disable'
GAC Module will not be removed, since this operation might cause IIS instabilities
Configuring IIS Environment for codeless attach...
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS[Environment]
Configuring IIS Environment for instrumentation engine...
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS[Environment]
Configuring registry for instrumentation engine...
Successfully disabled Application Insights Agent
Installing GAC module 'C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\0.2.0\content\Runtime\Microsoft.AppInsights.IIS.ManagedHttpModuleHelper.dll'
Applying transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config'
Found GAC module Microsoft.AppInsights.IIS.ManagedHttpModuleHelper.ManagedHttpModuleHelper, Microsoft.AppInsights.IIS.ManagedHttpModuleHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
'C:\Windows\System32\inetsrv\config\applicationHost.config' backed up to 'C:\Windows\System32\inetsrv\config\applicationHost.config.backup-2019-03-26_08-59-52z_1'
Transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config' was successfully applied. Operation: 'enable'
Configuring IIS Environment for codeless attach...
Configuring IIS Environment for instrumentation engine...
Configuring registry for instrumentation engine...
Updating app pool permissions...
Successfully enabled Application Insights Agent
Disable-InstrumentationEngine
Hiermee schakelt u de instrumentatie-engine uit door enkele registersleutels te verwijderen.
Start IIS opnieuw om de wijzigingen van kracht te laten worden.
Voorbeelden
Disable-InstrumentationEngine
Parameters
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken uit te voeren.
Uitvoer
Voorbeelduitvoer van het uitschakelen van de instrumentatie-engine
Configuring IIS Environment for instrumentation engine...
Registry: removing 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN[Environment]'
Registry: removing 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC[Environment]'
Registry: removing 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS[Environment]'
Configuring registry for instrumentation engine...
Disable-ApplicationInsightsMonitoring
Hiermee schakelt u bewaking op de doelcomputer uit.
Met deze cmdlet worden bewerkingen in iis applicationHost.config verwijderd en registersleutels verwijderd.
Voorbeelden
Disable-ApplicationInsightsMonitoring
Parameters
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken weer te geven.
Uitvoer
Voorbeelduitvoer van het uitschakelen van bewaking
Initiating Disable Process
Applying transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config'
'C:\Windows\System32\inetsrv\config\applicationHost.config' backed up to 'C:\Windows\System32\inetsrv\config\applicationHost.config.backup-2019-03-26_08-59-00z'
in :1,237
No element in the source document matches '/configuration/location[@path='']/system.webServer/modules/add[@name='ManagedHttpModuleHelper']'
Not executing RemoveAll (transform line 1, 546)
Transformation to 'C:\Windows\System32\inetsrv\config\applicationHost.config' was successfully applied. Operation: 'disable'
GAC Module will not be removed, since this operation might cause IIS instabilities
Configuring IIS Environment for codeless attach...
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS[Environment]
Configuring IIS Environment for instrumentation engine...
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC[Environment]
Registry: skipping non-existent 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS[Environment]
Configuring registry for instrumentation engine...
Successfully disabled Application Insights Agent
Get-ApplicationInsightsMonitoringConfig
Hiermee haalt u het configuratiebestand op en drukt u de waarden af op de console.
Voorbeelden
Get-ApplicationInsightsMonitoringConfig
Parameters
Er zijn geen parameters vereist.
Uitvoer
Voorbeelduitvoer van het lezen van het configuratiebestand
RedfieldConfiguration:
Filters:
0)InstrumentationKey: AppFilter: WebAppExclude MachineFilter: .*
1)InstrumentationKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx2 AppFilter: WebAppTwo MachineFilter: .*
2)InstrumentationKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxdefault AppFilter: .* MachineFilter: .*
Get-ApplicationInsightsMonitoringStatus
Deze cmdlet biedt informatie over het oplossen van problemen met Application Insights Agent.
Gebruik deze cmdlet om de bewakingsstatus, versie van de PowerShell-module te onderzoeken en het actieve proces te controleren.
Deze cmdlet rapporteert versie-informatie en informatie over sleutelbestanden die vereist zijn voor bewaking.
Voorbeelden
Voorbeeld: Toepassingsstatus
Voer de opdracht Get-ApplicationInsightsMonitoringStatus
uit om de bewakingsstatus van websites weer te geven.
Get-ApplicationInsightsMonitoringStatus
IIS Websites:
SiteName : Default Web Site
ApplicationPoolName : DefaultAppPool
SiteId : 1
SiteState : Stopped
SiteName : DemoWebApp111
ApplicationPoolName : DemoWebApp111
SiteId : 2
SiteState : Started
ProcessId : not found
SiteName : DemoWebApp222
ApplicationPoolName : DemoWebApp222
SiteId : 3
SiteState : Started
ProcessId : 2024
Instrumented : true
InstrumentationKey : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx123
SiteName : DemoWebApp333
ApplicationPoolName : DemoWebApp333
SiteId : 4
SiteState : Started
ProcessId : 5184
AppAlreadyInstrumented : true
In dit voorbeeld:
Machine-id is een anonieme id die wordt gebruikt om uw server uniek te identificeren. Als u een ondersteuningsaanvraag maakt, hebben we deze id nodig om logboeken voor uw server te vinden.
Standaardwebsite is gestopt in IIS
DemoWebApp111 is gestart in IIS, maar heeft geen aanvragen ontvangen. Dit rapport laat zien dat er geen actief proces is (ProcessId: niet gevonden).
DemoWebApp222 wordt uitgevoerd en wordt bewaakt (Instrumented: true). Op basis van de gebruikersconfiguratie is instrumentatiesleutel xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx123 voor deze site gekoppeld.
DemoWebApp333 is handmatig geïnstrueerd met behulp van de Application Insights SDK. Application Insights Agent heeft de SDK gedetecteerd en controleert deze site niet.
De aanwezigheid van AppAlreadyInstrumented : true
geeft aan dat de Application Insights-agent een conflicterende DLL heeft geïdentificeerd die in de webtoepassing is geladen, ervan uitgegaan dat de web-app handmatig wordt geïnstrumenteerd en dat de agent een back-up heeft gemaakt en dit proces niet instrumenteert.
Instrumented : true
geeft aan dat de Application Insights-agent de web-app heeft geïnstrumenteerd die wordt uitgevoerd in het opgegeven w3wp.exe proces.
Voer de opdracht Get-ApplicationInsightsMonitoringStatus -PowerShellModule
uit om informatie over de huidige module weer te geven:
Get-ApplicationInsightsMonitoringStatus -PowerShellModule
PowerShell Module version:
0.4.0-alpha
Application Insights SDK version:
2.9.0.3872
Executing PowerShell Module Assembly:
Microsoft.ApplicationInsights.Redfield.Configurator.PowerShell, Version=2.8.14.11432, Culture=neutral, PublicKeyToken=31bf3856ad364e35
PowerShell Module Directory:
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\0.2.2\content\PowerShell
Runtime Paths:
ParentDirectory (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content
ConfigurationPath (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\applicationInsights.ikey.config
ManagedHttpModuleHelperPath (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AppInsights.IIS.ManagedHttpModuleHelper.dll
RedfieldIISModulePath (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.dll
InstrumentationEngine86Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation32\MicrosoftInstrumentationEngine_x86.dll
InstrumentationEngine64Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\MicrosoftInstrumentationEngine_x64.dll
InstrumentationEngineExtensionHost86Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation32\Microsoft.ApplicationInsights.ExtensionsHost_x86.dll
InstrumentationEngineExtensionHost64Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\Microsoft.ApplicationInsights.ExtensionsHost_x64.dll
InstrumentationEngineExtensionConfig86Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation32\Microsoft.InstrumentationEngine.Extensions.config
InstrumentationEngineExtensionConfig64Path (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\Microsoft.InstrumentationEngine.Extensions.config
ApplicationInsightsSdkPath (Exists: True)
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.dll
Voorbeeld: Runtimestatus
U kunt het proces op de geïnstrumenteerde computer inspecteren om te zien of alle DLL's zijn geladen. Als bewaking werkt, moeten ten minste 12 DLL's worden geladen.
Voer de opdracht Get-ApplicationInsightsMonitoringStatus -InspectProcess
uit:
Get-ApplicationInsightsMonitoringStatus -InspectProcess
iisreset.exe /status
Status for IIS Admin Service ( IISADMIN ) : Running
Status for Windows Process Activation Service ( WAS ) : Running
Status for Net.Msmq Listener Adapter ( NetMsmqActivator ) : Running
Status for Net.Pipe Listener Adapter ( NetPipeActivator ) : Running
Status for Net.Tcp Listener Adapter ( NetTcpActivator ) : Running
Status for World Wide Web Publishing Service ( W3SVC ) : Running
handle64.exe -accepteula -p w3wp
BF0: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.ServerTelemetryChannel.dll
C58: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.AzureAppServices.dll
C68: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.DependencyCollector.dll
C78: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.WindowsServer.dll
C98: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.Web.dll
CBC: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.PerfCounterCollector.dll
DB0: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.AI.Agent.Intercept.dll
B98: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.dll
BB4: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.Contracts.dll
BCC: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.Redfield.Lightup.dll
BE0: File (R-D) C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.dll
listdlls64.exe -accepteula w3wp
0x0000000019ac0000 0x127000 C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\MicrosoftInstrumentationEngine_x64.dll
0x00000000198b0000 0x4f000 C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\Microsoft.ApplicationInsights.ExtensionsHost_x64.dll
0x000000000c460000 0xb2000 C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Instrumentation64\Microsoft.ApplicationInsights.Extensions.Base_x64.dll
0x000000000ad60000 0x108000 C:\Windows\TEMP\2.4.0.0.Microsoft.ApplicationInsights.Extensions.Intercept_x64.dll
Parameters
(Geen parameters)
Deze cmdlet rapporteert standaard de bewakingsstatus van webtoepassingen.
Gebruik deze optie om te controleren of uw toepassing is geïnstrueerd.
U kunt ook controleren welke instrumentatiesleutel is gekoppeld aan uw site.
-PowerShellModule
Optioneel. Gebruik deze schakeloptie om de versienummers en paden van DLL's te rapporteren die vereist zijn voor bewaking.
Gebruik deze optie als u de versie van een DLL wilt identificeren, inclusief de Application Insights SDK.
-InspectProcess
Optioneel. Gebruik deze schakeloptie om te rapporteren of IIS wordt uitgevoerd.
Er worden externe hulpprogramma's gedownload om te bepalen of de benodigde DLL's in de IIS-runtime worden geladen.
Als dit proces om welke reden dan ook mislukt, kunt u deze opdrachten handmatig uitvoeren:
- iisreset.exe /status
- handle64.exe -p w3wp | findstr /I "InstrumentationEngine AI. ApplicationInsights'
- listdlls64.exe w3wp | findstr /I "InstrumentationEngine AI ApplicationInsights"
-Force
Optioneel. Alleen gebruikt met InspectProcess. Gebruik deze schakeloptie om de gebruikersprompt over te slaan die wordt weergegeven voordat er meer hulpprogramma's worden gedownload.
Set-ApplicationInsightsMonitoringConfig
Hiermee stelt u het configuratiebestand in zonder een volledige herinstallatie uit te voeren.
Start IIS opnieuw om de wijzigingen van kracht te laten worden.
Belangrijk
Voor deze cmdlet is een PowerShell-sessie met beheerdersmachtigingen vereist.
Voorbeelden
Voorbeeld met één instrumentatiesleutel
In dit voorbeeld krijgen alle apps op de huidige computer één instrumentatiesleutel toegewezen.
Enable-ApplicationInsightsMonitoring -InstrumentationKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Voorbeeld met een instrumentatiesleuteltoewijzing
In dit voorbeeld:
MachineFilter
komt overeen met de huidige computer met behulp van het '.*'
jokerteken.
AppFilter='WebAppExclude'
biedt een null
instrumentatiesleutel. De opgegeven app is niet geïnstrueerd.
AppFilter='WebAppOne'
wijst de opgegeven app een unieke instrumentatiesleutel toe.
AppFilter='WebAppTwo'
wijst de opgegeven app een unieke instrumentatiesleutel toe.
AppFilter
gebruikt het '.*'
jokerteken om web-apps te vinden die nog niet overeenkomen en wijst een standaard instrumentatiesleutel toe.
- Spaties worden toegevoegd voor leesbaarheid.
Enable-ApplicationInsightsMonitoring -InstrumentationKeyMap `
` @(@{MachineFilter='.*';AppFilter='WebAppExclude'},
` @{MachineFilter='.*';AppFilter='WebAppOne';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx1'}},
` @{MachineFilter='.*';AppFilter='WebAppTwo';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx2'}},
` @{MachineFilter='.*';AppFilter='.*';InstrumentationSettings=@{InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxdefault'}})
Parameters
-InstrumentationKey
Vereist. Gebruik deze parameter om één instrumentatiesleutel op te geven voor gebruik door alle apps op de doelcomputer.
-InstrumentationKeyMap
Vereist. Gebruik deze parameter om meerdere instrumentatiesleutels en een toewijzing van de instrumentatiesleutels op te geven die door elke app worden gebruikt.
U kunt één installatiescript voor verschillende computers maken door de instelling in te stellen MachineFilter
.
Belangrijk
Apps komen overeen met regels in de volgorde waarin de regels worden opgegeven. U moet dus eerst de meest specifieke regels en de meest algemene regels opgeven.
Schema
@(@{MachineFilter='.*';AppFilter='.*';InstrumentationKey='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'})
- MachineFilter is een vereiste C#-regex van de computer- of VM-naam.
- '.*' komt overeen met alle
- 'ComputerName' komt alleen overeen met computers met de opgegeven naam.
- AppFilter is een vereiste C#-regex van de computer- of VM-naam.
- '.*' komt overeen met alle
- ApplicationName komt alleen overeen met IIS-apps met de opgegeven naam.
- InstrumentationKey is vereist om bewaking in te schakelen van de apps die overeenkomen met de voorgaande twee filters.
- Laat deze waarde null als u regels wilt definiëren om bewaking uit te sluiten.
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken weer te geven.
Uitvoer
Standaard is er geen uitvoer.
Voorbeeld van uitgebreide uitvoer van het instellen van het configuratiebestand via -InstrumentationKey
VERBOSE: Operation: InstallWithIkey
VERBOSE: InstrumentationKeyMap parsed:
Filters:
0)InstrumentationKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx AppFilter: .* MachineFilter: .*
VERBOSE: set config file
VERBOSE: Config File Path:
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\applicationInsights.ikey.config
Voorbeeld van uitgebreide uitvoer van het instellen van het configuratiebestand via -InstrumentationKeyMap
VERBOSE: Operation: InstallWithIkeyMap
VERBOSE: InstrumentationKeyMap parsed:
Filters:
0)InstrumentationKey: AppFilter: WebAppExclude MachineFilter: .*
1)InstrumentationKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx2 AppFilter: WebAppTwo MachineFilter: .*
2)InstrumentationKey: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxdefault AppFilter: .* MachineFilter: .*
VERBOSE: set config file
VERBOSE: Config File Path:
C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\applicationInsights.ikey.config
Start-ApplicationInsightsMonitoringTrace
Verzamelt ETW-gebeurtenissen van de runtime zonder code koppelen.
Deze cmdlet is een alternatief voor het uitvoeren van PerfView.
Gebeurtenissen worden verzameld, in realtime naar de console afgedrukt en opgeslagen in een ETL-bestand. U kunt het ETL-uitvoerbestand openen met PerfView voor verder onderzoek.
Deze cmdlet wordt uitgevoerd totdat de time-outduur (standaard 5 minuten) is bereikt of handmatig wordt gestopt (Ctrl + C
).
Voorbeelden
Gebeurtenissen verzamelen
Normaal gesproken vragen we u gebeurtenissen te verzamelen om te onderzoeken waarom uw toepassing niet wordt geïnstrueerd.
De codeloze bijlageruntime verzendt ETW-gebeurtenissen wanneer IIS wordt gestart en wanneer uw toepassing wordt gestart.
Ga als volgt te werk om deze gebeurtenissen te verzamelen:
- Voer in een cmd-console met beheerdersbevoegdheden uit
iisreset /stop
om IIS en alle web-apps te stoppen.
- Deze cmdlet uitvoeren
- Voer in een cmd-console met beheerdersbevoegdheden uit
iisreset /start
om IIS te starten.
- Blader naar uw app.
- Nadat het laden van uw app is voltooid, kunt u deze handmatig stoppen (
Ctrl + C
) of wachten op de time-out.
Welke gebeurtenissen moeten worden verzameld
U hebt drie opties bij het verzamelen van gebeurtenissen:
- Gebruik de schakeloptie
-CollectSdkEvents
om gebeurtenissen te verzamelen die zijn verzonden vanuit de Application Insights SDK.
- Gebruik de schakeloptie
-CollectRedfieldEvents
om gebeurtenissen te verzamelen die worden verzonden door application insights-agent en de Redfield Runtime. Deze logboeken zijn handig bij het diagnosticeren van IIS en het opstarten van toepassingen.
- Gebruik beide schakelopties om beide gebeurtenistypen te verzamelen.
- Als standaard geen switch is opgegeven, worden beide gebeurtenistypen verzameld.
Parameters
-MaxDurationInMinutes
Optioneel. Gebruik deze parameter om in te stellen hoe lang dit script gebeurtenissen moet verzamelen. Standaard is dit 5 minuten.
-LogDirectory
Optioneel. Gebruik deze schakeloptie om de uitvoermap van het ETL-bestand in te stellen.
Dit bestand wordt standaard gemaakt in de map PowerShell-modules.
Het volledige pad wordt weergegeven tijdens het uitvoeren van het script.
-CollectSdkEvents
Optioneel. Gebruik deze switch om Application Insights SDK-gebeurtenissen te verzamelen.
-CollectRedfieldEvents
Optioneel. Gebruik deze schakeloptie om gebeurtenissen te verzamelen van application insights-agent en de Redfield-runtime.
-Breedsprakig
Algemene parameter. Gebruik deze schakeloptie om gedetailleerde logboeken uit te voeren.
Uitvoer
Voorbeeld van opstartlogboeken van toepassingen
Start-ApplicationInsightsMonitoringTrace -CollectRedfieldEvents
Starting...
Log File: C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\logs\20190627_144217_ApplicationInsights_ETW_Trace.etl
Tracing enabled, waiting for events.
Tracing will timeout in 5 minutes. Press CTRL+C to cancel.
2:42:31 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Resolved variables to: MicrosoftAppInsights_ManagedHttpModulePath='C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.dll', MicrosoftAppInsights_ManagedHttpModuleType='Microsoft.ApplicationInsights.RedfieldIISModule.RedfieldIISModule'
2:42:31 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Resolved variables to: MicrosoftDiagnosticServices_ManagedHttpModulePath2='', MicrosoftDiagnosticServices_ManagedHttpModuleType2=''
2:42:31 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Environment variable 'MicrosoftDiagnosticServices_ManagedHttpModulePath2' or 'MicrosoftDiagnosticServices_ManagedHttpModuleType2' is null, skipping managed dll loading
2:42:31 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace MulticastHttpModule.constructor, success, 70 ms
2:42:31 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace Current assembly 'Microsoft.ApplicationInsights.RedfieldIISModule, Version=2.8.18.27202, Culture=neutral, PublicKeyToken=f23a46de0be5d6f3' location 'C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.dll'
2:42:31 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace Matched filter '.*'~'STATUSMONITORTE', '.*'~'DemoWithSql'
2:42:31 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace Lightup assembly calculated path: 'C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.Redfield.Lightup.dll'
2:42:31 PM EVENT: Microsoft-ApplicationInsights-FrameworkLightup Trace Loaded applicationInsights.config from assembly's resource Microsoft.ApplicationInsights.Redfield.Lightup, Version=2.8.18.27202, Culture=neutral, PublicKeyToken=f23a46de0be5d6f3/Microsoft.ApplicationInsights.Redfield.Lightup.ApplicationInsights-recommended.config
2:42:34 PM EVENT: Microsoft-ApplicationInsights-FrameworkLightup Trace Successfully attached ApplicationInsights SDK
2:42:34 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace RedfieldIISModule.LoadLightupAssemblyAndGetLightupHttpModuleClass, success, 2687 ms
2:42:34 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace RedfieldIISModule.CreateAndInitializeApplicationInsightsHttpModules(lightupHttpModuleClass), success
2:42:34 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace ManagedHttpModuleHelper, multicastHttpModule.Init() success, 3288 ms
2:42:35 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Resolved variables to: MicrosoftAppInsights_ManagedHttpModulePath='C:\Program Files\WindowsPowerShell\Modules\Az.ApplicationMonitor\content\Runtime\Microsoft.ApplicationInsights.RedfieldIISModule.dll', MicrosoftAppInsights_ManagedHttpModuleType='Microsoft.ApplicationInsights.RedfieldIISModule.RedfieldIISModule'
2:42:35 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Resolved variables to: MicrosoftDiagnosticServices_ManagedHttpModulePath2='', MicrosoftDiagnosticServices_ManagedHttpModuleType2=''
2:42:35 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace Environment variable 'MicrosoftDiagnosticServices_ManagedHttpModulePath2' or 'MicrosoftDiagnosticServices_ManagedHttpModuleType2' is null, skipping managed dll loading
2:42:35 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace MulticastHttpModule.constructor, success, 0 ms
2:42:35 PM EVENT: Microsoft-ApplicationInsights-RedfieldIISModule Trace RedfieldIISModule.CreateAndInitializeApplicationInsightsHttpModules(lightupHttpModuleClass), success
2:42:35 PM EVENT: Microsoft-ApplicationInsights-IIS-ManagedHttpModuleHelper Trace ManagedHttpModuleHelper, multicastHttpModule.Init() success, 0 ms
Timeout Reached. Stopping...