Microsoft graph api 如何通过Graph API查询Azure Security Center SecureScore?

Microsoft graph api 如何通过Graph API查询Azure Security Center SecureScore?,microsoft-graph-api,azure-ad-graph-api,Microsoft Graph Api,Azure Ad Graph Api,我正在尝试访问Microsoft Graph API以获取Azure安全中心的secureScore,但我找不到提供此信息的端点。 我可以很容易地通过找到Office 365的secureScore,但这并没有给我Azure的secureScore 我正在使用应用程序注册对图形进行身份验证。 这是用于获取Office 365的secureScore的代码: #Assign the Client/Application ID, Client Secret and Tenant Domain $Cl

我正在尝试访问Microsoft Graph API以获取Azure安全中心的secureScore,但我找不到提供此信息的端点。 我可以很容易地通过找到Office 365的secureScore,但这并没有给我Azure的secureScore

我正在使用应用程序注册对图形进行身份验证。 这是用于获取Office 365的secureScore的代码:

#Assign the Client/Application ID, Client Secret and Tenant Domain
$ClientID = 'CLIENTID'
$ClientSecret = 'CLIENTSECRET'
$tenantdomain = 'TENANTNAME.onmicrosoft.com'

$loginURL = "https://login.microsoft.com"
$resource = "https://graph.microsoft.com"
$body       = @{grant_type="client_credentials";resource=$resource;client_id=$ClientID;client_secret=$ClientSecret}
$oauth      = Invoke-RestMethod -Method Post -Uri $loginURL/$tenantdomain/oauth2/token?api-version=1.0 -Body $body

$headerParams = @{'Authorization'="$($oauth.token_type) $($oauth.access_token)"}
[uri]$uriGraphEndpoint = "https://graph.microsoft.com/beta/security/secureScores"
$response = Invoke-RestMethod -Method Get -Uri $uriGraphEndpoint.AbsoluteUri -Headers $headerParams

有人能告诉我正确的方向吗?

目前不支持通过Graph API或ASC Rest API获取ASC SecureScore

Azure portal上的数据是从内部API获取的,不建议使用


您可以在上发布您的想法以引起MS product group的注意。

你好,艾伦,谢谢,我将在用户语音网站上发布想法:)