Skip to content

Am I ready to connect a threat intelligence feed to Microsoft Sentinel? (PowerShell check)

Two minutes, nothing changes. This check only reads. It does not create, change or delete anything in Azure.

Open the Azure portal, select the >_ button at the top of the page and choose PowerShell. Cloud Shell already has the Azure PowerShell modules and you are already signed in, so there is nothing to install.

Change the three values at the top, then paste the whole block:

Terminal window
$rg = 'rg-security' # the resource group that holds your Sentinel workspace
$ws = 'my-sentinel-ws' # the workspace name
$kv = '' # optional: your Key Vault name (only for the enrich playbook)
Invoke-WebRequest -Uri 'https://docs.dugganusa.com/scripts/Test-DugganUSAReadiness.ps1' -OutFile ./Test-DugganUSAReadiness.ps1 -UseBasicParsing
./Test-DugganUSAReadiness.ps1 -ResourceGroupName $rg -WorkspaceName $ws -KeyVaultName $kv

It saves the script to a file first and then runs it, so you can read it before you run it (Get-Content ./Test-DugganUSAReadiness.ps1). The same script is in our public repository: Tools/Test-DugganUSAReadiness.ps1.

At the end it asks for your DugganUSA API key to test it. Typing is hidden. Press Enter with nothing to skip, or add -SkipFeedTest to the last line. The key is never printed or saved, is sent only to analytics.dugganusa.com over HTTPS, and the test uses one of your daily queries.

Running it on your own PC instead? It works in PowerShell 7 and Windows PowerShell 5.1. Install the modules once with Install-Module Az -Scope CurrentUser, then sign in with Connect-AzAccount. If Windows says running scripts is disabled, run Set-ExecutionPolicy -Scope Process Bypass in that window first (it lasts until you close the window).

# Check What PASS means
1 Azure modules and sign-in You are signed in, to the subscription you asked for
2 Workspace The Log Analytics workspace exists. It also prints the region
3 Microsoft Sentinel Sentinel is turned on for that workspace
4 Your roles You can connect the feed (Microsoft Sentinel Contributor, Contributor or Owner on the resource group). It says separately whether you can deploy the enrich playbook, which needs Owner, or Contributor plus User Access Administrator. Roles you get through a group or from the subscription count
5 Existing DugganUSA connection Whether a DugganUSA Threat Intelligence - TAXII connection is already there, so you do not add a second one
6 DugganUSA indicators, last 7 days DugganUSA rows are arriving in ThreatIntelIndicators. Before you connect, this reads SKIP, which is normal
7 Key Vault (optional) The vault is in the same resource group, uses Azure role-based access control, and has a secret named dugganusa-api-key. Only the name is checked, never the value
8 Feed and API key (optional) Our TAXII server answers and your key is accepted

Each line reads PASS, WARN (works, but read the sentence), FAIL (fix this first) or SKIP (not checked, and why), followed by one sentence saying what to do. The last line is Ready: yes, Ready: almost or Ready: no, with your next step.

From DugganUSA’s own workspace, December 3, 2026 (feed test skipped):

DugganUSA readiness check 1.0.0 (read-only: it changes nothing)
Workspace 'dugganusa-logs' in resource group 'dugganusa-rg'
[PASS] 1. Az modules and sign-in: Signed in as [email protected], subscription 'Security' (00000000-0000-0000-0000-000000000000).
[PASS] 2. Workspace: Found 'dugganusa-logs' in region eastus.
[PASS] 3. Microsoft Sentinel: Sentinel is turned on for this workspace.
[PASS] 4. Your roles: You have: Owner, User Access Administrator. Enough to connect the feed and to deploy the enrich playbook.
[PASS] 5. Existing DugganUSA connection: No DugganUSA TAXII connection in this workspace, so deploying one will not create a duplicate.
[PASS] 6. DugganUSA indicators (last 7 days): 181,882 rows, newest 2026-12-04 03:41 UTC, arriving by a route other than a TAXII connection (for example an upload or another workspace setup). You already have the feed: adding a TAXII connection would bring in the same indicators twice.
[PASS] 7. Key Vault for the enrich playbook: Vault 'dusaenrich2b0591' uses Azure role-based access control and holds secret 'dugganusa-api-key' (value not read).
[SKIP] 8. DugganUSA feed and your API key: Skipped (-SkipFeedTest).
Ready: yes
Next step: you are already connected. Optional extras: https://docs.dugganusa.com/siem/enrich-incidents/

