Hoping someone can help me out with the issues I am facing below:
Issue #1
The Hub Server name that is being called is wrong, but I am not sure how to fix it
error: PowerShell script error. Credentials used for powershell session doesn't have privileges to run 'Search-Mailbox'. Management role 'Mailbox Search' is required to get mailboxes statistics. Failed to connect to the RPC server on computer "HUB SERVER". Verify that a valid computer name was used.
the account that is being used to monitor is a local admin on exchange box, a member of view-only organization managment group, and I also ran the following command to make the new group " Mailbox Search"
New-ManagementRoleAssignment -Role "Mailbox Search" -User domain\username
Issue #2
When I go into the AppInsight template and click test I am presented with this error:
"There is an error on the page.
Password: The Password and Confirmation Password must match"
This happens regardless if I use a new credential set or an existing.
Update * The server in ISSUE 1 that Appinsight is trying to talk to is an old (not properly removed from ad) exchange hub.
Update ** I am assuming this is the line in the script that is causing the issues :$serverInfo = Get-ExchangeServer -Identity
when I run get-exchangeserver the first server it returns in its list is the server listed in the error. Which again was decommissioned just not properly removed from AD