In Microsoft SCOM getting 401 error while generating CSRF token for Rest API

Paulomi Chauhan 0 Reputation points
2024-12-09T14:01:01.9833333+00:00

In Microsoft SCOM getting 401 error while generating CSRF token for Rest API

Link - https://learn.microsoft.com/en-us/rest/api/operationsmanager/

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,515 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 20,156 Reputation points
    2024-12-10T02:36:46.0333333+00:00

    Hi,

    It sounds like you're encountering a 401 Unauthorized error when trying to generate a CSRF token for the System Center Operations Manager (SCOM) REST API.

    Here's an example for your reference:

    https://github.com/blakedrumm/SCOM-Scripts-and-SQL/blob/master/Powershell/SCOM-REST_API-Examples.ps1

    If these steps don't resolve the issue, you might want to check for any specific configurations in your IIS or SCOM web console settings that could be affecting the token's lifetime or validity.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.