diff --git a/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs b/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs index c0030882c893..b5b1221542a1 100644 --- a/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs +++ b/sdk/extensions/Microsoft.Extensions.Azure/src/Internal/ClientFactory.cs @@ -228,7 +228,7 @@ internal static TokenCredential CreateCredential(IConfiguration configuration) if (!string.IsNullOrWhiteSpace(objectId)) { - throw new ArgumentException("Managed identity 'objectId' is only supported when the credential type is 'managedidentity'."); + throw new ArgumentException("'managedIdentityObjectId' is only supported when the credential type is 'managedidentity'."); } if (additionallyAllowedTenantsList != null