File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
sdk/identity/azure-identity/src/main/java/com/azure/identity Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ public Mono<AccessToken> getToken(TokenRequestContext request) {
199
199
+ " https://aka.ms/azsdk/java/identity/managedidentitycredential/troubleshoot" )));
200
200
}
201
201
202
+ // Not having a managedIdentityId at this point means it is a system-assigned managed identity.
202
203
if (!CoreUtils .isNullOrEmpty (managedIdentityId )) {
203
204
ManagedIdentitySourceType managedIdentitySourceType = ManagedIdentityApplication .getManagedIdentitySource ();
204
205
if (ManagedIdentitySourceType .CLOUD_SHELL .equals (managedIdentitySourceType )
@@ -211,6 +212,8 @@ public Mono<AccessToken> getToken(TokenRequestContext request) {
211
212
? "DefaultAzureCredentialBuilder."
212
213
: "ManagedIdentityCredentialBuilder." ))));
213
214
}
215
+
216
+ LOGGER .info ("User-assigned Managed Identity ID: " + getClientId ());
214
217
}
215
218
216
219
return managedIdentityServiceCredential .authenticate (request )
You can’t perform that action at this time.
0 commit comments