Azure active directory Azure广告审核日志API是否适用于Azure美国政府租户?

Azure active directory Azure广告审核日志API是否适用于Azure美国政府租户?,azure-active-directory,microsoft-graph-api,azure-gov,Azure Active Directory,Microsoft Graph Api,Azure Gov,我无法使用以下Powershell从Azure US Gov租户检索任何登录数据: $ClientID = "<my app id>" $ClientSecret = "<app key>" $loginURL = "https://login.microsoftonline.us" $tenantdomain = "<my tenant name>" $scope = "https://graph.microsoft.com/.default" $body

我无法使用以下Powershell从Azure US Gov租户检索任何登录数据:

$ClientID = "<my app id>"
$ClientSecret = "<app key>"
$loginURL = "https://login.microsoftonline.us"
$tenantdomain = "<my tenant name>"
$scope = "https://graph.microsoft.com/.default" 
$body = @{grant_type="client_credentials";client_id=$ClientID;client_secret=$ClientSecret;scope=$scope}
$oauth = Invoke-RestMethod -Method Post -Uri $loginURL/$tenantdomain/oauth2/v2.0/token -Body $body  
$url = "https://graph.microsoft.com/beta/auditLogs/signIns"
$headerParams = @{'Authorization'="$($oauth.token_type) $($oauth.access_token)"}
Invoke-WebRequest -UseBasicParsing -Headers $headerParams -Uri $url

感谢您的帮助

我们将很快在我们的网站上公开记录此更新,但您能否尝试将graph.microsoft.us作为microsoft graph端点

此外,Azure Government中目前没有登录活动API,我们正在为此确定日期。但是,审核API(beta/auditLogs/directoryAudits)应使用graph.microsoft.us端点返回数据

你能确认这对你有用吗

谢谢,
Bernie

感谢您确认登录活动API当前在Gov中不可用。我使用.us端点对其进行了测试,并得到HTTP 500错误,beta/auditLogs/directoryAudits API确实按照您的建议返回了数据。出于合规性原因,通过API访问此数据(登录)对我们来说非常重要,并期待其可用性。感谢您确认并理解其重要性。一旦登录活动API可用,我一定会与您联系。
Content : {"@odata.context":"https://graph.microsoft.com/beta/$metadata#auditLogs/signIns","value":[]}