diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-app-token.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-app-token.md index 390baca350..6613b39e3c 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-app-token.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-app-token.md @@ -21,7 +21,7 @@ In this section we share Power BI query sample to run a query using application If you want to use user token instead please refer to [this](run-advanced-query-sample-power-bi-user-token.md) tutorial. ->**Prerequisite**: You first need to [create an app](exposed-apis-create-app-webapp). +>**Prerequisite**: You first need to [create an app](exposed-apis-create-app-webapp.md). ## Run a query @@ -45,7 +45,7 @@ If you want to use user token instead please refer to [this](run-advanced-query- AppSecret = "22222222-2222-2222-2222-222222222222", // Paste your own app secret here Query = "MachineInfo | where EventTime > ago(7d) | summarize EventCount=count(), LastSeen=max(EventTime) by MachineId", // Paste your own query here - ResourceAppIdUrl = "https://securitycenter.onmicrosoft.com/windowsatpservice", + ResourceAppIdUrl = "https://api.securitycenter.windows.com", OAuthUrl = Text.Combine({"https://login.windows.net/", TenantId, "/oauth2/token"}, ""), Resource = Text.Combine({"resource", Uri.EscapeDataString(ResourceAppIdUrl)}, "="), diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-user-token.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-user-token.md index d4ceebb3fa..c7ab12996f 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-user-token.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-power-bi-user-token.md @@ -21,7 +21,7 @@ In this section we share Power BI query sample to run a query using user token. If you want to use application token instead please refer to [this](run-advanced-query-sample-power-bi-app-token.md) tutorial. ->**Prerequisite**: You first need to [create an app](exposed-apis-create-app-nativeapp). +>**Prerequisite**: You first need to [create an app](exposed-apis-create-app-nativeapp.md). ## Run a query diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-powershell.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-powershell.md index 22c4ca1362..0bb63ec221 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-powershell.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-powershell.md @@ -40,7 +40,7 @@ $tenantId = '00000000-0000-0000-0000-000000000000' # Paste your own tenant ID he $appId = '11111111-1111-1111-1111-111111111111' # Paste your own app ID here $appSecret = '22222222-2222-2222-2222-222222222222' # Paste your own app secret here -$resourceAppIdUri = 'https://securitycenter.onmicrosoft.com/windowsatpservice' +$resourceAppIdUri = 'https://api.securitycenter.windows.com' $oAuthUri = "https://login.windows.net/$TenantId/oauth2/token" $body = [Ordered] @{ resource = "$resourceAppIdUri" diff --git a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-python.md b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-python.md index 913731e59d..0f07bf3b7d 100644 --- a/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-python.md +++ b/windows/security/threat-protection/windows-defender-atp/run-advanced-query-sample-python.md @@ -37,7 +37,7 @@ appSecret = '22222222-2222-2222-2222-222222222222' # Paste your own app secret h url = "https://login.windows.net/%s/oauth2/token" % (tenantId) -resourceAppIdUri = 'https://securitycenter.onmicrosoft.com/windowsatpservice' +resourceAppIdUri = 'https://api.securitycenter.windows.com' body = { 'resource' : resourceAppIdUri,