User Profile
Racheal200
Copper Contributor
Joined Mar 01, 2021
User Widgets
Recent Discussions
Load balancer Redirection
HI , We have configured standard load balancer to distribute traffic to VMs in backend pool. When one of the VM is unhealthy users who are in that VM will be redirected to the other healthy VM but always end up in session expired page. so the progress is lost . How can we handle this issue? Does session persistence : clientIP needs to be changed to None . hope that will not address this issue. Could some one help on this?961Views0likes2CommentsRe: Application insight dll is not sending Telemetry data
# Update the path if you install a different version of AI NuGet package Add-Type -Path .\Microsoft.ApplicationInsights.dll; $InstrumentationKey = "xxxxx"; $endpointAddress = "https://dc.services.visualstudio.com/v2/track" # Create a telemetry client and configuration object $telemetryConfig =[Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration]::CreateDefault() $telemetryConfig.InstrumentationKey = $InstrumentationKey $telemetryConfig.TelemetryChannel.EndpointAddress = $endpointAddress $telemetryClient = [Microsoft.ApplicationInsights.TelemetryClient]::new($telemetryConfig) # Send a trace log to Application Insights $telemetryClient.TrackTrace("Hello from DEv!") # Flush the telemetry channel to ensure all data is sent $telemetryClient.Flush() Above code is not sending logs to azure ! am i missing something here? How do i test InstrumentationKey connection is right ?1.2KViews0likes0CommentsApplication insight dll is not sending Telemetry data
Hi, I have created a custom availability test using application insight dll and powershell with reference to Ref: https://swimburger.net/blog/azure/run-availability-tests-using-powershell-and-azure-application-insights it was working fine but since Mar 31st data are not sent to azure on a scheduled interval... There's no issue with the script because data is available twice or thrice in a day as you can see the data in chart But here's the chart before Mar 31st I have no clue to figure out this issue.. was there any upgrade on Mar 31st which has caused this glitch? To test the endpoint address ,I have tried to send the trace logs to Azure Application Insights using the Application Insights SDK using below script and it worked yesterday as soon as i run this script i could see the logs in azure . But today when i run this script i cant see the logs in azure. # Load the Application Insights SDK assembly Add-Type -Path "C:\path\to\Microsoft.ApplicationInsights.dll" # Set the instrumentation key and endpoint for your Application Insights resource $instrumentationKey = "YOUR_INSTRUMENTATION_KEY" $endpointAddress = "https://dc.services.visualstudio.com/v2/track" # Create a telemetry client and configuration object $telemetryConfig =[Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration]::CreateDefault() $telemetryConfig.InstrumentationKey = $instrumentationKey $telemetryConfig.TelemetryChannel.EndpointAddress = $endpointAddress $telemetryClient = [Microsoft.ApplicationInsights.TelemetryClient]::new($telemetryConfig) # Send a trace log to Application Insights $telemetryClient.TrackTrace("Hello from PowerShell!") # Flush the telemetry channel to ensure all data is sent $telemetryClient.Flush() Sampling is not enabled in application insight resource and there are enough space available .1.5KViews0likes1CommentHow to get last status of the service in Event Logs without selecting TimeRange
HI, My requirement is to find the status of few windows services whether its running/stopped/started. Events will capture only the last state of the service so cannot see logs if there is no change in the current state . For Eg: Event | where EventLog == 'System' and EventID == 7036 and Source == 'Service Control Manager' and RenderedDescription startswith_cs 'cisco' | parse kind=relaxed EventData with * '<Data Name="param1">' Windows_Service_Name '</Data><Data Name="param2">' Windows_Service_State '</Data>' * | sort by TimeGenerated desc | project Computer, Windows_Service_Name, Windows_Service_State, TimeGenerated Above query returns the status of all the services that starts with Cisco within a time range that is selected. if there is no change of state within that time frame then it don't return those result sets. But How to find the last status of the service in Events ?Solved3.5KViews0likes7CommentsRe: How to get last status of the service in Event Logs without selecting TimeRange
CliveWatson Thanks ! I already tried this option but not useful to my scenerio. Again here there is no option to select last 3 Months .I have to choose a time range and cannot use the query as it is which already have time range to check last 3 months data.3.3KViews0likes1CommentRe: How to get last status of the service in Event Logs without selecting TimeRange
CliveWatson , Have modified my query as u suggested. In dashboard , I don't have similar option like yours. when I click that icon it opens edit query box like the image below and there's not much option.3.3KViews0likes3CommentsRe: How to get last status of the service in Event Logs without selecting TimeRange
CliveWatson Thanks for the reply. I have modified my query to below one Event | where TimeGenerated < ago(3m) // last 3 months | where Computer == '' // VM instance name | where EventLog == 'System' and EventID == 7036 and Source == 'cisco' and RenderedDescription startswith_cs 'cisco' | parse kind=relaxed EventData with * '<Data Name="param1">' Windows_Service_Name '</Data><Data Name="param2">' Windows_Service_State '</Data>' * | project TimeGenerated, Computer, Windows_Service_Name, Windows_Service_State | summarize arg_max(TimeGenerated, *) by Windows_Service_Name | sort by TimeGenerated desc If this query is executed without '| where TimeGenerated < ago(3m) ' it by default takes 24 hours. So modified query to check status for last 3 months . Its working as expected in query explorer. But when this is pinned to dashboard , it's not retuning the result as it still takes the TimeRange from the dashboard and when i cannot override to check for last 3 months . How to display this result in dashboard ?3.3KViews0likes5Comments
Recent Blog Articles
No content to show