This re-establishes the connection this tool uses to enable and disable technicians in NinjaOne. You should only need this if toggling starts failing with an authorization error, or if NinjaOne's OAuth Tokens dashboard (Administration → Apps → API) shows this app's token was revoked.
Clicking below will send you to NinjaOne to sign in and approve access, then bring you back here to finish.
Success. Finish these steps yourself, in a terminal with Azure CLI installed
(not PowerShell's Connect-AzAccount — that's a different tool and
won't authenticate the commands below):
- Sign in with an account that has "Key Vault Secrets Officer" on the Key Vault:
az login
- Store the new refresh token (not shared with anyone else):
- The Function App picks up the new value on its own within about 5 minutes -
no restart needed. If you don't want to wait, this forces it immediately (plain
restarthas proven unreliable here - use both commands):