Security
Microsoft Sentinel onboarding
Onboards a Log Analytics workspace to Microsoft Sentinel.
Naming rules
- Abbreviation
- Length
- 7
- Allowed characters
- Use the literal name default.
- Uniqueness scope
- Log Analytics workspace
Directory abbreviation
Code examples
These examples look up an existing resource by its full Azure resource ID. The documentation links include deployment syntax.
Terraform
Terraform documentationhcl
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
version = "~> 2.0"
}
}
}
variable "resource_id" {
description = "Full Azure resource ID of the existing Microsoft.SecurityInsights/onboardingStates resource."
type = string
}
data "azapi_resource" "example" {
type = "Microsoft.SecurityInsights/onboardingStates@2025-09-01"
resource_id = var.resource_id
}
output "resource_name" {
value = data.azapi_resource.example.name
}
Bicep
Bicep documentationbicep
@description('Full resource ID of the existing Microsoft.SecurityInsights/onboardingStates resource.')
param resourceId string
output resourceName string = reference(resourceId, '2025-09-01', 'Full').name
ARM template
ARM template documentationjson
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceId": {
"type": "string",
"metadata": {
"description": "Full resource ID of the existing Microsoft.SecurityInsights/onboardingStates resource."
}
}
},
"resources": [],
"outputs": {
"resourceName": {
"type": "string",
"value": "[reference(parameters('resourceId'), '2025-09-01', 'Full').name]"
}
}
}
Private endpoints
For private access to workspace logs, add the underlying Log Analytics workspace to an Azure Monitor Private Link Scope.
Service networking guidanceConfigure the private endpoint on the related resource Microsoft.Insights/privateLinkScopes.
Choose the group ID for the connection you need. Available groups and DNS records depend on the cloud, region, SKU, and enabled features.
Azure public cloud
- Target subresources (group IDs)
- Private DNS zones
- Public DNS zones to forward
Azure Government
- Target subresources (group IDs)
- Private DNS zones
- Public DNS zones to forward