A new workspace usually shows check 5 as “No DugganUSA TAXII connection”, check 6 as SKIP, and ends with Ready: yes and a link to Deploy to Azure.

FAIL on What it means What to do
1. Sign-in Not signed in, the Az modules are missing, or you are in a different subscription Use Cloud Shell, or run Connect-AzAccount. For the wrong subscription, run Set-AzContext -Subscription <id> and run the check again
2. Workspace No workspace with that name in that resource group, or you cannot read it In the Azure portal open Microsoft Sentinel: it lists each workspace’s Name and Resource group. Use those exactly
3. Sentinel Sentinel is not turned on for this workspace Microsoft Sentinel > Create, then add the workspace. Or you picked a workspace that is not your Sentinel one
4. Roles You do not have a role that can create the connection Ask an admin for Microsoft Sentinel Contributor on the resource group. If you use Privileged Identity Management, activate your role first
6. Indicators A DugganUSA connection exists, but nothing arrived in 7 days Almost always the key: wrong (401) or out of queries for the day (429). Run check 8, then see Sentinel troubleshooting
7. Key Vault The vault is not in this resource group, or it uses access policies The playbook needs the vault in the same resource group, set to Azure role-based access control (Settings > Access configuration). See step 1 of the playbook page
8. Feed and key HTTP 401: the key is wrong or expired. Cannot connect: your network blocks it Copy the key again, or get a free one at analytics.dugganusa.com/stix/register. If outbound HTTPS is filtered, allow analytics.dugganusa.com

A WARN on check 8 with HTTP 429 is not a broken key: a free key allows 10 queries a day and today’s are used up. It resets daily.

Each block below answers one question on its own, without the script. Set $rg and $ws first (top block on this page), paste the block, read the result. They work for any Sentinel workspace and any TAXII feed; the DugganUSA values are the example.

How do I check I’m signed in to the right Azure subscription with PowerShell?

Section titled “How do I check I’m signed in to the right Azure subscription with PowerShell?”

Get-AzContext shows who you are signed in as and which subscription your commands go to.

Terminal window
Get-AzContext | Format-List Account, Subscription, Tenant

Good result: your account and the subscription that holds your Sentinel workspace. Wrong one? Set-AzContext -Subscription '<name or id>'.

How do I check if Microsoft Sentinel is enabled with PowerShell?

Section titled “How do I check if Microsoft Sentinel is enabled with PowerShell?”

Ask Azure for the workspace’s Sentinel onboarding state: it exists only when Sentinel is on.

Terminal window
$sub = (Get-AzContext).Subscription.Id
$path = "/subscriptions/$sub/resourceGroups/$rg/providers/Microsoft.OperationalInsights/workspaces/$ws/providers/Microsoft.SecurityInsights/onboardingStates/default?api-version=2024-09-01"
(Invoke-AzRestMethod -Method GET -Path $path).StatusCode

Good result: 200. 404 means Sentinel is not turned on for this workspace (or the names are wrong).

How do I check my Microsoft Sentinel Contributor role with PowerShell?

Section titled “How do I check my Microsoft Sentinel Contributor role with PowerShell?”

List your role assignments on the workspace’s resource group, including roles you get through a group.

Terminal window
$me = (Get-AzADUser -SignedIn).Id
Get-AzRoleAssignment -ObjectId $me -ResourceGroupName $rg -ExpandPrincipalGroups |
Select-Object RoleDefinitionName, Scope | Sort-Object RoleDefinitionName -Unique

Good result: the list includes Microsoft Sentinel Contributor, Contributor or Owner. That is enough to connect a TAXII feed. For the enrich playbook you also need Owner, or User Access Administrator next to Contributor.

