Skip to content

Commit 05aa24d

Browse files
authored
Update azure-ad-authentication.md
1 parent 96b677b commit 05aa24d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/azure-monitor/app/azure-ad-authentication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ from azure.identity import ManagedIdentityCredential
250250
from azure.monitor.opentelemetry import configure_azure_monitor
251251
from opentelemetry import trace
252252

253+
credential = ManagedIdentityCredential(client_id="<client_id>")
253254
configure_azure_monitor(
254255
connection_string=os.environ["APPLICATIONINSIGHTS_CONNECTION_STRING"],
255256
credential=credential,

0 commit comments

Comments
 (0)