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/app/azure-ad-authentication.md
-59Lines changed: 0 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,65 +235,6 @@ After setting it, restart your application. It now sends telemetry to Applicatio
235
235
236
236
Azure Monitor OpenTelemetry Distro and Azure monitor OpenTelemery exporters for Python support the credential classes provided by [Azure Identity](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/identity/identity#credential-classes).
237
237
238
-
- We recommend `DefaultAzureCredential` for local development.
239
-
- We recommend `ManagedIdentityCredential` for system-assigned and user-assigned managed identities.
240
-
- For system-assigned, use the default constructor without parameters.
241
-
- For user-assigned, provide the client ID to the constructor.
242
-
- We recommend `ClientSecretCredential` for service principals.
243
-
- Provide the tenant ID, client ID, and client secret to the constructor.
244
-
245
-
If using `azure-monitor-opentelemetry`
246
-
```python
247
-
import os
248
-
# You will need to install azure-identity
249
-
from azure.identity import ManagedIdentityCredential
250
-
from azure.monitor.opentelemetry import configure_azure_monitor
with tracer.start_as_current_span("hello with aad managed identity"):
293
-
print("Hello, World!")
294
-
295
-
```
296
-
297
238
To configure using OpenCensus (deprecated), see [Configure and enable Microsoft Entra ID-based authentication](/previous-versions/azure/azure-monitor/app/opencensus-python#configure-and-enable-microsoft-entra-id-based-authentication).
0 commit comments