You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/logs/azure-ad-authentication-logs.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,20 @@ These options might be cumbersome and pose a risk because it's difficult to mana
15
15
16
16
To enable Azure AD integration for Azure Monitor Logs and remove reliance on these shared secrets:
17
17
18
-
1.[Migrate to Azure Monitor Agent](../agents/azure-monitor-agent-migration.md) from the Log Analytics agents. Azure Monitor Agent doesn't require any keys but instead [requires a system-managed identity](../agents/azure-monitor-agent-overview.md#security).
19
-
1.[Disable local authentication for Log Analytics workspaces](#disable-local-authentication-for-log-analytics).
18
+
1.[Disable local authentication for Log Analytics workspaces](#disable-local-authentication-for-log-analytics-workspaces).
20
19
1. Ensure that only authenticated telemetry is ingested in your Application Insights resources with [Azure AD authentication for Application Insights (preview)](../app/azure-ad-authentication.md).
21
20
22
-
## Disable local authentication for Log Analytics
21
+
## Prerequisites
22
+
23
+
-[Migrate to Azure Monitor Agent](../agents/azure-monitor-agent-migration.md) from the Log Analytics agents. Azure Monitor Agent doesn't require any keys but instead [requires a system-managed identity](../agents/azure-monitor-agent-overview.md#security).
24
+
-[Migrate to the Log Ingestion API](./custom-logs-migrate.md) from the HTTP Data Collector API to send data to Azure Monitor Logs.
25
+
26
+
## Permissions required
27
+
28
+
To disable local authentication for a Log Analytics workspace, you need `microsoft.operationalinsights/workspaces/write` permissions on the workspace, as provided by the [Log Analytics Contributor built-in role](./manage-access.md#log-analytics-contributor), for example.
29
+
30
+
## Disable local authentication for Log Analytics workspaces
23
31
24
-
After you've removed your reliance on the Log Analytics agent, you can disable local authentication for Log Analytics workspaces. Then you can ingest and query telemetry authenticated exclusively by Azure AD.
25
32
26
33
Disabling local authentication might limit the availability of some functionality, specifically:
27
34
@@ -31,7 +38,7 @@ Disabling local authentication might limit the availability of some functionalit
31
38
32
39
You can disable local authentication by using Azure Policy. Or you can disable it programmatically through an Azure Resource Manager template, PowerShell, or the Azure CLI.
33
40
34
-
### Azure Policy
41
+
### [Azure Policy](#tab/azure-policy)
35
42
36
43
Azure Policy for `DisableLocalAuth` won't allow you to create a new Log Analytics workspace unless this property is set to `true`. The policy name is `Log Analytics Workspaces should block non-Azure Active Directory based ingestion`. To apply this policy definition to your subscription, [create a new policy assignment and assign the policy](../../governance/policy/assign-policy-portal.md).
The `DisableLocalAuth` property is used to disable any local authentication on your Log Analytics workspace. When set to `true`, this property enforces that Azure AD authentication must be used for all access.
93
100
@@ -130,7 +137,7 @@ Use the following Azure Resource Manager template to disable local authenticatio
130
137
131
138
```
132
139
133
-
### Azure CLI
140
+
### [Azure CLI](#tab/azure-cli)
134
141
135
142
The `DisableLocalAuth` property is used to disable any local authentication on your Log Analytics workspace. When set to `true`, this property enforces that Azure AD authentication must be used for all access.
136
143
@@ -140,7 +147,7 @@ Use the following Azure CLI commands to disable local authentication:
The `DisableLocalAuth` property is used to disable any local authentication on your Log Analytics workspace. When set to `true`, this property enforces that Azure AD authentication must be used for all access.
146
153
@@ -166,5 +173,7 @@ Use the following PowerShell commands to disable local authentication:
166
173
$workspace | Set-AzResource -Force
167
174
```
168
175
176
+
---
177
+
169
178
## Next steps
170
179
See [Azure AD authentication for Application Insights (preview)](../app/azure-ad-authentication.md).
0 commit comments