Skip to content

Commit 721a35b

Browse files
authored
Update managed identity object ID exception message (Azure#46995)
1 parent 1a09df4 commit 721a35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ internal static TokenCredential CreateCredential(IConfiguration configuration)
228228

229229
if (!string.IsNullOrWhiteSpace(objectId))
230230
{
231-
throw new ArgumentException("Managed identity 'objectId' is only supported when the credential type is 'managedidentity'.");
231+
throw new ArgumentException("'managedIdentityObjectId' is only supported when the credential type is 'managedidentity'.");
232232
}
233233

234234
if (additionallyAllowedTenantsList != null

0 commit comments

Comments
 (0)