diff --git a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
index 8a1a8e581ba93..8bccccf59d38f 100755
--- a/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
+++ b/eng/code-quality-reports/src/main/resources/checkstyle/checkstyle-suppressions.xml
@@ -274,6 +274,11 @@
+
+
+
+
diff --git a/sdk/identity/azure-identity/src/main/java/com/azure/identity/DeviceCodeCredentialBuilder.java b/sdk/identity/azure-identity/src/main/java/com/azure/identity/DeviceCodeCredentialBuilder.java
index 9a9ea8d8c944d..b7ef8d88764e4 100644
--- a/sdk/identity/azure-identity/src/main/java/com/azure/identity/DeviceCodeCredentialBuilder.java
+++ b/sdk/identity/azure-identity/src/main/java/com/azure/identity/DeviceCodeCredentialBuilder.java
@@ -15,11 +15,14 @@
* @see DeviceCodeCredential
*/
public class DeviceCodeCredentialBuilder extends AadCredentialBuilderBase {
- private Consumer challengeConsumer;
+ private Consumer challengeConsumer =
+ deviceCodeInfo -> System.out.println(deviceCodeInfo.getMessage());
+
private boolean automaticAuthentication = true;
/**
- * Sets the consumer to meet the device code challenge.
+ * Sets the consumer to meet the device code challenge. If not specified a default consumer is used which prints
+ * the device code info message to stdout.
*
* @param challengeConsumer A method allowing the user to meet the device code challenge.
* @return the InteractiveBrowserCredentialBuilder itself