How do I see which TAXII feeds are already connected to Sentinel?

Section titled “How do I see which TAXII feeds are already connected to Sentinel?”

List the workspace’s data connectors and keep the TAXII ones.

Terminal window
$sub = (Get-AzContext).Subscription.Id
$path = "/subscriptions/$sub/resourceGroups/$rg/providers/Microsoft.OperationalInsights/workspaces/$ws/providers/Microsoft.SecurityInsights/dataConnectors?api-version=2024-09-01"
$all = ((Invoke-AzRestMethod -Method GET -Path $path).Content | ConvertFrom-Json).value
$all | Where-Object kind -eq 'ThreatIntelligenceTaxii' | ForEach-Object { $_.properties } |
Format-Table friendlyName, taxiiServer, collectionId, pollingFrequency

Good result: before you connect, no DugganUSA row. If you see https://analytics.dugganusa.com/api/v1/taxii/ with collection dugganusa-threat-intel, you are already connected: do not add another. Sentinel would refuse it with There are two connectors with different names and the same kind and context ID.

How do I check if threat intelligence indicators are arriving in Sentinel?

Section titled “How do I check if threat intelligence indicators are arriving in Sentinel?”

Count the last 7 days of rows in ThreatIntelIndicators, per source.

Terminal window
$id = (Get-AzOperationalInsightsWorkspace -ResourceGroupName $rg -Name $ws).CustomerId
$kql = 'ThreatIntelIndicators | where TimeGenerated > ago(7d) | summarize Rows = count(), Newest = max(TimeGenerated) by SourceSystem'
(Invoke-AzOperationalInsightsQuery -WorkspaceId $id -Query $kql).Results | Format-Table

Good result: one row per feed with a count, and Newest within the last day or two. DugganUSA shows as DugganUSA (or another name containing it). An error that the table cannot be found means no threat intelligence has arrived in this workspace yet. The same query works in Advanced hunting: see step 5 of the Sentinel guide.

How do I check a Key Vault secret exists without reading its value?

Section titled “How do I check a Key Vault secret exists without reading its value?”

Ask Azure Resource Manager for the secret’s record. It returns the name and dates, never the value.

Terminal window
$kv = 'my-vault' # your Key Vault name
$sub = (Get-AzContext).Subscription.Id
$path = "/subscriptions/$sub/resourceGroups/$rg/providers/Microsoft.KeyVault/vaults/$kv/secrets/dugganusa-api-key?api-version=2023-07-01"
(Invoke-AzRestMethod -Method GET -Path $path).StatusCode

Good result: 200. 404 means the vault (in this resource group) has no secret by that name. The enrich playbook reads dugganusa-api-key unless you changed Secret Name.

How do I test a TAXII feed with PowerShell?

Section titled “How do I test a TAXII feed with PowerShell?”

Request one object from the collection with your key as the Basic-auth password. This block needs PowerShell 7, which is what Cloud Shell runs.

Terminal window
$key = Read-Host -AsSecureString -Prompt 'API key (hidden)'
$cred = [pscredential]::new('sentinel', $key)
$url = 'https://analytics.dugganusa.com/api/v1/taxii/collections/dugganusa-threat-intel/objects/?limit=1'
(Invoke-WebRequest $url -Authentication Basic -Credential $cred -Headers @{ Accept = 'application/taxii+json;version=2.1' } -SkipHttpErrorCheck).StatusCode
Remove-Variable key, cred

Good result: 200. 401 means the key is wrong or expired. 429 means a free key’s 10 queries for today are used up: the key is fine, wait until tomorrow. Each test counts as one query. For another TAXII feed, change $url to its collections/<id>/objects/ address; the username sentinel is a placeholder (ours ignores it). Listing the collections needs no key: Invoke-RestMethod https://analytics.dugganusa.com/api/v1/taxii/collections/ -Headers @{ Accept = 'application/taxii+json;version=2.1' }.

Something on this page wrong, or a check that told you the wrong thing? Tell us at [email protected]: it takes one email and we fix the page the same day.